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

QML's Dynamic object creation feature does not on Nokia's N8 phone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 4.7.0
    • 4.7.0
    • None
    • Running on Nokia's N8 phone.

    Description

      The following works correctly on Windows platform: a rectangle will be drawn at the touch or click position every time I touch on the screen. However, this does not work on N8.

      import Qt 4.7

      Rectangle {
      id: p
      width: 200
      height: 200
      Text

      { id: mytext x: 66 y: 93 text: "Hello World" }

      MouseArea {
      anchors.fill: parent
      onClicked: {

      var component;
      var rect;

      rect = Qt.createQmlObject('import Qt 4.7; Rectangle

      color: Color value is invalid

      ',
      p, "dynamicSnippet1");
      rect.x = mouse.x;
      rect.y = mouse.y;
      rect.width = 3;
      rect.height = 3;
      mytext.text = "rect changed";

      }

      }

      }

      Attachments

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

        Activity

          People

            jpetrell Joona Petrell
            davidzhang david zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes