How does anyone know how to create parent-child relationship between two QWiget windows in Qt4.?
How does anyone know how to create parent-child relationship between two QWiget windows in Qt4.?
? Now w2 is child of w1.Qt Code:
To copy to clipboard, switch view to plain text mode
But in case if i am using Qt designer and say i created two QWiget classes :
Class Oneublic QWidget
{
};
Class Twoublic QWidget
{
};
I such type of implementation how to create paren-child relationship?
Don't understand your case, but in designer you only can create parent child relation if the parent is a container. But in that I'm not sure. Either after you called setupUi() you can create some relation using QWidget::setParent().
And the designer is not an appropriate way to do such things...
Bookmarks