Results 1 to 4 of 4

Thread: Implementing Spotify's volume slider with QSlider.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Implementing Spotify's volume slider with QSlider.

    Hi everyone, this is my first post!

    So, I'm trying to create a volume slider similar to the one found in the desktop version of Spotify on Windows. I'm posting images showing the behaviors I'm interested in if you are not familiar with Spotify. As you see when you hover the sub-page is turning green and the handle appears. So my issues are 2.

    1) Can't turn green the sub-page on QSlider::sub-page:hover.
    2) Can't show the handle only on QSlider::groove:hover.

    I don't know if it is doable with setStyleSheet(), but I prefer it over having to subclass QSlider. I'm happy to post the relevant code if you want, though I believe that I can't set background on sub-page.
    Attached Images Attached Images

Similar Threads

  1. Volume Slider changes nothing in terms of volume
    By zgulser in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2012, 16:55
  2. system volume in qslider controller
    By breakthecode in forum Newbie
    Replies: 1
    Last Post: 13th December 2011, 07:07
  3. how controll system volume in qslider
    By breakthecode in forum Qt Programming
    Replies: 2
    Last Post: 11th December 2011, 21:08
  4. Phonon and Volume Slider (Nokia N8)
    By abashir in forum Newbie
    Replies: 0
    Last Post: 6th January 2011, 23:46
  5. Replies: 2
    Last Post: 21st March 2010, 10:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.