Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-367 Issues when building Qt and Creator with Cocoa
  3. QTCREATORBUG-898

Cocoa: QPushButton does not respect setFixedWidth/setFixedHeight

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • P1: Critical
    • None
    • Quick / QML Support
    • None

    Description

      The anchor icons in QmlDesigner/Property Editor have the wrong width/height.

      The icons are loaded in share/qtcreator/qmldesigner/propertyeditor/Qt/AnchorButtons.qml:

          QPushButton {
      
              checkable: true
              fixedWidth: 32
              fixedHeight: 32
              styleSheetFile: "anchortop.css";
              // ...
           }
      

      with anchortop.css being:

      QPushButton {
          border-image: url(:/qmldesigner/images/anchor-top-normal.png) 3;
          border-width: 3;
       }
       
        QPushButton:pressed {
          border-image: url(:/qmldesigner/images/anchor-top-pressed.png) 3;
       }
       
       QPushButton:checked {
          border-image: url(:/qmldesigner/images/anchor-top-pressed.png) 3;
       }
      

      The problem seems to be that QPushButton->setFixedWidth && QPushButton->setFixedHeight doesn't actually have any affect on Mac OS X.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes