Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Detecting if QSlider is being interacted with
Forum Updated to NodeBB v4.3 + New Features

Detecting if QSlider is being interacted with

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 547 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kloveridge
    wrote on last edited by
    #1

    I have a QSlider widget which works exactly as expected. But I have an issue with my Undo system. As I slide the slider, every change is sent to my undo system. This isn't what I want. I want the undo to be recorded after the user releases the slider.

    Is there a way to query the drag state of the slider? I tried putting a mouse query in the class, but it didn't send me any messages to process.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      valueChanged depends on the current tracking state. By default it's on so the signal is emitted each time the value changes. You can set it to false and then it will be emitted only when the user releases the slider.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved