I want to use strings at Qmessagebox.
Exists a function at QmessageBox to convert string to Qstring (that is the parameter waited by Qmessabox) ?
I dont want to write no include if it is not neccesary.
Thanks Kabanek & Zlatomir
I want to use strings at Qmessagebox.
Exists a function at QmessageBox to convert string to Qstring (that is the parameter waited by Qmessabox) ?
I dont want to write no include if it is not neccesary.
Thanks Kabanek & Zlatomir
You don't have to include anything, both the methods i suggested are in the QString (static members of QString), if you didn't notice, in my previous post the functions names are links to documentation.
You can use it like this:
Qt Code:
std::string str = "Text"; what_ever->setText(inText);To copy to clipboard, switch view to plain text mode
Bookmarks