Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
[QList|http://doc.trolltech.com/4.3/qlist.html]

{code}

QList

Code Block
QList <int> QLista;
Code Block
{code}
{code}
void Dialog::Lista()
{
  QString teksti,apu;
  int i,j,k;
  QLista.append(1);
  QLista.append(5);
  QLista.insert(1,3);//laitetaan kolme ykkosen jalkeen
  j=QLista.count();
  // apu.sprintf("%d",j);
  //teksti+=apu;
  for(i=0;i<j;i++)
  {
    k=QLista.value(i);
    apu.sprintf("%d",k);
    teksti+=apu;
  }
  ui->textEdit->setText(teksti);
.
.
.
{code}