[Interest] How to use charts in designer?
Jason H
jhihn at gmx.com
Fri Jan 23 18:36:30 CET 2015
I've got a commercial license, and I want to layout a chart in Designer. When I try to promote it from QWidget to designer, then run it I get an error.
In the .h generated for the form by Designer:
#ifndef UI_FORM_H
#define UI_FORM_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
#include "QChart" // <- this should have < >
#include "aspectratiopixmaplabel.h"
class Ui_Form
{
public:
QHBoxLayout *horizontalLayout;
AspectRatioPixmapLabel *analizedImage;
QSpacerItem *verticalSpacer;
QChart *pieChart; // <- error here
...
More information about the Interest
mailing list