PDA

View Full Version : add a derived class to a qtdesigner project



franco.amato
11th February 2010, 20:46
Hi to all, I'm developing a track list (audio track) using designer. It's derived from QDialog that I'll execute from my main app.
I have some problems with drag and drop. In the project I added a QListWidget object to show the list of the tracks.
I would drag and drop from the dialog to my application. I think I should derive a class from QListWidget ( as in the puzzle example )?
But then I'm unable to add it to the ui file in the designer.
How can I do it?

Regards,
Franco

Coises
12th February 2010, 07:20
I think I should derive a class from QListWidget ( as in the puzzle example )?
But then I'm unable to add it to the ui file in the designer.
How can I do it?

Using Custom Widgets with Qt Designer (http://doc.trolltech.com/latest/designer-using-custom-widgets.html) explains how to promote a widget to a subclass in Qt Designer.