how to do this ,
mouse pressed anywhere on the window,
then can move the window
how to do this ,
mouse pressed anywhere on the window,
then can move the window
Implement the 2 methods below for your derived class from QWidget.
virtual void mouseMoveEvent ( QMouseEvent * event )
virtual void mousePressEvent ( QMouseEvent * event )
e.g.
in moursePress, set a flag,
in mouseMove, if flag set, move the window by calculating how much mouse is moved.
read this.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks