qaction Questions

3

I have built up a QMenu MainMenu on top of my MainWindow in my application. As everybody is used to it, I have following QMenu Main menus: File - Edit - SuperHeavyExpertMenus - Settings - Help ...
Salep asked 3/9, 2015 at 12:30

4

Solved

Using Python 3.2x and PyQT 4.8x: I initialized an action and assigned to a menu item: self.__actionOpen = QtGui.QAction(self.__mw) self.__actionOpen.setObjectName("actionOpen") self.__actionOpen....
Exserviceman asked 22/5, 2013 at 23:10

1

Solved

I have disabled QAction menu element: QAction *item = new QAction(itemTitle); item->setEnabled(false); I use SLOT connection to call function after element was pressed, but it's works only fo...
Dreda asked 16/10, 2017 at 9:32

2

Solved

I want to be able to show ToolTips for QMenu items (QActions). The best I have achieved is to connect the hovered signal of the QAction to a QTooltip show: connect(action, &QAction::hovered, [...
Darbie asked 27/11, 2014 at 0:18

4

Solved

I'm doing an app with in GUI written with PySide. I set a QMenu on a QPushButton, added several QActions via QMenu.addAction. To further explain these actions to the user I added QToolTip's to thes...
Ladd asked 12/2, 2014 at 10:25

2

Solved

I have a QAction in QMenu. When QAction is triggered() I would like to know which button did it. connect(YourAction, SIGNAL(triggered()), this, SLOT(actionclicked())); void MainWindow::actioncli...
Dermoid asked 6/8, 2016 at 11:36

1

Solved

My goal is to make menu with labeled separators. So, I am running this code: QMenu *menu = new QMenu; QAction *group1 = menu->addSeparator(); group1->setText("Group of actions #1"); m...
Joliejoliet asked 22/6, 2016 at 19:28

2

Solved

In my Qt 5.6 program I need to connect QMenu Click (QAction) to function and provide some arguments. I can connect to function without arguments and it is working: connect(MyAction, &QAction::...
Clancy asked 19/4, 2016 at 17:44

1

Solved

I'm still kind of new to PyQt but I really have no idea why this is happening. I have a Mainwindow that I create like this: class MainWindow(QtGui.QMainWindow): #initialize def __init__(self): ...
Rottweiler asked 4/4, 2014 at 1:49

2

Solved

Here's a snapshot of the GUI. I want to perform simple actions solely by clicking on QMenu object Help. This QMenu object does NOT have any submenus. Can you please advise me how to perform action...
Disyllable asked 5/3, 2014 at 12:15

1

Solved

#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDebug> #include <cassert> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui-&g...
Stearic asked 31/1, 2014 at 16:51

1

int main( int argc, char* argv[] ) { QApplication oApp( argc, argv ); QAction *action1; QMenu menu; QSystemTrayIcon TrayIcon( QIcon("favicon.ico") ); TrayIcon.show(); action1= n...
Book asked 21/6, 2010 at 12:58
1

© 2022 - 2024 — McMap. All rights reserved.