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?
Forum Updated to NodeBB v4.3 + New Features

SpinBox with QStrings in values.Is it possible?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 1.7k 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.
  • S Offline
    S Offline
    Simplevolk
    wrote on 15 Apr 2013, 13:23 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Apr 2013, 14:07 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
      • R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 15 Apr 2013, 18:00 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
        • J Offline
          J Offline
          jazzycamel
          wrote on 16 Apr 2013, 07:56 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 16 Apr 2013, 10:53 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
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 16 Apr 2013, 10:55 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

              5/6

              16 Apr 2013, 10:53

              • Login

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