Is there any way I can "natively" move a QWidget? For example, Windows can use the gray rectangle when you move a window, while an X11 setup with Compiz can use Wobbly Windows. On X11(Ubuntu 7.10), moving the window by just using:

Qt Code:
  1. void myapp::mousePressEvent(QMouseEvent *event) {
  2. if (event->button() == Qt::LeftButton) {
  3. dragPosition = event->globalPos() - frameGeometry().topLeft();
  4. event->accept();
  5. }
  6. }
  7.  
  8. void myapp::mouseMoveEvent(QMouseEvent *event) {
  9. if (event->buttons() & Qt::LeftButton) {
  10. move(event->globalPos() - dragPosition);
  11. event->accept();
  12. }
  13. }
To copy to clipboard, switch view to plain text mode 

makes it directly paint every time it is dragged, however moving it while pressing and holding the Alt-key yields the wobbly effect. Is there any way I can natively move the window without requiring the user to, for example, hold the Alt key, or is this out of the question?

Thanks in advance ~codeslicer