w4ouf
w4ouf

Reputation: 1

Qt 5.6 - How to link QTreeWidget to the mainWindow?

Yop!

So I just started getting in-touch with QT ( being used to VS ) & I want to make a pretty simple form, nothing really "complex";

my goal is to setup my widget ( QTreeWidget ) to automatically take the size of MainWindow and update if the user ( me ) resize the form.

I know I could do that with some line of code but I'm pretty sure that it actually possible to set with layout using QTDesigner, my question is how can I do that?

help would be greatly appreciated!

Upvotes: 0

Views: 183

Answers (1)

DeadWarlock
DeadWarlock

Reputation: 720

Right click on parent form. Select "Layout" in context menu. If parent form has child widget you can select one of variants from menu drop-down (Grid, Vertical, Horizontal etc.). If parent form not has child elements those menu items will be disabled (((.

Upvotes: 1

Related Questions