[Solved]How to move a widget to the center of the dialog?
So you have a dialog and a label with a text..
For alignment it is center at both horizontal and vertical..
But i want the label to be at the center of the dialog not only the text of the label to be at the center of it..
- ui->label->rect().center();
or
doesn’t work..So?
8 replies
If you just want to display text in a pop-up dialog, use QMessageBox [doc.qt.nokia.com] instead.
You must log in to post a reply. Not a member yet? Register here!



