Results 1 to 3 of 3

Thread: QDialog and default button.

  1. #1
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QDialog and default button.

    is it possible to have a QDialog without default buttons, so that when I validate a control in the dialog with return pressed it doesn't cause any button to be pressed.
    thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QDialog and default button.

    See QPushButton::autoDefault (notice what's mentioned about QDialog).
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    hicpalm (30th April 2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QDialog and default button.

    that's it, I have skipped it without noticing.
    sorry and thanks ...

Similar Threads

  1. QDialog derived and focus problem
    By elm66 in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2008, 21:52

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.