Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Poor graphic performance in drag element
Forum Updated to NodeBB v4.3 + New Features

Poor graphic performance in drag element

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.7k Views 1 Watching
  • 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 Offline
    C Offline
    cochise
    wrote on last edited by
    #1

    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
    0
    • C Offline
      C Offline
      cochise
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        mario
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cochise
          wrote on last edited by
          #4

          thanks.
          I will see the setGraphicsSystem

          http://cochise.tumblr.com

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved