Ok, I will try this next. Thanks for the tip.
Edit: Got it working, only problem with it is that I cannot dynamically add or remove widgets from the box layout. Have to re-create the entire widget and all child widgets each time. I will have to try to find a better way. Here is the code I used for future knowledge.
Qt Code:
// ui.frame is a QScrollArea * layout->addWidget(qpb1); qw->setLayout(layout); ui.frame->setWidget(qw); delete qw; layoutx->addWidget(qpb5); layoutx->addWidget(qpb2); layoutx->addWidget(qpb3); layoutx->addWidget(qpb4); qwx->setLayout(layoutx); ui.frame->setWidget(qwx);To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks