Qt Code:
{ // Login layoutTo copy to clipboard, switch view to plain text mode
In the constructor of mLoginLayout in ZeLoginView.
Qt Code:
{To copy to clipboard, switch view to plain text mode
In the constructor of mUserLayout in ZeUserView.
Last edited by bunjee; 18th January 2007 at 13:13. Reason: spelling error
That's an awful way to do that (tightly couples the two widgets). Why not reuse the layout instead of creating a new one?
In one case I need a QGrid in another a QHBox as main layout.
But in both cases they can be children of the parent widget's layout. Your "view" should be a complete widget (having its own layout), not a complete layout. Then you can simply add the widget to the parent's layout.
bunjee (18th January 2007)
bunjee (18th January 2007)
Thanks a lot guys,
I've changed my approach :
" One widget has one layout and sticks with it ".
Even though I don't understand why this option:
... doesn't work.Qt Code:
...To copy to clipboard, switch view to plain text mode
Or you just didn't call show() on them...
Bookmarks