MenuView

Qt Widgets

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

4
Become a Fan
5.7

Description:
A Menu-View, tested with Qt4.4

With MenuView it is possible to display a Model like QDirModel as a QMenu.

The MenuView has 2 signals:
void triggered(const QModelIndex &);
void hovered(const QModelIndex &);
which works like the same signals of QAction, but here are the QModelIndex of the triggered/hovered items are transfered.

The constructor of the view:
MenuView(const QString &title, QWidget *parent=0);

The model ist set with:
model->setModel(yourModel, recursive)

The parameter recursive tells the view, to use Sub-Menus, if the Model has the childs.

Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license
version 0.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Qt Widgets from upsala:

WindowMenu
upsala
last update date: 15 years ago

Score 5.0

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 8 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 8 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1