Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I shorten long text in a QAction created for a QMenu?
david_fmod last edited by
When using QMenu::addAction to add a QAction, the provided text is used in its entirety which can result in the QMenu appearing excessively wide. Aside from ensuring the text is of a reasonable length before it is passed to QMenu::addAction, is there a way to edit how the menu is drawn to shorten the text?
is there a way to edit how the menu is drawn to shorten the text?