Page Contents

Topics

Classes

QLMenuBar Class

#include <QLayers/qlmenubar.h>

Inherits: QMenuBar, QLThemeable

Public Functions

QLMenuBar(QWidget* parent = nullptr)
LAttribute* selected_text_color() const
LAttribute* text_color() const
virtual void update() override

Detailed Description

QLMenuBar Example

A QLMenuBar is a QMenuBar and a QLThemeable that provides a menu bar interface consisting of a list of pull-down menu items.

Member Function Documentation

QLMenuBar(QWidget* parent = nullptr)

Constructs a menu bar.

LAttribute* selected_text_color() const

Returns a pointer to the selected text color attribute of the menu bar.

LAttribute* text_color() const

Returns a pointer to the text color attribute of the menu bar.

void update()

Virtual

Override

Updates the menu bar.

This function overrides QLThemeable::update() to update the menu bar's style sheet.