Custom Layout in Qt Designer

2019-02-13 02:33发布

Is there anyway that we can have Custom Layouts e.g. as defined at https://doc.qt.io/archives/qt-4.7/examples-layouts.html

inside the Qt Designer ?

What would be the process to add such custom layouts in the Qt Designer? Can anyone guide about the steps involved for such custom enhancement in Qt Designer.

1条回答
神经病院院长
2楼-- · 2019-02-13 03:19

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.

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

查看更多
登录 后发表回答