I created a QFrame as the base widget or what to say. That is, new -> QFrame. Then it comes with a layout.
I found what was going wrong for me, anyway. I thought that creating a new QWidget with a parent automatically adds the widget to the parent's layout. Apparently, I need to do
Qt Code:
parent->layout()->addWidget(newWidget);To copy to clipboard, switch view to plain text mode
I have created a signal that the AdressWidget emits whenver it changes layout (show/hide), so that the DisplayArea is resized at that time. This seems to be working, except it does not automatically resize until I press the show/hide button once. I'll have a look at this, and return if I run into problems.
Thanks for your help!
//Bobruisk
Bookmarks