QGIS API Documentation 4.1.0-Master (bf6e22d825e)
Loading...
Searching...
No Matches
qgspersistentmenu.h
Go to the documentation of this file.
1/***************************************************************************
2 QgsPersistentMenu.h - menu to be used for toolbars
3 ---------------------
4 begin : June 2026
5 copyright : (C) 2026 by Till Frankenbach
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QgsPersistentMenu_H
17#define QgsPersistentMenu_H
18
19#include "qgis_gui.h"
20
21#include <QMenu>
22
23#define SIP_NO_FILE
24
32class GUI_EXPORT QgsPersistentMenu : public QMenu
33{
34 Q_OBJECT
35
36 public:
40 explicit QgsPersistentMenu( const QString &title, QWidget *parent = nullptr );
41
42 void mouseReleaseEvent( QMouseEvent *e ) override;
43
44 void keyPressEvent( QKeyEvent *e ) override;
45
46 ~QgsPersistentMenu() override;
47};
48
49#endif // QgsPersistentMenu_H
void keyPressEvent(QKeyEvent *e) override
QgsPersistentMenu(const QString &title, QWidget *parent=nullptr)
QgsPersistentMenu is a menu to be used with toolbars.
void mouseReleaseEvent(QMouseEvent *e) override