-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (3) .- Knowledge Base (1) . 

NightCharts(Draw Charts)

   0.1a  

Qt Widget

Score 65%
NightmasterNightmaster
Bank Soft Systems
Home
NightCharts(Draw Charts)
zoom


NightCharts(Draw Charts)
zoom


NightCharts(Draw Charts)
zoom


Minimum required   Qt 4.x
Downloads:  4860
Submitted:  Sep 13 2010
Updated:  Apr 1 2015

Description:

Introducing the class for drawing charts.
This class includes a drawing histogram, pies and pseudo 3D pies.
It has very simple API and high level usability.
Licensed under LGPL 2.1

Example :
void MainWindow::paintEvent(QPaintEvent e*)
{
QWidget::paintEvent(e);
QPainter painter;
QFont font;
painter.begin(this);
Nightcharts PieChart;
PieChart.setType(Nightcharts::DPie);//{Histogramm,Pie,DPie};
PieChart.setLegendType(Nightcharts::Round);//{Round,Vertical}
PieChart.setCords(100,100,this->width()/1.5,this->height()/1.5);
PieChart.addPiece("Item1",QColor(200,10,50),34);
PieChart.addPiece("Item2",Qt::green,27);
PieChart.addPiece("Item3",Qt::cyan,14);
PieChart.addPiece("Item4",Qt::yellow,7);
PieChart.addPiece("Item5",Qt::blue,4);
PieChart.draw(&painter);
PieChart.drawLegend(&painter);
}

Updated : remove memory leak;

Initial angle can be set. so if you change it you can achieve the effect of motion of pie on its axis.

var : palpha = ;

Updated : Now the vertical legend has its own coordinates.
Use Nightcharts::setLegendCords(double x,double y);
Also changed rendering 3d Pie by removing the black frame. His screenshot was updated.

Updated : Added new option : Nightcharts::setShadows(bool);
Also changed rendering histogram and normal pie. Screenshots was updated.

Updated(2010/09/16) : Now when you create object does not need to pass QPainter; it is transmitted only in the methods draw/drawLegend. Also removed all memory leaks.

Updated(2015/04/01) : Posted code to github and soon there will be two new types of charts
(https://github.com/Nightmeister/nightcharts)

Write about found bugs please




LicenseLGPL
Source(nightcharts)
Send to a friend
Subscribe
Other  Apps  from Nightmaster
Report inappropriate content



goto page: prev   1  2 

-

 program finished

 
 by Casilio on: Apr 14 2015
 
Score 50%

I run example and it work fine. But if I try write something like this:
Quote:
void MainWindow::on_pushButton_clicked()
{
PieChart->addPiece("dfgfg", Qt::black,10);
PieChart->draw(painter);
}

I've had message "The program has unexpectedly finished."?


Reply to this

goto page: prev   1  2 

Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About Qt-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2006-2016 Qt-Apps.org Team  
All rights reserved. Qt-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
Qt is a trademarks of Nokia