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

Implement clipping in a way compatible with QML

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Fixed
    • Icon: Not Evaluated 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)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes