Qt controls and indicators
-
First of all I'd like to say thank you to you.
I'm looking for new boolean indicators and other controls with new graphics which I would like to use on my user interface. On wiki page I just see many libraries but not new controls and indicators... where exactly do I have to look at?
-
[quote author="Andre" date="1360682006"]
What is a "boolean indicator"? [/quote]A boolean indicator (in my mind) is a LED lamp which is on when the boolean data is true and is off when the boolean data is False.
I think it's better to start to look at QML as you suggested doing!
Thanks for your support. -
[quote author="gRicky" date="1360686677"][quote author="Andre" date="1360682006"]What is a "boolean indicator"? [/quote]A boolean indicator (in my mind) is a LED lamp which is on when the boolean data is true and is off when the boolean data is False.[/quote]Your terminology reminds me of LabVIEW. Do you have LabVIEW experience?
In Qt, the closest things to controllers/indicators are "Widgets":http://qt-project.org/doc/qt-5.0/qtwidgets/widget-classes.html , and they're programmable in C++. "Qt Quick":http://qt-project.org/doc/qt-5.0/qtquick/qtquick-index.html is quite different -- it lets you create more fluid user interfaces, and it's programmable in QML, which is like CSS + JavaScript.
One thing to remember: Unlike LabVIEW, buttons in Qt are NOT boolean controls; they are high-level "event triggers"
-
For scientific widgets, see http://qwt.sourceforge.net/
-
[quote author="JKSH" date="1360734331"]Your terminology reminds me of LabVIEW. Do you have LabVIEW experience?
[...]
One thing to remember: Unlike LabVIEW, buttons in Qt are NOT boolean controls; they are high-level "event triggers"[/quote]
Even though I'm a Labview developer expert, I know that terminology on Qt are quite different. Such as in Labview world I supposed that there was a place in this web-site where developer can share new graphic widgets which others can use in theirs user interface. I'm a fan of sharing code.
Any way, thank you for your clarification.Therefore I have to start developing custom widget using QML. Do you have any advices to suggest to me to start programming widgets using QML, following the right way?
-
Well, I already gave you one link. You can also check www.qt-apps.org, and look in the widgets category. It even contains a couple of led widget implementations.
-
What would you like your widget(s) to do?
-
[quote author="Andre" date="1360748932"]Well, I already gave you one link. You can also check www.qt-apps.org, and look in the widgets category. It even contains a couple of led widget implementations.[/quote]
Andre, it is exactly what I was looking for! Thank you very much!
[quote author="JKSH" date="1360765502"]What would you like your widget(s) to do?[/quote]
I'd like to represent every bit of a byte. When the bit value is 0 the led has to be OFF otherwise the led has to be ON. I just thought a led would has been a nice representation.
-