且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Qt Designer中的自定义布局

更新时间:2023-11-17 19:52:52

您不能直接在QtDesigner中创建自定义布局.相反,您可以将布局编写为QtDesigner的插件.之后,您可以打开QtDesigner,然后将自己的布局与Qt集合中的任何其他小部件一样放置到表单中.

You can't create custom layout right inside QtDesigner. Instead you can write your layout as a plugin for QtDesigner. After this you can open QtDesigner and just drop your own layout to the form as any other widget in the Qt collection.

请参见此小知识,以了解如何编写自己的插件对于Qt.没那么困难.

See this quide to find out how to write your own plugin for Qt. It's not so difficult.