QTable - Simple work with models

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:
QTable is table wrapper for table models (and for any models in general case).
The purpose of this class is to simplify work with tables for novices in Qt.

Use this class to simply create and manipulate table with ability to link to various viewers (for example, to QTableView).

Example of usage:

[quote]// Making
static QTable table;
ui->tableView->setModel( table.model() );
// Cofiguring
table.setColumnCount(3);
table.setColumnHeaders( QTableLine( "Name", "Product", "Cost" ) );
// Add data
table.appendRow( QTableLine( "V. Pupkin", "Car", "22000" ) );
table.appendRow( QTableLine( "I. Ivanov", "T-Shirt", "15" ) );
// Manipulate data
int sum = table.value(0,2).toInt() + table.value(1,2).toInt();
table.set( 0,2, 22500 );
[/quote]

By default QTable makes instance of QTableModel - the model-class of editable QVariant table. You can access to this model using model() member of QTable instance.

Also QTable can use external models; you can change the root index of model for table manipulating.
Last changelog:

1.0 pre-alpha:
* First release.


Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license
version 1.0 pre-alpha
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

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