Resize and move windows fails



  • 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)@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.