PDA

View Full Version : bb



yogi71089
14th February 2014, 09:34
how to compare text entered in textfield with text returned from value() of QSettings?? I am using cascades

anda_skoa
14th February 2014, 10:48
Both classes use QString, so as simple as using the QString operators or functions.

Cheers,
_

Infinity
14th February 2014, 21:17
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.

anda_skoa
15th February 2014, 13:17
The text() method returns the text as a QString already.

Cheers,
_