Skip to content

Piechart example#7

Open
gunrot wants to merge 32 commits intoQUItCoding:masterfrom
gunrot:piechart
Open

Piechart example#7
gunrot wants to merge 32 commits intoQUItCoding:masterfrom
gunrot:piechart

Conversation

@gunrot
Copy link
Copy Markdown
Contributor

@gunrot gunrot commented Jan 5, 2016

Made my own example, which is drawing 60 PieCharts ( each being an own QNanoQuickItem), getting data by a ListModel. The PieCharts are animated by rotating opening or scaling opening and closing. Maybe this is also useful for you.

gunrot added 2 commits January 5, 2016 22:40
increase the number of item to 60, use 3 ItemListModels as
data provider.
@QUItCoding
Copy link
Copy Markdown
Owner

Looking nice!

If this would be to be baked into QNanoPainter examples I would:

  • Add it as part of gallery examples instead of separate app. I like that there is hello world as simplest example, qnanopainter vs. qpainter for comparison of those and gallery for all the rest, demonstrating QNanoPainter usage.
  • Make rendering a bit more scalable, included examples should work OK on portrait mobile phone screens. When running on Nexus 6 piecharts only cover top part of the screen and text is very small.
  • Instead of big amount of ’PieChart {}’ use Repeater and randomized values. Or might add them into scrollable GridView to demonstrate component creation time.
  • Avoid using qml-private and including private/qqmlchangeset_p.h, private Qt parts can change anytime as warning says. Looks like those aren’t used in code currently.

But this can live also here as an external example for anyone to check out!

gunrot added 2 commits January 6, 2016 18:13
takes orientation into account for window size and
calculates the column count based on this. a flivkable allow
to scroll the content now if it is larger than the screen.
@gunrot
Copy link
Copy Markdown
Contributor Author

gunrot commented Jan 6, 2016

Hi Kaj, first i wanted to have you a look.

  1. I can try to integrate it into the gallery later.
  2. Tried to make adapt to screen orientation and column count is calculated from width now instead of being fixed. A flickable was added so you can scroll the content if it is larger than the screen,
  3. GridView or repeater would be the same, but:
    a. It fits my use case more having explicit instantiations.
    b. I have no clue how to give different models to a delegate via a repeater or gridview.
  4. private/qqmlchangeset_p.h, was a residue from my starting point to add an implementation
    of a model property, by looking at some code from repeater.but that was completely useless in the end.
  5. It is an interesting thing, that I found no samples how to actually implement a model property using data from Qml ListModel. I only found https://github.com/dinusv/qml-gantt which has its own range model and a own QuickItem accessing it.

@NielsMayer
Copy link
Copy Markdown
Contributor

I'm attempting to build this example on the Linux Desktop, and having problems. Same source builds fine for Android and displays on NVIDIA Shield TV. After applying the change suggested in #8, I see the following errors compiling on Ubuntu 14.04LTS and Qt 5.6 beta (build 303):

First, a warning is given:

Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!

And then a very horrible error containing -- "note: template argument deduction/substitution failed" ...
aka around the time I ask for help... However. it seems like in some cases, an explicit cast is needed to stop complaints re: "&PieChart::dataChanged" ??

g++ -c -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_OPENGL_ES_2 -DQT_NO_DEBUG_OUTPUT -DQT_NO_INFO_OUTPUT -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart -I/home/npm/android/src/shield/qnanop-gunrot/build-qnanopainter-Desktop_Qt_5_6_0_GCC_x86_64bit_in_usr_bin-Release/examples/piechart -I../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter -I/opt/Qt5.6.0-beta/5.6/gcc_64/include -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtGui -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/5.6.0 -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/5.6.0/QtQml -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtNetwork -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore -I/home/npm/android/src/shield/qnanop-gunrot/build-qnanopainter-Desktop_Qt_5_6_0_GCC_x86_64bit_in_usr_bin-Release/examples/piechart -I/opt/Qt5.6.0-beta/5.6/gcc_64/mkspecs/linux-g++ -o piechart.o ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp: In member function 'void PieChart::setModel(const QVariant&)': ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:127:45: error: no matching function for call to 'PieChart::disconnect(QPointer<QAbstractListModel>&, void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&), PieChart* const, void (PieChart::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&))' this, &PieChart::dataChanged); ^ ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:127:45: note: candidates are: In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: static bool QObject::disconnect(const QObject*, const char*, const QObject*, const char*) static bool disconnect(const QObject *sender, const char *signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: static bool QObject::disconnect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&) static bool disconnect(const QObject *sender, const QMetaMethod &signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const QMetaMethod&' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: bool QObject::disconnect(const char*, const QObject*, const char*) const inline bool disconnect(const char *signal = Q_NULLPTR, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: candidate expects 3 arguments, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: bool QObject::disconnect(const QObject*, const char*) const inline bool disconnect(const QObject *receiver, const char *member = Q_NULLPTR) const ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: candidate expects 2 arguments, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: static bool QObject::disconnect(const QMetaObject::Connection&) static bool disconnect(const QMetaObject::Connection &); ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: candidate expects 1 argument, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template<class Func1, class Func2> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2) static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template<class Func1> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, void**) static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: error: no matching function for call to 'PieChart::connect(QPointer<QAbstractListModel>&, void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&), PieChart* const, void (PieChart::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&))' this, &PieChart::dataChanged); ^ ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: candidates are: In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const char *signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const QMetaMethod&' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot) ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot) ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.h:4, from ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed: ../../../qnanopainter-180f2056d8566ca1c5a04f53e31f4425b69c15bc/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ make[1]: *** [piechart.o] Error 1

gunrot added 2 commits January 8, 2016 08:16
i use c++11 style connnect/disconnect.
didnt need that on windows (msvc always has c++11 enable)
but with qt 5.6 it seems it is not need onosx too,
but on linux i suppose it is still needed.
@gunrot
Copy link
Copy Markdown
Contributor Author

gunrot commented Jan 8, 2016

could you please try again?
thx.

@NielsMayer
Copy link
Copy Markdown
Contributor

After adding the following to libqnanopainter/include.pri:

linux { DEFINES += QT_OPENGL_ES_2 }

I built f44f4ab : The private-usage warning is gone, but I still get the following errors:

g++ -c -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_OPENGL_ES_2 -DQT_NO_DEBUG_OUTPUT -DQT_NO_INFO_OUTPUT -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart -I. -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter -I/opt/Qt5.6.0-beta/5.6/gcc_64/include -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtGui -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtNetwork -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore -I. -I/opt/Qt5.6.0-beta/5.6/gcc_64/mkspecs/linux-g++ -o piechart.o ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp: In member function 'void PieChart::setModel(const QVariant&)': ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: error: no matching function for call to 'PieChart::disconnect(QPointer<QAbstractListModel>&, void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&), PieChart* const, void (PieChart::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&))' this, &PieChart::dataChanged); ^ ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: candidates are: In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: static bool QObject::disconnect(const QObject*, const char*, const QObject*, const char*) static bool disconnect(const QObject *sender, const char *signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: static bool QObject::disconnect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&) static bool disconnect(const QObject *sender, const QMetaMethod &signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const QMetaMethod&' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: bool QObject::disconnect(const char*, const QObject*, const char*) const inline bool disconnect(const char *signal = Q_NULLPTR, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: candidate expects 3 arguments, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: bool QObject::disconnect(const QObject*, const char*) const inline bool disconnect(const QObject *receiver, const char *member = Q_NULLPTR) const ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: candidate expects 2 arguments, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: static bool QObject::disconnect(const QMetaObject::Connection&) static bool disconnect(const QMetaObject::Connection &); ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: candidate expects 1 argument, 4 provided /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template<class Func1, class Func2> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2) static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template<class Func1> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, void**) static inline bool disconnect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: error: no matching function for call to 'PieChart::connect(QPointer<QAbstractListModel>&, void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&), PieChart* const, void (PieChart::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&))' this, &PieChart::dataChanged); ^ ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: candidates are: In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const char *signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType) static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const QMetaMethod&' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: no known conversion for argument 2 from 'void (QAbstractItemModel::*)(const QModelIndex&, const QModelIndex&, const QVector<int>&)' to 'const char*' /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot) ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot) ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37, from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4, from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1: /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType) connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot, ^ /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed: ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer<Func>::Object*' and 'QPointer<QAbstractListModel>' this, &PieChart::dataChanged); ^ make[1]: *** [piechart.o] Error 1

@gunrot
Copy link
Copy Markdown
Contributor Author

gunrot commented Jan 10, 2016

Well you did make a qmake step after updating, didn’t you?

I added CONFIG+=c++11 in this commit , but your command line still shows g++ -c -pipe -O2 -std=gnu++0x
but is should have -std=c++11 . Thats probably because your makefiles were nit updated by a make run.
Regards,
Gunnar

Am 10.01.2016 um 04:33 schrieb Niels Mayer notifications@github.com:

After adding the following to libqnanopainter/include.pri:

linux {
DEFINES += QT_OPENGL_ES_2
}

I built f44f4ab f44f4ab : The private-usage warning is gone, but I still get the following errors:

g++ -c -pipe -O2 -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_OPENGL_ES_2 -DQT_NO_DEBUG_OUTPUT -DQT_NO_INFO_OUTPUT -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart -I. -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter -I/opt/Qt5.6.0-beta/5.6/gcc_64/include -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtGui -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtNetwork -I/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore -I. -I/opt/Qt5.6.0-beta/5.6/gcc_64/mkspecs/linux-g++ -o piechart.o ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp: In member function 'void PieChart::setModel(const QVariant&)':
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: error: no matching function for call to 'PieChart::disconnect(QPointer&, void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&), PieChart const, void (PieChart::)(const QModelIndex&, const QModelIndex&, const QVector&))'
this, &PieChart::dataChanged);
^
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: candidates are:
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: static bool QObject::disconnect(const QObject
, const char_, const QObject_, const char_)
static bool disconnect(const QObject *sender, const char *signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:353:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&)' to 'const char'
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: static bool QObject::disconnect(const QObject_, const QMetaMethod&, const QObject_, const QMetaMethod&)
static bool disconnect(const QObject *sender, const QMetaMethod &signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:355:17: note: no known conversion for argument 2 from 'void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&)' to 'const QMetaMethod&'
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: bool QObject::disconnect(const char
, const QObject_, const char_) const
inline bool disconnect(const char *signal = Q_NULLPTR,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:357:17: note: candidate expects 3 arguments, 4 provided
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: bool QObject::disconnect(const QObject_, const char_) const
inline bool disconnect(const QObject *receiver, const char *member = Q_NULLPTR) const
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:360:17: note: candidate expects 2 arguments, 4 provided
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: static bool QObject::disconnect(const QMetaObject::Connection&)
static bool disconnect(const QMetaObject::Connection &);
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:362:17: note: candidate expects 1 argument, 4 provided
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template<class Func1, class Func2> static bool QObject::disconnect(const typename QtPrivate::FunctionPointer::Object_, Func1, const typename QtPrivate::FunctionPointer::Object_, Func2)
static inline bool disconnect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:368:24: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object_' and 'QPointer'
this, &PieChart::dataChanged);
^
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template static bool QObject::disconnect(const typename QtPrivate::FunctionPointer::Object_, Func1, const QObject_, void
)
static inline bool disconnect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:385:24: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:127:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object
' and 'QPointer'
this, &PieChart::dataChanged);
^
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: error: no matching function for call to 'PieChart::connect(QPointer&, void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&), PieChart const, void (PieChart::)(const QModelIndex&, const QModelIndex&, const QVector&))'
this, &PieChart::dataChanged);
^
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: candidates are:
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: static QMetaObject::Connection QObject::connect(const QObject
, const char_, const QObject_, const char_, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const char *signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:196:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&)' to 'const char'
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: static QMetaObject::Connection QObject::connect(const QObject_, const QMetaMethod&, const QObject_, const QMetaMethod&, Qt::ConnectionType)
static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:199:36: note: no known conversion for argument 2 from 'void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&)' to 'const QMetaMethod&'
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: QMetaObject::Connection QObject::connect(const QObject
, const char_, const char_, Qt::ConnectionType) const
inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:475:32: note: no known conversion for argument 2 from 'void (QAbstractItemModel::)(const QModelIndex&, const QModelIndex&, const QVector&)' to 'const char'
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer::Object_, Func1, const typename QtPrivate::FunctionPointer::Object_, Func2, Qt::ConnectionType)
static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:213:43: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object_' and 'QPointer'
this, &PieChart::dataChanged);
^
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<((int)(QtPrivate::FunctionPointer::ArgumentCount) >= 0), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object_, Func1, Func2)
connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot)
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:245:13: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object_' and 'QPointer'
this, &PieChart::dataChanged);
^
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(((int)(QtPrivate::FunctionPointer::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer::IsPointerToMemberFunction)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object_, Func1, const QObject_, Func2, Qt::ConnectionType)
connect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal, const QObject *context, Func2 slot,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:254:13: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object
' and 'QPointer'
this, &PieChart::dataChanged);
^
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object_, Func1, Func2)
connect(const typename QtPrivate::FunctionPointer::Object *sender, Func1 signal, Func2 slot)
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:285:13: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object_' and 'QPointer'
this, &PieChart::dataChanged);
^
In file included from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qvariant.h:45:0,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqmlprivate.h:51,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQml/qqml.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickitem.h:38,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickItem:1,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/qquickframebufferobject.h:37,
from /opt/Qt5.6.0-beta/5.6/gcc_64/include/QtQuick/QQuickFramebufferObject:1,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter/qnanoquickitem.h:25,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.h:4,
from ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:1:
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template<class Func1, class Func2> static typename QtPrivate::QEnableIf<(QtPrivate::FunctionPointer::ArgumentCount == (-1)), QMetaObject::Connection>::Type QObject::connect(const typename QtPrivate::FunctionPointer::Object_, Func1, const QObject_, Func2, Qt::ConnectionType)
connect(const typename QtPrivate::FunctionPointer::Object sender, Func1 signal, const QObject *context, Func2 slot,
^
/opt/Qt5.6.0-beta/5.6/gcc_64/include/QtCore/qobject.h:293:13: note: template argument deduction/substitution failed:
../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp:138:45: note: mismatched types 'const typename QtPrivate::FunctionPointer::Object
' and 'QPointer'
this, &PieChart::dataChanged);
^
make[1]: *** [piechart.o] Error 1


Reply to this email directly or view it on GitHub #7 (comment).

@NielsMayer
Copy link
Copy Markdown
Contributor

Yes, I did a clean all, make qmake, and even deleted the build directories and *.pro.user and reconfigured..

Note that I'm using the stock 14.04LTS compiler for desktop:

ii g++ 4:4.8.2-1ubuntu6 amd64 GNU C++ compiler ii g++-4.8 4.8.4-2ubuntu1~14.04 amd64 GNU C++ compiler

I'm building in qtcreator 3.6.0, configuring build for multiple platforms, which creates a build directory build-qnanopainter-Desktop_Qt_5_6_0_GCC_x86_64bit_in_usr_bin-Release/ and compiles in that directory.

For android's successful build, I"m using GCC 4.9 from androidn-ndk-r10e -- note compilation contains " -std=c++11" and is done in directory 'build-qnanopainter-Android_Qt_5_6_0_Android_GCC_arm_4_9-Release/'

/opt/NVIDIA/NVPACK/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -fno-builtin-memmove -std=c++11 -O2 -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -mthumb -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_OPENGL_ES_2 -DQT_NO_DEBUG_OUTPUT -DQT_NO_INFO_OUTPUT -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart -I. -I../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/libqnanopainter -I/opt/Qt5.6.0-beta/5.6/android_armv7/include -I/opt/Qt5.6.0-beta/5.6/android_armv7/include/QtQuick -I/opt/Qt5.6.0-beta/5.6/android_armv7/include/QtGui -I/opt/Qt5.6.0-beta/5.6/android_armv7/include/QtQml -I/opt/Qt5.6.0-beta/5.6/android_armv7/include/QtNetwork -I/opt/Qt5.6.0-beta/5.6/android_armv7/include/QtCore -I. -isystem /opt/NVIDIA/NVPACK/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem /opt/NVIDIA/NVPACK/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem /opt/NVIDIA/NVPACK/android-ndk-r10e/platforms/android-9/arch-arm/usr/include -I/opt/Qt5.6.0-beta/5.6/android_armv7/mkspecs/android-g++ -o piechart.o ../../../qnanopainter-f44f4abb7237f99f8db9404933caed48e9275b1c/examples/piechart/piechart.cpp

/opt/NVIDIA/NVPACK/... is NVIDIA CodeWorks for Android 1R4 http://docs.nvidia.com/gameworks/index.html#developertools/mobile/codeworks_android/codeworks_for_android.htm

@gunrot
Copy link
Copy Markdown
Contributor Author

gunrot commented Jan 10, 2016

the last commit fixed it for me in ubuntu 14.04 vm with gcc 4.8.2. it was not the -std switch but
i use a model Pointer as sender in connect and gcc4.8 cannot convert that to the c pointer type, but all other compilers seems to be able to.

@NielsMayer
Copy link
Copy Markdown
Contributor

The last commit did not fix it for me in Ubuntu 14.04LTS w/ "gcc 4.8.4-2ubuntu1~14.04."

However, after adding the additional four commits made to your branch 'fixopengllinux' I was able to get it to compile and run successfully.

Specifically, these commits, gunrot/qnanopainter@piechart...gunrot:fixopengllinux
were added to my working copy of branch 'piechart':

git clone git@github.com:gunrot/qnanopainter.git
cd qnanopainter
git checkout piechart
git cherry-pick e91c622
... 'git commit -a' and manually resolve conflicts
git cherry-pick 9ae6333
... 'git commit -a' and manually resolve conflicts
git cherry-pick cb0a6fb
git cherry-pick 7405464

@gunrot
Copy link
Copy Markdown
Contributor Author

gunrot commented Jan 12, 2016

Sure, that is expected. I wanna have this pull requests separated. you just could have made a
git rebase fixopengllinux in your local piechart branch.

@NielsMayer
Copy link
Copy Markdown
Contributor

I verify that branch piechart now builds on linux via c7f532a from QUItCoding/qnanopainter.git master/head. Specifically, I did (in case someone else wants to get this example running on Linux desktop):

$ git clone git@github.com:gunrot/qnanopainter.git
$ mv qnanopainter qnanopainter-piechart
$ cd qnanopainter-piechart
$ git checkout piechart
Branch piechart set up to track remote branch piechart from origin.
Switched to a new branch 'piechart'
$ git pull --rebase git@github.com:QUItCoding/qnanopainter.git master
From github.com:QUItCoding/qnanopainter
branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
Applying: piechart demo
Applying: implement readingi data from model as QAbstractListModel
Applying: remove unused header
Applying: adapt colum count to window size and use flickable to scroll.
Applying: remove unsued qml-private from piechart.pro
Applying: add CONFIG += c++11 to piechart.pro
Applying: fix build with gcc4.8, use data() for QPointer sender in connect()

increase the number of item to 60, use 3 ItemListModels as
data provider.
takes orientation into account for window size and
calculates the column count based on this. a flivkable allow
to scroll the content now if it is larger than the screen.
i use c++11 style connnect/disconnect.
didnt need that on windows (msvc always has c++11 enable)
but with qt 5.6 it seems it is not need onosx too,
but on linux i suppose it is still needed.
…o piechart

Conflicts:
	examples/piechart/piechart.h
	examples/piechart/piechart.pro
increase the number of item to 60, use 3 ItemListModels as
data provider.
takes orientation into account for window size and
calculates the column count based on this. a flivkable allow
to scroll the content now if it is larger than the screen.
i use c++11 style connnect/disconnect.
didnt need that on windows (msvc always has c++11 enable)
but with qt 5.6 it seems it is not need onosx too,
but on linux i suppose it is still needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants