WidgetModel

Qt Components

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

0
Become a Fan
5.0

Description:
A simple Widget-Model, tested with Qt4.4

This is a ListModel where you can add your Widgets.

The Title, Icon, ToolTip, StatusTip and WhatsThis from the widgets are translated to roles of the Model.

If editing is enabled the user can edit the Title of the Widgets.

If a widget is deleted, it is automatically removed from the model.

To display the model you can use an QListView.


Example usage:

#include "widgetmodel.h"

WidgetModel *model=new WidgetModel(this);

//adds a widget to the model
model->addWidget(myWidget);

//removes a widget form the model
model->removeWidget(myWidget);

//sets the Model in Edit-Mode
model->setEditable(true);

//Which index has your widget
QModelIndex index=model->indexForWidget(myWidget);

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

Other Qt Components:

QyurVisualSqlFilter
purser79
last update date: 8 years ago

Score 5.0

QyurSqlTreeView
purser79
last update date: 8 years ago

Score 6.5

QtBasic
mantur
last update date: 12 years ago

Score 5.0

up2Date
seanpatti
last update date: 9 years ago

Score 5.0

MStyles
mchara
last update date: 17 years ago

Score 5.0

Hdr reading plugin
mchara
last update date: 17 years ago

Score 5.0