'How to set a new window into a GroupBox in QT?

I have a Window with a Group Box called Function control box

enter image description here

I want to include this window into that group box

enter image description here

I do that by using this code

ui->functionControlBoxGroupBox->setParent(componentIdentification);

Where componentIdentification in an UI object of the window above.

But it seems that nothing happens. Why?

This is what happening. From this:

enter image description here

To this:

enter image description here

Question:

How can I import a complete window form into a group box in QT?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source