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

Text and Image aren't clipped.

    XMLWordPrintable

Details

    • cd0c9ae4ccc43503b6d8fb93bc87092cfa328adc 2a6e105f43885e0901c252bffc77bd1c9db87b67

    Description

      The scene graph clips items using their boundingRect()'s. Text and Image both return a boundingRect large enough to contain their content so the clip rect is never smaller than the content and nothing is clipped.

      The below should be clipped at 10 pixels but isn't.

      Item {
          width: 300; height: 40
          Text {
              width: 10
              text: "some text that's more than 10 pixels wide"
              clip: true
          }
      }
      

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes