How to drag QML interface when hide default titlebar?

Asked by kobe

I use qt4 and QtQuick1.0, if i hide the default titlebar of QML, i can make it to drag. But if i want to use qt5 an QtQuick2.0,
I can not achieve to drag QML interface when I hide the default titlebar which has closebutton,Maximize button and Minimize button.
I read the code of friends-app, and i found you don't hide the default titlebar. I want to know that if hide it , how to achieve to drag QML interface?
Thank you.

Question information

English Edit question
Ubuntu friends-app Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Hold ALT and you can drag an application window from any point on the window.

Revision history for this message
kobe (kobe24-lixiang) said :

Yes, I can drag the window when hold ALT. But I want to drag the window without hold ALT, just like drag the window when the mouse pointer in the default titlebar.

Can you help with this problem?

Provide an answer of your own, or ask kobe for more information if necessary.

To post a message you must log in.