Description: QMeter is a custom widget for Qt Creator. QMeter can be used directly from Qt Creator to display values using the "Promote To" function in the designer.Last changelog:
v 1.0
Compiled for Qt5. Code refactoring Make use of QPropertyAnimation for needle animation
Hi!
I have installed the plugin as it was pointed out in the INSTALL file. The only note, is that I had to sudo make install in order for the files to be copied.
So when I add the qMeter to my application, the project won't build saying:
"carmonitor.cpp:(.text._ZN13Ui_CarMonitor7setupUiEP11QMainWindow[Ui_CarMonitor::setupUi(QMainWindow*)]+0x424): undefined reference to `QMeter::QMeter(QWidget*)"
and a bunch of similar ones with some functions like setValue, setMinValue...
Any ideas please?
Thank you!
installed qt-addin
in VS 2008->new project->Qt->Qt Application->ok
opened the .ui file through Qt Designer and added the QMeter plugin->save
build the project->success, but the application window not showing up.
How to add these installed plugins in my project through Visual Studio??
Regards!!
installed qt-addin
in VS 2008->new project->Qt->Qt Application->ok
opened the .ui file through Qt Designer and added the QMeter plugin->save
build the project->success, but the application window not showing up.
How to add these installed plugins in my project through Visual Studio??
Regards!!
OK, I've added some doxygen information about QMeter and I included the doxygen html files into the zip archive.
Now I have to verify the robustness of the code and improve the error management.
After some testing I will consider QMetr stable and I'll release the 1.0.0 version.
If someone has comments or find a bug, please post a comment.
Good luck!
paolo
I'm uploading a new QMeter with some bug fixes and improvement.
To add the plugin in Qt Designer just do
qmake qmeterplugin.pro
make
make install
and run qt designer.
Voilà
bye
paolo
The start angle should also be adjustable. Now it always starts at angle -270° (according to your sourcecode painter->rotate(-270))
nSteps should be set as a property in designer
If you set (for instance) the low limit to 50 and the max limit to 100, the meter digits are from 0 to 50 (they should be from 50 to 100)
also there should be an option to configure the step. If i set the min to 0 and the max to 260, the widget automatically sets a step of 26. It seems that it automatically wants to display 10 steps (thus 260/10=26). This should be adjustable.
There are some small bugs when you set a threshold greater than max limit, ...
Ratings & Comments
16 Comments
could you contact me? I would like a couple of changes to this control. Willing to pay a small amount. trey.weaver at jpsinterop dot com
Hi! I have installed the plugin as it was pointed out in the INSTALL file. The only note, is that I had to sudo make install in order for the files to be copied. So when I add the qMeter to my application, the project won't build saying: "carmonitor.cpp:(.text._ZN13Ui_CarMonitor7setupUiEP11QMainWindow[Ui_CarMonitor::setupUi(QMainWindow*)]+0x424): undefined reference to `QMeter::QMeter(QWidget*)" and a bunch of similar ones with some functions like setValue, setMinValue... Any ideas please? Thank you!
hello! I am confused with the same question.Do you solve the question? I used the plugin QMeter in the environment Qt Creator.
installed qt-addin in VS 2008->new project->Qt->Qt Application->ok opened the .ui file through Qt Designer and added the QMeter plugin->save build the project->success, but the application window not showing up. How to add these installed plugins in my project through Visual Studio?? Regards!!
installed qt-addin in VS 2008->new project->Qt->Qt Application->ok opened the .ui file through Qt Designer and added the QMeter plugin->save build the project->success, but the application window not showing up. How to add these installed plugins in my project through Visual Studio?? Regards!!
Very Nice ^^ But, can we use this under windows ? If yes, can you explain me. I have some errors. PS: Sorry for my bad english (i'm beginner french)
Hello, I get a warning (QPainter::restore: Unbalanced save/restore) when the position of the needle changes, continuosly? Why may it be?
QMeter::drawIndicator() does "painter->restore();" twice for only one save. Removing the first one fix the warning.
OK, I've added some doxygen information about QMeter and I included the doxygen html files into the zip archive. Now I have to verify the robustness of the code and improve the error management. After some testing I will consider QMetr stable and I'll release the 1.0.0 version. If someone has comments or find a bug, please post a comment. Good luck! paolo
I mean , how can i add this custom widgets to Qt designer?
I'm uploading a new QMeter with some bug fixes and improvement. To add the plugin in Qt Designer just do qmake qmeterplugin.pro make make install and run qt designer. Voilà bye paolo
Can we do this with Qt designer?
Nice widget :)
Thanks for your comments and advices. I'm working on it to fix the problems and add new features. bye paolo
The start angle should also be adjustable. Now it always starts at angle -270° (according to your sourcecode painter->rotate(-270)) nSteps should be set as a property in designer
If you set (for instance) the low limit to 50 and the max limit to 100, the meter digits are from 0 to 50 (they should be from 50 to 100) also there should be an option to configure the step. If i set the min to 0 and the max to 260, the widget automatically sets a step of 26. It seems that it automatically wants to display 10 steps (thus 260/10=26). This should be adjustable. There are some small bugs when you set a threshold greater than max limit, ...