QtDesigner container plugin with custom page class



  • Hi, everyone! I develop a custom multi-page widget. I want to be able to manage a page list in QtDesigner. As I know, the best is to use QDesignerContainerExtension class to archive this goal. But I need that pages be custom classes, not a QWidget. How can I archive this? Thank in advance!



  • In your impementation of QDesignerContainerExtension::insertWidget, you can create your own custom widget instead of using directly the one passed as parametter (maybe you can just ignore it or you need to call deleteLater on it)



  • Thank you for this suggestion! Will I see the actual type of a page widget in the object tree and the property editor? It would be perfect :)
    [quote author="Olivier Goffart" date="1324648773"]In your impementation of QDesignerContainerExtension::insertWidget, you can create your own custom widget instead of using directly the one passed as parametter (maybe you can just ignore it or you need to call deleteLater on it)[/quote]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.