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. how to adapt designer property for doubles
Forum Updated to NodeBB v4.3 + New Features

how to adapt designer property for doubles

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 306 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.
  • A Offline
    A Offline
    acmezger
    wrote on last edited by
    #1

    Hi,

    in Qt designer, the property for doubles is a spin box, where the maximum number of decimals is limited to 6. However we use values with more decimals. is there anyway to change the number of decimals of the double spin box

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

      Hi
      alt text

      is not what you want ?

      Update
      Ah, its not about the spin box widget itself but the delegate for any double value.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        There is nothing you can do about designer.
        But you can open the .ui file with Plain Text Editor, find the property and change it manually.
        In that way you can have at most 15 decimals.

        1 Reply Last reply
        1
        • A Offline
          A Offline
          acmezger
          wrote on last edited by
          #4

          yes, it is the delegate itsself. one should be able to modify somehow the number of decimals of the "double" Q_PROPERTY

          1 Reply Last reply
          0
          • A Offline
            A Offline
            acmezger
            wrote on last edited by
            #5

            perhaps by using an extension editor?

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

              hi
              While most of Creator is a plugin im not sure the actual property editor
              is a plugin.
              https://code.woboq.org/qt5/qttools/src/designer/src/components/propertyeditor/

              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