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
)
Q_PROPERTY(QString file READ file WRITE setFile)
To copy to clipboard, switch view to plain text mode
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()));
registerField("packageIcon",m_pPackageIconEdit,"file",SIGNAL(selectionChanged()));
To copy to clipboard, switch view to plain text mode
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?
Bookmarks