Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    SOLVED: notch locations w/ QDial

    General and Desktop
    2
    4
    1795
    Loading More Posts
    • 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.
    • J
      jetson last edited by

      I would really like to use a QDial to specify on which side of a figure text should be placed (north, south, east or west). But QDial always chooses the 1:30, 4:30, 7:30, 10:30 (clock) positions for a 4 position slider.

      Is it possible to fix the notch positions in a class derived from QDial???

      Thanks very much for any advice...

      1 Reply Last reply Reply Quote 0
      • M
        mlong last edited by

        Try
        @
        setWrapping(true)
        @
        on your 4-step dial. I believe it will do the trick. When wrapping is enabled, it removes the blank space at the bottom of the dial.

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply Reply Quote 0
        • J
          jetson last edited by

          Excellent! Thanks very much!

          1 Reply Last reply Reply Quote 0
          • M
            mlong last edited by

            No problem! If that works for you, please edit your original post and add [Solved] to the beginning of the title. Thanks!

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post