Results 1 to 2 of 2

Thread: QSlider and qint64 values

  1. #1
    Join Date
    Aug 2006
    Posts
    77
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QSlider and qint64 values

    Halo!

    Does anyone know how to make QSlider to take qint64 values?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSlider and qint64 values

    You can't do it, unless if you don't rewrite QSlider or maybe subclass it and rewrite the functions in question.

    Another solution is to trick it. For example if you want the slider to go from 0 to 2^64-1 then you can set the real bounds from 0 to 100 and just compute the real in64 value from that. At 20 you would have (2^64 - 1)/20.

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

    kemp (14th October 2007)

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.