/qtWidgets

Primary LanguageC++MIT LicenseMIT

qtWidgets

License Language Platform

this is a small collection of custom Qt widgets. Included here are:

widget screenshot
The QAnimatedTimer provides a "hourglass"-like animation that displays time elapsed and can automatically change its color at predefined time to indicate processes that take longer than expected. Number of dots is adjustable. Additionally, it can either switch on/off or fade in/out for smoother transitions.
The QVUMeter provides a vertical VU Meter (or volume meter) similar to indicators that can be found on professional or semi-professional audio hardware. The size of the dots, the range and yellow-red thresholds are adjustable. It can be dimmed to indicate inactivity. User can mark a point to indicate, for example, a threshold level. QVUMeter screenshot

using in a project

these controls can be independently added to your project. Just #include the header and make sure the relevant .cpp file is compiled as part of your project. There are no external dependencies, other than Qt itself. The widgets have been tested with Qt 4.x and Qt 5.x. Linux, Windows and Mac platforms are supported.

sample app

the sample application is included: look under sampleApp directory

building the sample app

  • make sure Qt and compilers are installed: ** Ubuntu: sudo apt-get install qt make gcc ** CentOS and Fedora: sudo yum install qt make gcc ** Fedora 23+: sudo dnf install qt make gcc ** Windows: install the dev package from the Qt site ** Mac: install the dev package from the Qt site
  • cd to the directory with the .pro file
  • qmake
  • make