Results 1 to 5 of 5

Thread: Problem with styled QPushButton clickable area

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Problem with styled QPushButton clickable area

    I get this *exact* problem and was searching the net for an answer. I'm using 4.7.3, and it only manifests for me on macosx, not windows. Basically, the button responds to hover correctly but it seems like there is a clicking dead space all around the button. It seems to affect QPushButton and QComboBox, but maybe others.

    You can take the C++ calculator example, change the Button class to inherit from QPushButton instead of QToolButton, and stick setStyleSheet("background-color:blue;"); in the constructor to reproduce.

  2. #2
    Join Date
    Apr 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Problem with styled QPushButton clickable area

    Anyone solved this problem? I'm seeing the same thing and am looking for a fix. Only seeing the problem on Mac too. Windows clickable area is just fine.

    [UPDATE] Just found this QT open defect:
    http://bugreports.qt.nokia.com/browse/QTBUG-15936

    So it looks like a patch is needed to fix it.
    Last edited by pkissel; 19th July 2011 at 22:55.

Similar Threads

  1. Replies: 3
    Last Post: 8th December 2010, 05:42
  2. Vista-styled warning message dialogs?
    By __m128i in forum Newbie
    Replies: 1
    Last Post: 31st May 2010, 23:15
  3. Scroll Area problem
    By Lodhart in forum Qt Programming
    Replies: 0
    Last Post: 10th October 2009, 13:03
  4. Clickable Regions
    By bbdaffy in forum Qt Programming
    Replies: 6
    Last Post: 22nd July 2009, 11:26
  5. Replies: 0
    Last Post: 8th July 2009, 11:01

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