[SOLVED] QWizard: field("xxx").toString strips white spaces !!! QComboBox tab navigation !!!
-
Hey people,
I'm facing a strange problem, I have a 3 pages wizard with QLineEdit(s) and QComboBox(es).
Everything works fine but 2 issues:
The QlineEdit(s) are "registerField("Boutique*", boutiqueEdit);", but when I use QString Boutique = field("Boutique").toString(), all the white spaces in the returned string disappear !
Could anyone tell me why this happens and how can I keep my white spaces ?Futhermore I would to navigate between the QComboBox(es) with the tab key and can't seem to find a way to that...
Thanx in advance for your help.
-
Hi,
Could you show an example of what you have in the QLineEdit and what the call to field returns ?
-
Hi SGaist,
When QLineEdit is : "15 rue du renard"
qDebug() << field(“Boutique”).toString() shows : "15ruedurenard"which doesn't make any sense to me.
-
OK so after a good night sleep I found out the issue my use of QLineEdit::setInputMask("xxxxxxxxx");
Is the reason my white spaces disappeared. -
Great you found out and thanks for sharing.
Happy coding !