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

QML objects rendering with artifacts

    XMLWordPrintable

Details

    Description

      I have QQuickView, in this view I dynamic create object.

      Item {
          id: new_obj
          property var obj
          width: 400
          height: obj.height
          function createObj(text) {
              return Qt.createQmlObject(text, new_obj);
          }
      
          Component.onCompleted: {
              obj = createObj(Widget.GiveText());
          }
      }
      
      

      (Widget is C++ object). When i want set new size this object, I use

       

      void Widget::SetFixedSize(QVariant m) {
          this->setFixedSize(view_->size().width(), m.toDouble());
      }
      

      But in a few computers objects with new size render with artifacts.

       

      First:

       
      When I change size

       

      but it must look like this

       

      Attachments

        Activity

          People

            srutledg Shawn Rutledge
            kidav Vadim Vadim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: