[Kst] extragear/graphics/kst/src/libkstapp

George Staikos staikos at kde.org
Wed Mar 22 00:56:31 CET 2006


On Tuesday 21 March 2006 18:45, Barth Netterfield wrote:

> > > -Does QT4 designer support _ui.h ?
> >
> >   No, nor does it support the "_i.h" approach.  UI files are basically a
> > function call that generate the UI into a widget now, along with a class
> > that holds the pointers.
>
> So you can no longer inherit from a designer generated widget?

  Correct, it looks like this:

MyDialog::MyDialog(QWidget *parent)
: QDialog(parent) {
	_ui.setupUi(this);
}

_ui is a Ui::DesignerWidget and inherits from nothing.  It just contains a 
setupUi(), retranslateUi(), and some pointers.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list