Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[Qt Creator] Layouts inside a DockWidget

$
0
0
Hi, Using QT Creator, I’m trying to create a dock widget that has a series of other gadgets inside it (buttons, combo boxes and a tree widget), and have the gadgets auto-expand horizontally as the dock widget is resized. I know it can be done in pure C++ code, and I’ve done the same thing using layouts in other Apps that don’t require docks, but I can’t get it to work in the designer inside a dock. To recreate my problem, just create a fresh App, add a Dock Widget, add some gadgets to the dock, select them and choose ‘Layout in a group form’. After doing this I can’t seem to find any combination of settings that automatically resize the widgets when the dock is resized. Am I just getting the settings wrong (what should they be??) or am I doing this completely wrong? It seems like something that should be very easy to do, but I’m having no luck at all. Thanks for any help.

Viewing all articles
Browse latest Browse all 18427

Latest Images

Trending Articles



Latest Images