Qt-interest Archive, January 2007
promote to custom QMainWindow
Message 1 in thread
Dear All,
is there any way how to promote to custom QMainWindow? I'd like to paint
in designer the layout of my main window (including dock and toolbars)
and then use it in similar way like QDialog (by calling setupUi(this)
inside of QMainWindow's constructor to create my layout).
thanks
david
--
[ signature omitted ]
Message 2 in thread
On 29.01.07 13:05:39, David Belohrad wrote:
> Dear All,
> is there any way how to promote to custom QMainWindow? I'd like to paint
> in designer the layout of my main window (including dock and toolbars)
> and then use it in similar way like QDialog (by calling setupUi(this)
> inside of QMainWindow's constructor to create my layout).
It works exactly the same as with QDialog or any other widget. You
create a class that inherits from QMainWindow and your Ui and then in
the constructor call setupUi(this);
Andreas
--
[ signature omitted ]