Hello! I need to get the QAction text/title from the action's callback/slot. I.e. when an action is triggered and the foo() slot function is called I need to get an action's text/title inside of the foo(). How I can do that?
Hello! I need to get the QAction text/title from the action's callback/slot. I.e. when an action is triggered and the foo() slot function is called I need to get an action's text/title inside of the foo(). How I can do that?
What about QAction->text() ?
In your slot use
Qt Code:
To copy to clipboard, switch view to plain text mode
Thank's a lot! "QAction *Act = qobject_cast<QAction *>(sender());" is just what I need!
Bookmarks