Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QtQuick2 help needed with dragging frameless window. [ solved ]

$
0
0
If anyone will approached the same problem here is a solution: source: http://stackoverflow.com/questions/18927534/qtquick2-dragging-frameless-window-solved [stackoverflow.com]         property variant clickPos: "1,1"           onPressed: {             clickPos  = Qt.point(mouse.x,mouse.y)         }           onPositionChanged: {             var delta = Qt.point(mouse.x-clickPos.x, mouse.y-clickPos.y)             rootWindow.x = rootWindow.x+delta.x;             rootWindow.y = rootWindow.y+delta.y;         }

Viewing all articles
Browse latest Browse all 4972

Trending Articles