[Interest] What is the right way to make a cpu monitor like animation in QML?
Hi, I want to make a CPU monitor like component. At first i was considering using QML Canvas because it has everything i need to make a CPU monitor like component. Those requirements are: - Draw a line - Everything till that line should be drawn in a semi transparent color For a static image that works just fine. However, i want to animate things and that's not really the job of a canvas element. It doesn't look like it should be used for animation (not in QML nor in HTML5). That made me wonder, how are we supposed to make something like a cpu monitor with animations in QML? Regards, Mark ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] What is the right way to make a cpu monitor like animation in QML?
On Sun, Jun 2, 2013 at 11:07 PM, Mark mark...@gmail.com wrote: Hi, I want to make a CPU monitor like component. At first i was considering using QML Canvas because it has everything i need to make a CPU monitor like component. Those requirements are: - Draw a line - Everything till that line should be drawn in a semi transparent color For a static image that works just fine. However, i want to animate things and that's not really the job of a canvas element. It doesn't look like it should be used for animation (not in QML nor in HTML5). That made me wonder, how are we supposed to make something like a cpu monitor with animations in QML? Regards, Mark Hmm, i will just answer myself since i found the solution. It's my guess that i have to create a new component for this. Using QPainter would be the easiest way, but using the QSG* classes is probably the right way. I found a nice tutorial here: http://qt-project.org/doc/qt-5.0/qtquick/scenegraph-customgeometry.html (which is btw heavily broken.. luckily the example files do still work). So i'm going down that route and see how that turns out. Btw, there is also this library: https://gitorious.org/qmlplot/qmlplot but it's not for Qt5/QtQuick 2. This is for Qt5 and SceneGraph but fails to compile: https://github.com/delaitre/plotcomponents I'm trying to get the sources from that last link to work. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Target machine not set in projects generated by qmake for Visual Studio
Hi Everybody! When I build my Qt 4.8.4 projects on Windows 7, I always get this warning: LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 and later: project_name - 0 error(s), 1 warning(s) which sucks. I have tried changing mkspecs/win32-msvc2008/qmake.conf to include /MACHINE:X86 in QMAKE_LFLAGS, which works well for the moment. It will need changing once we go to X64 builds. How should I specify this in the qmake.conf file so that X32 or X64 builds are generated correctly by qmake? Thanks. Tony ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
On segunda-feira, 3 de junho de 2013 14.44.37, Tony Rietwyk wrote: which sucks. I have tried changing mkspecs/win32-msvc2008/qmake.conf to include /MACHINE:X86 in QMAKE_LFLAGS, which works well for the moment. It will need changing once we go to X64 builds. How should I specify this in the qmake.conf file so that X32 or X64 builds are generated correctly by qmake? You've done the only thing you can do. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio
You can explicitly set the MACHINE switch using a QMAKE flag.. Its been a while, but there is a debug and release QMAKE_***_ LINK flag that you can set it on. I have moved to cmake, but I had filed this bug years ago, it never got resolved last time I checked. Scott -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Tony Rietwyk Sent: Sunday, June 2, 2013 9:45 PM To: interest@qt-project.org Subject: [Interest] Target machine not set in projects generated by qmake for Visual Studio Hi Everybody! When I build my Qt 4.8.4 projects on Windows 7, I always get this warning: LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 and later: project_name - 0 error(s), 1 warning(s) which sucks. I have tried changing mkspecs/win32-msvc2008/qmake.conf to include /MACHINE:X86 in QMAKE_LFLAGS, which works well for the moment. It will need changing once we go to X64 builds. How should I specify this in the qmake.conf file so that X32 or X64 builds are generated correctly by qmake? Thanks. Tony ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest