The problem seems to be widget2. Without widget2 everything looks fine!
How can I add a widget (widget2) which inherits from a widget which is created by Designer(widget1)?
my way:
widget 2:
@a = Ui::XYZ.new() #new instance of widget1
@a.setupUi(self)
@a = Ui::XYZ.new() #new instance of widget1
@a.setupUi(self)
To copy to clipboard, switch view to plain text mode
and add widget2 in widget 4
@widget2 = Widget2.new(self)
@layout.addWidget(@widget2)
@widget2 = Widget2.new(self)
@layout.addWidget(@widget2)
To copy to clipboard, switch view to plain text mode
But there is nothing to see.
Without the layout, widget2 is shown in wdget4, but... without layout-management!
bye,
WingMan
Bookmarks