I think like this
Qt Code:
int num; if (num <= 9 && num >= 0) qstr.insert(0, "0"); else if (num >= -9 && num <= 0) qstr.insert(1, "0"); ui.label->setText(qstr);To copy to clipboard, switch view to plain text mode![]()
I think like this
Qt Code:
int num; if (num <= 9 && num >= 0) qstr.insert(0, "0"); else if (num >= -9 && num <= 0) qstr.insert(1, "0"); ui.label->setText(qstr);To copy to clipboard, switch view to plain text mode![]()
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
aj2903 (12th March 2009)
Bookmarks