[Qt-interest] Can a Qt-Designer template form promoted to a custom class ?
Friedemann Kleint
Friedemann.Kleint at nokia.com
Thu May 27 16:36:42 CEST 2010
Hi,
> Using Designer I would like to develop QMainwindow of my application and on
> top of it I will add more functionality to the QMainWindow (MyMainWindow)
> by inheriting the Qt-designer class. The problem I am facing is that, I am
> not able to promote the template form which I am creating using designer,
> to my top-level MyMainWindow class. As an effect of it, custom SLOTs
> defined in MyMainWindow class I can't use. ( When I create MainWindow
> template form I can promote QToolBar, QMenuBar and QStatusBar but not the
> QMainWindow it self. Is this allowed in Qt-designer )
Promoting top-level widgets is not possible in Qt Designer as there is no gain
from it, passing the base class suffices for the setupUI() function.
However, you can add Signal&Slot definitions to the main form by choosing
"Change signals/slots" from the context menu.
Regards,
Friedemann
--
Friedemann Kleint
Nokia, Qt Development Frameworks
More information about the Qt-interest-old
mailing list