Search code examples
c++qtqtwidgetsqlayout

Qt - how to use layouts in Qt designer


I have some troubles in using layouts. as you know Qt designer has some layouts by default but they cant help me. in the widgets bar in layouts section there are some customized layouts but I cant use them , they are actually do nothing when i insert them into my ui. now anyone can help me to use them? sorry if my english is not so good. its not my first language by the way.


Solution

  • Qt Designer doesn't support custom layouts yet. It has been requested, but no work has started on implementing this.

    You can create a custom widget designer plug-in that uses your layout, although I don't think it will behave well in Qt Designer; see Adding Qt Designer Plugins.

    You can derive from QLayout and implement everything by hand but Qt Designer won't support custom layouts.