Results 1 to 5 of 5

Thread: Customize Slider or Scroll Bar?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Customize Slider or Scroll Bar?

    I'm looking for a way to customize the QSlider widget. Basically, I want the sliding part to be wider, indicating a range of values to the user, rather than a single value. For example if my range was 0-10, and my slider had a width of 2 'ticks,' it would allow the user to select a range from "0-2" to "8-10."

    Is there a currently known way to do this, or am I on my own?

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Customize Slider or Scroll Bar?

    Hi, have a look at QxtSpanSlider, it does something similar (to slider handles instead of just one). Maybe it will already fit your needs or it may serve as a source of inspiration.

    Ginsengelf

  3. #3
    Join Date
    Feb 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Customize Slider or Scroll Bar?

    Where can I get this? It looks like the libqxt.org site is shut down.

  4. #4
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Customize Slider or Scroll Bar?

    Hi, you can get it from Qt-Apps.org.

    Ginsengelf

  5. #5
    Join Date
    Feb 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Customize Slider or Scroll Bar?

    Ok, so I've downloaded the qxt stuff, and tried to add it to my project. IDEs and makefiles have always been my downfall, and I'm having serious trouble getting all the new code to compile. I'm working in Visual C++ 6.0.

    I put the file paths for all the files into the preprocessor window under, "Additional include directories," but the compiler still throws errors saying, "cannot open include file: 'qxtspanslider.h'" and so on. Does anyone know what I'm supposed to be doing here to make the two libraries work together?

Similar Threads

  1. how to add scroll bar on QGridLayout in QT??
    By sharvari in forum Newbie
    Replies: 3
    Last Post: 19th February 2008, 14:31
  2. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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
  •  
Qt is a trademark of The Qt Company.