Compiling on > qt5.6
Posted: Mon Oct 23, 2017 8:37 pm
trying to compile on debian stretch which has qt5.7.. there are many problems. I'm using Mike's git repo.
main problem is declarative class has been obsoleted. Found a script that renames functions and += in .pro files
It compiles bit further and then this. I don't know qt so I'm stuck.
First few errors:
In file included from src/gaugewidget.h:27:0,
from src/gaugewidget.cpp:22:
src/gaugeitem.h:86:38: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget * w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:23:0:
src/roundgaugeitem.h:42:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:24:0:
src/bargaugeitem.h:41:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
src/gaugewidget.cpp: In constructor ‘GaugeWidget::GaugeWidget(QWidget*)’:
src/gaugewidget.cpp:30:62: error: no matching function for call to ‘QQuickView::QQuickView(QWidget*&)’
GaugeWidget::GaugeWidget(QWidget *parent) : QQuickView(parent)
main problem is declarative class has been obsoleted. Found a script that renames functions and += in .pro files
It compiles bit further and then this. I don't know qt so I'm stuck.
First few errors:
In file included from src/gaugewidget.h:27:0,
from src/gaugewidget.cpp:22:
src/gaugeitem.h:86:38: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget * w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:23:0:
src/roundgaugeitem.h:42:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/gaugewidget.cpp:24:0:
src/bargaugeitem.h:41:41: error: ‘QStyleOptionGraphicsItem’ does not name a type
void paint(QPainter *painter, const QStyleOptionGraphicsItem *style , QWidget *w);
^~~~~~~~~~~~~~~~~~~~~~~~
src/gaugewidget.cpp: In constructor ‘GaugeWidget::GaugeWidget(QWidget*)’:
src/gaugewidget.cpp:30:62: error: no matching function for call to ‘QQuickView::QQuickView(QWidget*&)’
GaugeWidget::GaugeWidget(QWidget *parent) : QQuickView(parent)