Hello all,
I'm trying to set the text of a QLabel, among other things, which takes QString. I need to set it however from the text in a std::string. How do I do this conversion? I've tried looking in the QString Class Reference to no avail...
I was trying to use
Qt Code:
ui.labelName->setText(K1.getName());To copy to clipboard, switch view to plain text mode
but K1.getName(); returns std::string
Thanks for the time,
Backslash
Bookmarks