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. QSlider as QStyledItemDelegate: moving slider requires additional mouseclick
QtWS25 Last Chance

QSlider as QStyledItemDelegate: moving slider requires additional mouseclick

Scheduled Pinned Locked Moved Solved General and Desktop
qsliderdelegate
2 Posts 2 Posters 652 Views
  • 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.
  • gde23G Offline
    gde23G Offline
    gde23
    wrote on last edited by
    #1

    Hello,

    I have a QTableView where I have set an QSilder as an delegate.
    I Have also implemented the paint() event so the slider is always visible.

    Now when I want to start editing I can click into the slider-Cell and afterwards move the slider. However this feels unnatural, since normally you can just grab a slider and move it immediately without clicking on it first.

    So is there a way the slider can be grabbed directly from the first click?
    I've tried to use setSliderDown(true); in the showEvent, but that does not change anything)

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @gde23 said in QSlider as QStyledItemDelegate: moving slider requires additional mouseclick:

      So is there a way the slider can be grabbed directly from the first click?

      Currently not, no - the first click is the edit trigger.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3

      • Login

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