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. QDoubleSpinBox when to know final value set

QDoubleSpinBox when to know final value set

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.0k 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I am working of QDoubleSpinBox . The user can change the value of QDoubleSpinbox by changing entering the value manually .

    For example user manually enters 100
    then decides to make it 1000

    In such cases how to know what is the final value entered by the User

    It is compulsory to have a apply QPushButton to apply the final value entered by the user

    jsulmJ J.HilkJ 3 Replies Last reply
    0
    • Q Qt Enthusiast

      I am working of QDoubleSpinBox . The user can change the value of QDoubleSpinbox by changing entering the value manually .

      For example user manually enters 100
      then decides to make it 1000

      In such cases how to know what is the final value entered by the User

      It is compulsory to have a apply QPushButton to apply the final value entered by the user

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-Enthusiast http://doc.qt.io/qt-5/qdoublespinbox.html#valueChanged

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • Q Qt Enthusiast

        I am working of QDoubleSpinBox . The user can change the value of QDoubleSpinbox by changing entering the value manually .

        For example user manually enters 100
        then decides to make it 1000

        In such cases how to know what is the final value entered by the User

        It is compulsory to have a apply QPushButton to apply the final value entered by the user

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Qt-Enthusiast said in QDoubleSpinBox when to know final value set:

        In such cases how to know what is the final value entered by the User

        You can't - the user decides what the final value is.
        You either use the signal or the apply button.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • Q Qt Enthusiast

          I am working of QDoubleSpinBox . The user can change the value of QDoubleSpinbox by changing entering the value manually .

          For example user manually enters 100
          then decides to make it 1000

          In such cases how to know what is the final value entered by the User

          It is compulsory to have a apply QPushButton to apply the final value entered by the user

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Qt-Enthusiast @jsulm

          theres also the signal void QAbstractSpinBox::editingFinished(), that is emitted when spinbox loses focus and when enter is pressed.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          3

          • Login

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