PDA

View Full Version : Registering QListView and QPlainTextEdit in Wizard Class



SykeS
10th June 2010, 13:05
Hi!

I want to access my data from QListView and QPlainTextEdit on last page of my wizard. I was trying to accomplish this with registerField, but then field("name") returns empty QVariant. Same method with QLineEdit works perfectly.

I don't think pasting my code is necessary.

Cya

SykeS
10th June 2010, 15:50
Ok, I found that: http://doc.qt.nokia.com/4.6/qwizardpage.html#registerField

But this code don't work:

registerField("myField", plainEdit, plainText, textChanged());

It returns: 'plainText' was not declared in this scope and 'textChanged' was not declared in this scope.

quain
2nd December 2010, 17:33
Try using something like this:

registerField("myField", plainEdit, "plainText");