Hi all,
I wrote a simple code where I ask the user to input some values during a for loop using a QInputDialog.
for(i=0;i<3;++i)
{
NULL,&ok);
if(s!=NULL)
ui->listWidget->addItem(s);
}
for(i=0;i<3;++i)
{
s = QInputDialog::getText(this,tr("Insert a number"),tr("Input"),QLineEdit::Normal,
NULL,&ok);
if(s!=NULL)
ui->listWidget->addItem(s);
}
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 ?
Bookmarks