Results 1 to 2 of 2

Thread: Hide QSlider groove

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4

    Default Hide QSlider groove

    Does anyone know an easy way to hide the groove of a QSlider?

    I've tried using setStyleSheet with stuff like QSlider::groove::horizontal { visibility:hidden; } but I haven't found anything that works yet.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    511
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Hide QSlider groove

    Hi, according to the style sheet docs you have one colon too much:
    Qt Code:
    1. QSlider::groove:horizontal { visibility:hidden; }
    To copy to clipboard, switch view to plain text mode 

    I am not sure if the "visibility" property exists. If not, you could try to set the width and height to zero.

    Ginsengelf

Similar Threads

  1. customize the groove of qslider
    By oscar_chen in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2023, 20:38
  2. Hide a slider on a QScrollBar
    By paolom in forum Qt Programming
    Replies: 8
    Last Post: 6th October 2009, 09:07
  3. Transparent QScrollbar groove in QWebView
    By Jonas in forum Qt Programming
    Replies: 0
    Last Post: 20th October 2008, 08:55
  4. how to hide slider bar on the QScrollBar
    By yxmaomao in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2008, 09:02
  5. QLineEdit and QScrollBar
    By Sarma in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 08:07

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.