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

QML Text element doesn't play nice with transformations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • 4.7.2
    • 4.7.0
    • GUI: Text handling
    • None

      The QML text element doesn't play nice with transformations (e.g. rotations) under OSX 10.6. I think this is a bug in the text engine and not in QML, btw the following code can be used to reproduce the issue (just click on the button and Text element will disappear).

      import Qt 4.7
      
      Rectangle {
          id: thisApp
          width: 400
          height: 400
      
          Item {
              id: content
              anchors.fill: parent
      
              Rectangle {
                  border.width: 1
                  border.color: "black"
      
                  x: 100
                  y: 100
                  width: message.width + 20
                  height: message.height + 20
      
                  Text {
                      id: message
                      text: "click me!"
                      anchors.centerIn: parent
                  }
      
                  MouseArea {
                      anchors.fill: parent
                      onClicked: content.rotation = 90
                  }
              }
          }
      }
      

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

            esabraha Eskil Abrahamsen Blomfeldt
            raggi Roberto Raggi
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes