qt-contextmenu

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...

Context Menu Creation with ‪ Qt Designer(Qt Creator IDE)

How can i create a Context menu in Qt Designer (1.3)? Certainly I want to create it with out writing one line code!! ...

Context Menu on QGraphicsWidget

Hi, In my application I have two object type. One is field item, other is composite item. Composite items may contain two or more field items. Here is my composite item implementation. #include "compositeitem.h" CompositeItem::CompositeItem(QString id,QList<FieldItem *> _children) { children = _children; } CompositeItem::~Composit...