user360907
user360907

Reputation:

Multiple QWidgets in the central widget

I'm just starting out with Qt and I'm trying to write an app with an interface, written by hand, not with Qt Designer, that looks like this

enter image description here

but I can't figure out how to add more than one widget to the central widget, and I can't find any documentation or examples that I could use. Can anyone help me with this?

Upvotes: 1

Views: 2311

Answers (1)

mah
mah

Reputation: 39797

I would suggest building your desired interface using QtDesigner and examining the code it generates. You don't have to use QtDesigner in your application, but this will help you to self-educate on how to properly add items, use layout management, etc.

Upvotes: 2

Related Questions