Hello,
I would like to get some kind of hint as to how handle QWizard object in the programming. I had a need to use QTextEdit in a QWizardPage but QTextEdit is not supported by default there, only QLineEdit etc. The manual says I can add QTextEdit by, for example:
ClassWizard
::ClassWizard(QWidget *parent
) : QWizard(parent)
setDefaultProperty("QTextEdit", "toPlainText", "textChanged")
.....
ClassWizard::ClassWizard(QWidget *parent)
: QWizard(parent)
setDefaultProperty("QTextEdit", "toPlainText", "textChanged")
.....
To copy to clipboard, switch view to plain text mode
but that doesn't help and the
registerField("text", textEdit)
registerField("text", textEdit)
To copy to clipboard, switch view to plain text mode
still shows empty on
QMessageBox (.....field("text").toString())
To copy to clipboard, switch view to plain text mode
while the textBox is filled.
-
I have tryied:
setField("text", txt);
QVariant txt = textEdit->toPlainText();
setField("text", txt);
To copy to clipboard, switch view to plain text mode
but that still doesn not work and the field "text" stil empty.
-
Could you help me to find out how do I go about this to be able to use QTextEdit in QWizard pages?
Bookmarks