QT

How i can convert int to QString

skyLove1982 2017. 10. 30. 10:53
반응형
If myInt is a integer value that has to change to QString, what would we have to do?
There is a example down below. The number function of QString is a static function, we can use that function, if we add '::' text next to QString.

QString tmp = QString::number(myInt)

QString tmp = tr("%1").arg(myInt)


QString( "You have mined %1 coins" ).arg( value );




반응형