Qt-interest Archive, January 2007
Using KDE top-level widgets inside Qt designer
Message 1 in thread
Hi,
I recently found that in theory designer allows to have custom top-level
windows available to create new forms from. If you add a properly
prepared .ui file to
qt4-src/tools/designer/src/designer/templates/forms/ and create a custom
widget plugin for the widget which returns true for the isContainer
function you can get a new entry in the "New Form" dialog and create a
new form from that.
I used that with kdelibs4 and have KMainWindow, KDialog and
KAssistantDialog tested.
There are a few problems:
1. For KMainWindow I don't get a preview, for KDialog and
KAssistantDialog there seem to be easily implementable preview widgets.
I guess something similar can be done for KMainWindow, but I don't know
how atm.
2. KAssistantDialog and KDialog freeze designer as soon as I choose
"Create".
It would be nice to hear if anybody got this feature working properly.
Roberto I cc you as I heard you are one of the main designer devs and I
know you want to join back to kdevelop ( I think having these classes
available at least inside kdevelops ui designer is something we should
aim for in kdev4)
Andreas
--
[ signature omitted ]