QT Designer plugin



  • Hi
    I am starting to develop a Qt designer plugin so that I can use my custom widget in designer.
    The widget consists of a layout containing a single push button.
    I have followed all the guidelines and I can see my custom widget in designer.
    However if I drag it onto a widget in designer I get the outline of the widget but cannot see the contained push button. When an application is run that uses this plugin the push button is visible.
    As I am new to this can someone tell me if I should be able to see the full custom widget in designer

    Thanks



  • Maybe you have to create a pixmap from your control (with QWidget::grab() )
    and pass it to the drag&drop mechanism as bitmap ?



  • Hi
    I have solved the issue
    In the doXml method you need to add a customWidgets section to the xml


Log in to reply
 

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