QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | Protected Member Functions | List of all members
QgsMenuHeader Class Reference

#include <qgsmenuheader.h>

Inheritance diagram for QgsMenuHeader:
Inheritance graph

Public Member Functions

 QgsMenuHeader (const QString &text, QWidget *parent=nullptr)
 Constructor for QgsMenuHeader, showing the specified text. More...
QSize minimumSizeHint () const override
QSize sizeHint () const override

Protected Member Functions

void paintEvent (QPaintEvent *event) override

Detailed Description

Custom widget for displaying subheaders within a QMenu in a standard style.

See also
QGIS 3.0

Definition at line 32 of file qgsmenuheader.h.

Constructor & Destructor Documentation

◆ QgsMenuHeader()

QgsMenuHeader::QgsMenuHeader ( const QString &  text,
QWidget *  parent = nullptr 

Constructor for QgsMenuHeader, showing the specified text.

Definition at line 23 of file qgsmenuheader.cpp.

Member Function Documentation

◆ minimumSizeHint()

QSize QgsMenuHeader::minimumSizeHint ( ) const

Definition at line 39 of file qgsmenuheader.cpp.

◆ paintEvent()

void QgsMenuHeader::paintEvent ( QPaintEvent *  event)

Definition at line 49 of file qgsmenuheader.cpp.

◆ sizeHint()

QSize QgsMenuHeader::sizeHint ( ) const

Definition at line 44 of file qgsmenuheader.cpp.

The documentation for this class was generated from the following files: