Results 1 to 2 of 2

Thread: Blue Halo around QLineEdit, but not around QTextEdit

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Blue Halo around QLineEdit, but not around QTextEdit

    In OS X - there is a blue halo drawn around the focused control. This works fine with QLineEdit, but it does not work with QTextEdit.

    I do not particularly mind one way or another, but it really should be consistent. It will confuse the user if one control does show focus while the other does not.

    I can implement the focus display using styles for example, but I need to get rid of the blue halo for that.

    Any advice on how to control this blue focus rect, halo?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: Blue Halo around QLineEdit, but not around QTextEdit

    Use myWidget->setAttribute(Qt::WA_MacShowFocusRect, false); to disable that focus halo. Watch out what the native behaviour is. Qt should follow what Apple does. If the Qt-Application differs from the native, then it is a bug.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. difference b/w QLineEdit() and QTextEdit()
    By wagmare in forum Qt Programming
    Replies: 7
    Last Post: 20th July 2009, 05:37
  2. Pointer Question related to QLineEdit
    By ChrisReath in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 15:13
  3. QValidator, regular expressions and QLineEdit
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2007, 01:25

Tags for this Thread

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.