Results 1 to 3 of 3

Thread: QSlider : How to hint current position value ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2011
    Location
    BRAZIL-RIO DE JANEIRO
    Posts
    47
    Thanks
    33
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QSlider : How to hint current position value ?

    Dear friends,

    I remember it was easilly performed in other GUI IDE compilers, but am not finding in QT.
    Could someone help ?


    +++

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QSlider : How to hint current position value ?

    If by "hint" you mean tooltip, you can code a slot member of the widget that contains the slider (this slot will take an int parameter and it will set the tooltip of the slider) and you connect it to a signal like sliderMoved(int).

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

    andre_teprom (26th July 2013)

  4. #3
    Join Date
    Aug 2011
    Location
    Seoul, Korea
    Posts
    46
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSlider : How to hint current position value ?

    I guess you are asking how you can find out where the slider knob is. Try QAbstractSlider::sliderPosition()

    Regards,
    Dong Back Kim

  5. The following user says thank you to Dong Back Kim for this useful post:

    andre_teprom (26th July 2013)

Similar Threads

  1. Replies: 2
    Last Post: 20th February 2012, 21:58
  2. QTableWidget highlight current position in header
    By lalesculiviu in forum Qt Programming
    Replies: 0
    Last Post: 27th February 2010, 19:10
  3. initial position of a QSlider
    By franco.amato in forum Qt Programming
    Replies: 9
    Last Post: 24th September 2008, 18:37
  4. How to know current global mouse position?
    By Teerayoot in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2007, 19:25
  5. hint on OO
    By mickey in forum General Programming
    Replies: 7
    Last Post: 7th July 2006, 13:38

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.