Results 1 to 3 of 3

Thread: n00b question: Hit Enter and activate a button?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    21
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default n00b question: Hit Enter and activate a button?

    Hi,

    im looking for a way to activate a button by hitting enter while i am writing in a QLineEdit.
    See the attached picture, it is a password dialog, and i want to activate the validate button when the user hits enter.

    I tried setting autodefault and default to the button, but without success!
    Attached Images Attached Images

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
  •  
Qt is a trademark of The Qt Company.