Results 1 to 2 of 2

Thread: change part of a slider color in video cutter tool

  1. #1
    Join Date
    Jan 2013
    Location
    Bangalore
    Posts
    49
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default change part of a slider color in video cutter tool

    hi,
    i am developing video cutter tool, when i load video and select multiple parts of video to cut, i want to change the color of the slider belongs to that particular parts. please let me know how can i customize the slider to achieve this ??
    i also attached the slider exactly how i want.

    Thanks in advance,
    Durga.
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: change part of a slider color in video cutter tool

    There is no straightforward tweak to make the existing scroll bar do this. You will need to subclass QSlider or QAbstractSlider, provide an API to set and unset ranges, and substitute your own paintEvent() to draw the slider visual. The task gets even more complex if you want the range handles to be user-interactive.
    Last edited by ChrisW67; 22nd April 2014 at 07:48.

  3. The following user says thank you to ChrisW67 for this useful post:

    DURGAPRASAD NEELAM (14th May 2014)

Similar Threads

  1. Dynamically change slider max range
    By Don_Hannes in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2012, 16:19
  2. Replies: 2
    Last Post: 11th October 2011, 14:55
  3. Custom QStyle: change only tool button text color
    By Lykurg in forum Qt Programming
    Replies: 0
    Last Post: 27th February 2009, 19:55
  4. I want to change color of a part of QGraphicsLineItem
    By validator in forum Qt Programming
    Replies: 1
    Last Post: 17th September 2008, 10:01
  5. line edit value change with slider
    By jjbabu in forum Qt Tools
    Replies: 1
    Last Post: 22nd September 2007, 07:02

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.