QSint Charts

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

0
Become a Fan
5.7

Description:
BarChartPlotter is a simple Bar Chart plotting widget.

This is a technical preview only - BarChartPlotter will be included into QSint::Charts library.

BarChartPlotter provides easy-to-use API and performs fast "native" painting (directly via QPainter).

Currently it allows to draw Bar Charts of 2 types: Stacked and Column.

BarChartPlotter follows MVC ideology using QAbstractItemModel as data source.

Ratings & Comments

2 Comments

Karbofos

Hello! Many thanks for this project. :) My question: i try to colorize the separate items of the chart, for example: itemModel->setData(itemModel->index(i, j), Qt::red, Qt::BackgroundRole); or itemModel->setData(itemModel->index(i, j), Qt::blue, Qt::ForegroundRole); and the objects are not colorized. what is wrong? thank you!

Karbofos

all right, i solved it. replaced in BarChartPlotter::drawContent // QPen pen(qvariant_cast<QColor>(m_model->headerData(j, Qt::Vertical, Qt::ForegroundRole))); // QBrush brush(qvariant_cast<QBrush>(m_model->headerData(j, Qt::Vertical, Qt::BackgroundRole))); QPen pen(qvariant_cast<QColor>(m_model->data(m_model->index(j,i), Qt::ForegroundRole))); QBrush brush(qvariant_cast<QBrush>(m_model->data(m_model->index(j,i), Qt::BackgroundRole))); this solution i need for colorized displaing of percent information, f. ex: about 35% is red and so on

Pling
0 Affiliates
Details
license
version 0.1.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Qt Widgets from sintegrial:

QSint Widgets Collection
sintegrial
last update date: 9 years ago

Score 6.5

qwtplot3d
sintegrial
last update date: 9 years ago

Score 5.0

QRoundProgressBar
sintegrial
last update date: 10 years ago

Score 6.1

QSint Widgets Library
sintegrial
last update date: 13 years ago

Score 7.2

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: 7 years ago

Score 5.7

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

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1