Questions tagged [qt-contextmenu]
5 questions
15
votes
3 answers
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!!

Mohammad Sheykholeslam
- 1,379
- 5
- 18
- 35
3
votes
3 answers
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…

AMM
- 17,130
- 24
- 65
- 77
2
votes
2 answers
Context Menu on QGraphicsWidget
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…

onurozcelik
- 1,214
- 3
- 21
- 44
1
vote
1 answer
Qt: How to set context menu stylesheet for whole application's QLineEdit
As you can see in the following screenshot, the selected item's font color is white as its background color, which cause we can not see the item text, this issue exists in all the QLineEdits in my application, so i just want to set the selected…

Wade Wang
- 536
- 6
- 11
1
vote
1 answer
Qt custom context menu
Am creating a Qt Application which consists of a tree view and a webview. when a item from a tree view is clicked it should load the corresponding url. It Works Fine. when am right clicking on the item a custom context menu will appear n it will…

New Moon
- 787
- 6
- 21
- 35