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. SpinBox with QStrings in values.Is it possible?
QtWS25 Last Chance

SpinBox with QStrings in values.Is it possible?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 1.7k 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.
  • S Offline
    S Offline
    Simplevolk
    wrote on last edited by
    #1

    Hello!
    Can i create a SpinBox with QStrings in values?
    Or if not- have Qt another component to do that?

    Thanks!

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

      Hi,

      Something like "this":http://libqxt.bitbucket.org/doc/0.6/qxtstringspinbox.html ?

      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
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        you can also easily subclass the widget and reimplement "QSpinBox::textFromValue()":http://qt-project.org/doc/qt-4.8/qspinbox.html#textFromValue

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • jazzycamelJ Offline
          jazzycamelJ Offline
          jazzycamel
          wrote on last edited by
          #4

          Another option is "QwwTextSpinBox":http://www.wysota.eu.org/wwwidgets/doc/html/qwwtextspinbox.html from the wwWidgets widget set by Witold Wysota.

          For the avoidance of doubt:

          1. All my code samples (C++ or Python) are tested before posting
          2. As of 23/03/20, my Python code is formatted to PEP-8 standards using black from the PSF (https://github.com/psf/black)
          1 Reply Last reply
          0
          • S Offline
            S Offline
            Simplevolk
            wrote on last edited by
            #5

            [quote author="SGaist" date="1366034843"]Hi,

            Something like "this":http://libqxt.bitbucket.org/doc/0.6/qxtstringspinbox.html ?[/quote]

            Yes,somthing like this.And as i see it is foreign component?
            Is it not included as standard?

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

              Yes, it's from libqxt (really easy to build and use)

              No, it's not

              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