What is this widget? Is it available for Qt?
-
I saw this in a couple of apps for Ubuntu..
!http://i.imgur.com/vy4X6.png(Screen)!
Is this Ubuntu specific (Gtk) ?9
-
If you have experience in Qt Widget development, you could implement your own.
This is a very basic overview, but I'd make a widget class that inherits QWidget and create a layout manager and add two QLabels for the two switch states to layout manager. You could then style each QLabel using QSS to use specific background colors and rounded corners. The switch element can be a widget styled to have rounded corners and be placed on top of the main widget. You'll have to create signals for handling the click event of the switch. Then within your main code, you'll have to connect the switch state changed signal to a slot.
I may look into making a widget like this at some point. It's got a nice clean look. I'll put the source on my Github if I do decide to make the widget.
-
yes it looks like "Slide Switch example ":http://doc.qt.nokia.com/4.7-snapshot/declarative-ui-components-slideswitch.html