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

Resize and move windows fails

$
0
0
Hi. I have a window without a border (Qt::FramelessWindowHint). I have made a resize area (left side of the window) which works if it only moves or resizes the window but fails if I do both! The following code examples reside inside a MouseArea onPositionChanged function. //Fails: The window only moves but does not grow or shrink! var dx = mouseX - previousPosition.x wordListWindow.moveWindowPos(dx, 0) wordListWindow.setWidth(windowWithAtStart - dx) //Fails: The window only moves but does not grow or shrink! var dx = mouseX - previousPosition.x wordListWindow.setWidth(windowWithAtStart - dx) wordListWindow.moveWindowPos(dx, 0) //Works: Window is moved but I want to do both! var dx = mouseX - previousPosition.x wordListWindow.moveWindowPos(dx, 0) //Works: Windows is resized but I want to do both! var dx = mouseX - previousPosition.x wordListWindow.setWidth(windowWithAtStart - dx)

Viewing all articles
Browse latest Browse all 4972

Trending Articles