Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15936

Mac OS: the QPushButton hit area is not correct (too small)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.0
    • 4.7.1
    • None
    • Tested on Snow Leopard with 4.7.1 Cocoa/Carbon
    • macOS
    • 98babb1408712a14098a9a75b31c4e9603afdbc0

      The current "hit area" is too small and does not match the button. qt_mac_buttonIsRenderedFlat should always return true if another style than the mac style is detected.

      Also when a style sheet is applied (to the push button or to its parent) the style of the push button becomes "QStyleSheetStyle" which creates confusion.

      Included a test case to reproduce: main.cpp

      Related commits:
      http://qt.gitorious.org/qt/qt/commit/65a673f7ab1955e277246e4c88bec46493265cf3
      http://qt.gitorious.org/qt/qt/commit/b0965cd049997283976c132fceb9727b6582ca49

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            andysh Andy Shaw
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            29 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes