Graphics in gui(creator)
-
wrote on 29 Dec 2017, 15:52 last edited by GhostWolf
Hello,
I have build a programm with qt creator, with a gui.
Now I want to show some of the data with a dial, like a speedometer. How can I do this the best way? -
Hi,
Something like provided by the Qwt library ?
-
wrote on 30 Dec 2017, 00:14 last edited by
That's exactly what I am looking for.
Now the next question, how do get, and use this? I saw you have to download some stuff, but how do I implement it in QT, and how do I use it? -
That's exactly what I am looking for.
Now the next question, how do get, and use this? I saw you have to download some stuff, but how do I implement it in QT, and how do I use it?@GhostWolf
Hi
You will need to download and compile it yourself
http://qwt.sourceforge.net/qwtinstall.html
Make sure to use correct section for the platform + compiler.
Note: on windows. Some linux distros seems to have binaries available.Update:
Here is also small sample on how to use it
http://embeddedprogrammer.blogspot.dk/2012/10/windows-installing-qwt-library.html -
wrote on 30 Dec 2017, 23:14 last edited by
I added the whole qwt stuff, and if i open an example from qwt it works.
But if i try the example from the site you showed it fails.
But is there also a way to put the dials and stuff in the designer?
So i can add it from there?
I saw somewhere that it should be possible, but i cant find out how.
It says something about a designer.dll, but i can not find it -
I added the whole qwt stuff, and if i open an example from qwt it works.
But if i try the example from the site you showed it fails.
But is there also a way to put the dials and stuff in the designer?
So i can add it from there?
I saw somewhere that it should be possible, but i cant find out how.
It says something about a designer.dll, but i can not find it@GhostWolf
Hi
QWT does come with designer plugins.
But on windows its not as easy to use.
The Creator that comes with Qt is compiled with visual studio, so to use
QWT plugins in that Creator/designer, you need to compile the plugins with same visual studio
compiler. else Creator wont load the QWT plugins.Alternativ you can use promotion.
http://doc.qt.io/qt-5/designer-using-custom-widgets.html -
wrote on 31 Dec 2017, 14:35 last edited by
Everything i try ends up with, programm exited with code 255, without opening. How can this happen?
-
Everything i try ends up with, programm exited with code 255, without opening. How can this happen?
@GhostWolf
Sounds like it crash.
Does the samples also crash ?
2/8