Hi all,
I wrote a simple code where I ask the user to input some values during a for loop using a QInputDialog.

Qt Code:
  1. for(i=0;i<3;++i)
  2. {
  3. s = QInputDialog::getText(this,tr("Insert a number"),tr("Input"),QLineEdit::Normal,
  4. NULL,&ok);
  5. if(s!=NULL)
  6. ui->listWidget->addItem(s);
  7. }
To copy to clipboard, switch view to plain text mode 
Problem is that after each iteration the Dialog window shifts a bit along the x and y direction. Why ? How can I fix its position ?