Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

2
Become a Fan
6.5

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


Ratings & Comments

16 Comments

weaver4

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

danciac

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!

shenjjmary

hello! I am confused with the same question.Do you solve the question? I used the plugin QMeter in the environment Qt Creator.

11Nov11

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!!

11Nov11

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!!

Keisuke

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)

yagabey

Hello, I get a warning (QPainter::restore: Unbalanced save/restore) when the position of the needle changes, continuosly? Why may it be?

BlaX

QMeter::drawIndicator() does "painter->restore();" twice for only one save. Removing the first one fix the warning.

qphoton

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

anafor2004

I mean , how can i add this custom widgets to Qt designer?

qphoton

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

anafor2004

Can we do this with Qt designer?

DexterMagnific

Nice widget :)

qphoton

Thanks for your comments and advices. I'm working on it to fix the problems and add new features. bye paolo

DexterMagnific

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

DexterMagnific

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, ...

Pling
0 Affiliates
Details
license
version 1.0
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 3

More Qt Widgets from qphoton:

QLed
qphoton
last update date: 8 years ago

Score 6.1

QMLWidgets
qphoton
last update date: 8 years ago

Score 5.0

QtWidgets
qphoton
last update date: 8 years ago

Score 5.7

QCircularBar
qphoton
last update date: 10 years ago

Score 5.0

QtTimer
qphoton
last update date: 15 years ago

Score 5.0

QSwitch
qphoton
last update date: 15 years ago

Score 6.5

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 7 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 7 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1