MenuView

Qt Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
Score 58.0%
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.
Be the first to comment
12345678910
1
product-maker Karbofos Oct 21 2013 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.1
updated Jan 07 2010
added Jan 07 2010
downloads today
0
page views today 3
System Tags