Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. QAbstractSlider
Forum Updated to NodeBB v4.3 + New Features

QAbstractSlider

Scheduled Pinned Locked Moved Qt Contribution
2 Posts 2 Posters 2.4k 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.
  • E Offline
    E Offline
    exiled
    wrote on last edited by
    #1

    Well recently I needed a scrollbar that supports 64-bit integers but obviously Qt only provides support for "int". Since the scrollbar is going to have to be rounded depending on the number of pixels on the screen I was thinking why isn't there a @double QAbstractSlider::percent() const@ and @void QAbstractSlider::setPercent(double)@ provided ? Not really sure what would need to be done in order to get this into some release of Qt as I think it is pretty useful to have.

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

      Hi,

      You can start by talking about it on the development mailing list. If everything goes well you can start writing a patch to Qt and submit it to gerrit for review (open a feature request first is also a good idea so it helps keep tracks of it).

      Alternatively, you can also create a Q64BitSpinBox (with a better name than that) and provide it as an add-on

      Happy coding !

      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