while QString has implicit constructor you can compare them with == operator
if ( localCalibrateControlsObj->setHomographyButton->text() == "Set Homography" ) ...
if ( localCalibrateControlsObj->setHomographyButton->text() == "Set Homography" ) ...
To copy to clipboard, switch view to plain text mode
and if you want to compare with qstrcmp you should get a const char pointer to QString data like this
if ( qstrcmp( localCalibrateControlsObj->setHomographyButton->text().toAscii().constData(),"Set Homography")==0) ...
if ( qstrcmp( localCalibrateControlsObj->setHomographyButton->text().toAscii().constData(),"Set Homography")==0) ...
To copy to clipboard, switch view to plain text mode
Bookmarks