You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

QList

QList <int> QLista;
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);
.
.
.
  • No labels
You must log in to comment.