Results 1 to 2 of 2

Thread: default on focus different item in messagebox?

  1. #1
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default default on focus different item in messagebox?

    I'm using a QMessageBox with a Yes and No, and it puts the default focus on the Yes button. Is there a way to put the default focus on the No button instead?
    Software Engineer



  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: default on focus different item in messagebox?

    It's the defaultButton parameter of static QMessageBox::question() (or QMessageBox::setDefault() in case you're actually instantiating a QMessageBox object).
    J-P Nurmi

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

    gfunk (26th October 2007)

Similar Threads

  1. QGraphicsView and item focus
    By Micawber in forum Qt Programming
    Replies: 3
    Last Post: 22nd June 2007, 20:36
  2. Replies: 3
    Last Post: 7th November 2006, 08:35

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.