I don't see why the following shouldn't work. std::string str = "hello"; QString s(str); Mind the missing '&'
Forum Rules
Bookmarks