how to compare text entered in textfield with text returned from value() of QSettings?? I am using cascades
how to compare text entered in textfield with text returned from value() of QSettings?? I am using cascades
Both classes use QString, so as simple as using the QString operators or functions.
Cheers,
_
The value-method returns a QVariant. To convert it to a QString (which can be compared with another QString using the ==-operator or the compare-method of the QString class), just use the toString-method of the returned QVariant object.
The text() method returns the text as a QString already.
Cheers,
_
Bookmarks