This code comes from the grouppushbuttonbox example at
http://doc.qt.io/qt-5/qtwidgets-widg...x-example.html
At run time I want to build a string to replace the ("&First Item") with a concatenated integer. It fails to compile saying that std::string is in valid for the argument. QString fails for the same reason.
There has to be a way of changing this text at startup. Any help would be appreciated.
Thank You
emp1953
Added after 25 minutes:
Here is the compiler error
/home/123/groupbox_example/window.cpp:102: error: no matching function for call to 'Window::tr(std::string&)'
menu->addAction(tr(str));
^
Bookmarks