Solved QLineEdit, adjust Widget position in MainWindow (not cursor)
-
Hello folks, I have some QlineEdit in mainWindow....
QLineEdit *ql[10];
for (int i=0; i < 10; i++) {
ql[i]= new QLineEdit(this);
}Someone so kind to explain me how can I adjust the position and size of each inside the for?
I miss some like ql[i]->setPosition(x,y)thanks in advance.
-
the solution is
ql[i]->move(x,y);
Sorry I could not find at first by asking wrong to google
-
Hi,
Out of curiosity, why not use one of Qt's layout for that (e.g. QGridLayout) ?
-
Because I have not Idea XDD, first new!, thank you