How do i align the widget with respect to its parent?
How do i align the widget with respect to its parent?
You must set a layout for the parent widget and use spacers and size restrictions on the child widget to do that.
What exactly are you trying to achieve?
There is the code.
Qt Code:
message->show(); message->setFocus(); message->setWindowTitle(tr( "Title" )); message->setText( tr( "Message Text" )); message->setFocus();To copy to clipboard, switch view to plain text mode
Now the warning message appears to the right. The top left of message is aligned with center of parent widget. but i want centers of both wigets aligned.
Note : I can not use QMessageBox::warning() is this senario.
Last edited by marcel; 18th June 2008 at 08:13. Reason: missing [code] tags
Bookmarks