pwuertz / qmlplotting Goto Github PK
View Code? Open in Web Editor NEWA collection of QtQuick items for basic data visialization.
License: MIT License
A collection of QtQuick items for basic data visialization.
License: MIT License
Hi Peter,
compilation with Clang of paintPolygon fails, because you are using a variable length array called points
in the paintPolygon() function:
static void paintPolygon(QImage& img, int segments, bool border) {
int size = img.width();
QPainter p(&img);
if (!border) p.setPen(Qt::NoPen);
p.setBrush(QColor(Qt::white));
if (segments) {
QPointF points[segments];
As far as I understand, Clang C++ 11 supports just POD type vaiable length arrays.
The recommendation is to use a Vector in case variable lengh is needed.
Could you please tell me what compiler you are using ?
I am using the latest Mac Yosemite toolchain.
Thanks,
Thomas
I was wondering what your general thoughts are on where to start porting this to QT6. My thought right now is to try and rewrite it to not use the OpenGL specific classes. I am also running into issues with the materialshaders which api has been changed quite a lot. What would you recommend as an approach?
Hi Peter,
I tried to run you test examples, but I do get this error:
QOpenGLShader::compile(Fragment): ERROR: 0:1: '' : version '130' is not supported
This seems to be connected to the OSX running in Legacy Profile, which only supports GLSL up to 1.20.
The Core Profile would have to be activated.
On this Apple page you can switch between Legacy and Core profile:
https://developer.apple.com/opengl/capabilities/GLInfo_1090.html
Core profile can be activated in Qt:
https://wiki.qt.io/How_to_use_OpenGL_Core_Profile_with_Qt
For fun I have reverted GLSL 1.20 in your code and the plots are much better, but the GLSL syntax has changed, so it is no solution.
Run the feature deprecation list on page 2 of the GLSL 1.30 spec backwards:
#version 130 -> #version 120
in -> attribute
out -> varying
Remove fragColor declaration, replace fragColor usage with gl_FragColor
I do not know anything about openGL or GLSL, so I have no idea what to do now.
Do you have any simple solution ?
BR,
Thomas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.