In QT, for a context menu item, how to hide the space of the icon
I am adding a context menu using QAction for a widget. Now, there is some white space beside the text of the action. I assume this is the space where the QIcon association with the QAction should have been there. Now how do i hide this space. I tried doing a action->setIcon(QIcon()); but still does not seem to work. Kindly let me know i...