Results 1 to 4 of 4

Thread: editingFinished() signal

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default editingFinished() signal

    The Qt 4.1 documentation says:

    void QAbstractSpinBox::editingFinished () [signal]
    This signal is emitted editing is finished. This happens when the spinbox looses focus and when enter is pressed.

    This means "when the spinbox loses focus or when enter is pressed", right?
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    50
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: editingFinished() signal

    Quote Originally Posted by jamadagni
    The Qt 4.1 documentation says:

    void QAbstractSpinBox::editingFinished () [signal]
    This signal is emitted editing is finished. This happens when the spinbox looses focus and when enter is pressed.

    This means "when the spinbox loses focus or when enter is pressed", right?
    This means "when the spinbox loses focus AND when enter is pressed". I tried it.

  3. #3
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: editingFinished() signal

    Quote Originally Posted by Mad Max
    This means "when the spinbox loses focus AND when enter is pressed". I tried it.
    Well how can the spinbox lose focus at the same time it receives a keystroke? Further, the spinbox may lose focus due to mouse action, and AFAIK Enter does not cause a widget to lose focus unless so explicitly configured.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  4. #4
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    50
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: editingFinished() signal

    Quote Originally Posted by jamadagni
    Well how can the spinbox lose focus at the same time it receives a keystroke?
    I don't know HOW it work (it not interest me yet) , but it work well, I assure you.
    Quote Originally Posted by jamadagni
    Further, the spinbox may lose focus due to mouse action, and AFAIK Enter does not cause a widget to lose focus unless so explicitly configured.
    Probably it emit QFocusEvent inside. Just do try it in the simple app.

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. Possible signal mapper problem
    By MarkoSan in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2008, 13:11
  4. Replies: 2
    Last Post: 17th May 2006, 21:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.