开发者

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

Multiple QWidgets in the central widget

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 ex开发者_如何学Pythonamples that I could use. Can anyone help me with this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜