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

QML Text item clipping logic is reversed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • None
    • Running Linux and Qt-kinetic repository
      commit: d312514cc37394f24d7cd7d9d6c73435cddb5553
      branch: declarativeui
    • d46c4d5d32a14ae119d88c59c00ebe62ae8ce027

    Description

      When a text item is too small for the text it contains, clipping occurs if clip is false, and does not happen when it is true.

      Use example below to reproduce the issue.

      ==============================
      import Qt 4.6

      Rectangle {
      id: "largeRect"
      color: "blue"
      opacity: 1

      Rectangle

      { id: "smallRect" width: parent.width / 2 height: parent.height / 2 anchors.centerIn: parent color: "red" opacity: 0.5 }

      Text

      { id: "text" //////////////////////////////// // Test: Text is NOT clipped clip: true //////////////////////////////// //////////////////////////////// // Test: Text IS clipped // clip: false //////////////////////////////// anchors.fill: smallRect font.bold: true font.pointSize: 20 color: "white" text: "The quick brown fox jumps over the lazy dog" }

      }
      ==============================

      Attachments

        1. clipTest.qml
          0.3 kB
        2. textclip.qml
          0.7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bodson Yann Bodson (Inactive)
            fleury Eduardo Fleury
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes