Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Poor graphic performance in drag element

    QML and Qt Quick
    2
    4
    2453
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cochise last edited by

      I'm playng with Qt Quick and made a "mdi" interface.
      Actualy only rectangles with drag enaled.

      But the drag is in not smoot and consume a lot of cpu.
      I don't have the best GPU (intel 945GME) or GPU (Atom n270) here, bur drag 3 rectangles inside othr is not a hard task.
      Anyone know what is the problem?

      @
      TitleBar{
      id: titlebar
      width: 120
      height: 24
      color: "#444"

          MouseArea{
              anchors.fill: parent
              drag.target: titlebar
              drag.axis: Drag.XandYAxis
              drag.minimumX: 0
              drag.minimumY: 0
          }
      
          Rectangle{
              id:maxButton
              color: "#FFF"
              width: 20
              height: 20
              anchors.right: parent.right
      
              MouseArea{
                  anchors.fill: parent
                  onClicked: window.state = "maximized"
              }
          }
       }
      
      Rectangle{
          id: box
          width: 250
          height: 250
          x: titlebar.x
          y: titlebar.y+titlebar.height
      }
      

      }
      @

      http://cochise.tumblr.com

      1 Reply Last reply Reply Quote 0
      • C
        cochise last edited by

        Well...
        The problem is in the Qt part of the code. Maybe QDeclarativeView.
        Running the QML file with qmlviewr the velocity is ok. Compiling the project i have a lt of lag.

        I create the app with the template Qt Quick Application of qtcreator 2.1 beta 2.

        I will read the qmlapplicationviwer to find the problem

        http://cochise.tumblr.com

        1 Reply Last reply Reply Quote 0
        • M
          mario last edited by

          You also have some performance hints at this page: http://doc.qt.nokia.com/4.7/qdeclarativeperformance.html

          1 Reply Last reply Reply Quote 0
          • C
            cochise last edited by

            thanks.
            I will see the setGraphicsSystem

            http://cochise.tumblr.com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post