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. QSpinBox and Alphabets
Qt 6.11 is out! See what's new in the release blog

QSpinBox and Alphabets

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k 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.
  • I Offline
    I Offline
    iwatakeshi
    wrote on last edited by
    #1

    Hi, I'm quite new to Qt so it's hard to understand Qt's API.

    I am trying to display Alphabets A-Z in a spin box I made but according to the API QSpinbox's setRange or setValue takes ints...is there a way to display chars? Thank you.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      You can inherit your custom spin box from QSpinBox and reimplement textFromValue(int value) function.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        iwatakeshi
        wrote on last edited by
        #3

        Ok thank you I'll try that. :)

        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