/QtKnobs

Qt and QML based Knobs.

Primary LanguageC++MIT LicenseMIT

#QtKnobs (formerly Knobs 'n' Dials) QtKnobs is a Qt and QML based Library/Plugin which provides different types of Knobs.

Screenshots:

  • Types

    ScreenShot

  • Percent View

    ScreenShot

  • Specify Max values

    ScreenShot

  • Different sizes

    ScreenShot

  • Customize

    ScreenShot

#List of properties

  • size
  • value
  • maximumValue
  • percent
  • readOnly { true, false }
  • mode { Knob.Normal, Knob.Percent }
  • style { Knob.Pie, Knob.Arc, Knob.Needle }
  • pieType { Knob.Flat, Knob.Curve } (when style = Knob.Pie)
  • needleType { Knob.Point, Knob.Round, Knob.Groove } (when style = Knob.Needle)
  • color (knob color)
  • backgroundColor (back dial color)
  • foregroundColor (front dial color)
  • borderColor
  • textColor
  • meter { true, false } (simple meter)
  • pieMultiColor (some fun)

#Requirement Qt >= 5.3

#Building

  • Clone
  • Run qmake && make && make install

The compiled library (libQtKnobs.so on .nix systems) would be in directory Knobs with qmldir.

#Use & Examples

  • A simple Knob:

    import QtQuick 2.0
    import QtKnobs 1.0
    Knob {
      id: myKnob
    }
    

    ScreenShot

    You can find more examples in QtKnobs/examples/main.qml

#License

MIT

#Contact Feel free to contact me for any questions at ashishd157 at gmail.com.