PyQt4 designer custom properties - combo box style

David Boddie david at boddie.org.uk
Thu Feb 4 17:59:44 EST 2010


On Tuesday 02 February 2010 22:25, Andrew wrote:

> I am creating custom widgets for the PyQt4 Designer. I can create
> custom properties, but I'm looking for how to create a custom property
> that has a combo box drop down. I've seen them in the example widgets
> and tried following them, but they are using pre-defined items to
> populate their property, so it's not a very clear example of how to
> get the combo box property to work.

Can you explain a bit more about what you have seen and what you are
trying to do. Are you trying to create a property that is treated
specially by Designer or do you want to get the data for the combo
box from somewhere else?

> Is there any other examples or help for this kind of setup?

Have you seen this article?

  http://qt.nokia.com/doc/qq/qq26-pyqtdesigner.html

David



More information about the Python-list mailing list