Hi... I have class called EncrypterBody its parent is QWidget and It contains widgets like QPushButton, QTextEdit, etc defined in its constructor as well as its its own layout. Now I want have two objects of EncrypterBody class been shown in one window one under the other.
Something like this ![Smile](images/smilies/smile.png)
--------------------------------------
| |
--------------------------------------
| |---------|
| |---------|
| |---------|
| | |
-------------------------------------|
--------------------------------------
| |
--------------------------------------
| |---------|
| |---------|
| |---------|
| | |
-------------------------------------|
--------------------------------------
| |
--------------------------------------
| |---------|
| |---------|
| |---------|
| | |
-------------------------------------|
--------------------------------------
| |
--------------------------------------
| |---------|
| |---------|
| |---------|
| | |
-------------------------------------|
To copy to clipboard, switch view to plain text mode
I also tried to make class "layout" (which parent was QVBoxLayout) in which constructor I created two instances of EncrypterBody and then I tried to add them to the layout via addWidget.
I can easily manage to show two objects of EncryterBody in two separated windows, but to show them in one seems to be too hard for newbie of my caliber :P
Bookmarks