PDA

View Full Version : QWizard fields and custom properties



HelLViS69
2nd October 2009, 15:56
Hi, I'm working with QWizard and I have a problem related to fields.

I have a class which has its own property defined in this way:

Q_PROPERTY(QString file READ file WRITE setFile)

It emits a signal called selectionChanged()

In the code where I subclass QWizardPage I add the following code:

registerField("packageIcon",m_pPackageIconEdit,"file",SIGNAL(selectionChanged()));
where pPackageIconEdit is an instance of the class above.

The problem is that the field is not registered, and in the following pages the field is left blank.

What should I do?

BillGates
4th May 2010, 16:41
Have you found a fix for this ? I have a similar problem :(