Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-14044

Implement clipping in a way compatible with QML

    XMLWordPrintable

Details

    • User Story
    • Resolution: Fixed
    • Not Evaluated
    • QDS 4.7.0
    • QDS 4.6.2
    • 2D View
    • None
    • QDS Berlin - 2024 Week 45/46, QDS Berlin - 2024 Week 47/48, QDS Berlin - 2024 Week 49/50
    • 02394c945 (qds/dev), 6267af72f (qds/dev)

    Description

      Implement clipping in a way compatible with QML

      In QGraphicsView and therefore also in the form editor the clip property is inherited by QML.

      import QtQuick
      
      Item {
          id: root
          clip: true
          width: 640
          height: 480
      
          Text {
              id: _text
              x: 25
              y: 16
              width: 103
              height: 111
              text: qsTr("314")
              font.pixelSize: 90
              font.bold: true
          }
      }
      

      Since we cannot change/control how clip works in graphics view we have ti implement our own clipping.

      Attachments

        For Gerrit Dashboard: QDS-14044
        # Subject Branch Project Status CR V

        Activity

          People

            rafals RafaƂ Stawarski
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes