Conversation
increase the number of item to 60, use 3 ItemListModels as data provider.
|
Looking nice! If this would be to be baked into QNanoPainter examples I would:
But this can live also here as an external example for anyone to check out! |
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.
|
Hi Kaj, first i wanted to have you a look.
|
|
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:
And then a very horrible error containing -- "note: template argument deduction/substitution failed" ...
|
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.
|
could you please try again? |
|
After adding the following to libqnanopainter/include.pri:
I built f44f4ab : The private-usage warning is gone, but I still get the following errors:
|
|
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
|
|
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:
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/... is NVIDIA CodeWorks for Android 1R4 http://docs.nvidia.com/gameworks/index.html#developertools/mobile/codeworks_android/codeworks_for_android.htm |
|
the last commit fixed it for me in ubuntu 14.04 vm with gcc 4.8.2. it was not the -std switch but |
|
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
|
|
Sure, that is expected. I wanna have this pull requests separated. you just could have made a |
|
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):
|
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.
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.