Hi!
I have an application with some dockwidgets that are floating, i.e they cannot be docked.
Every dock has a widget with some buttons and other things in it that is attached to the dock.
Example:
Qt Code:
  1. void CreateInfoDock(const QString &name, QWidget *parent)
  2. {
  3. infoDock = new QDockWidget(name, parent);
  4. infoDock->setFloating (true);
  5. infoDock->setAllowedAreas(false);
  6. infoDock->setMinimumHeight(150);
  7. infoDock->setMaximumHeight(170);
  8. infoDock->setMinimumWidth(250);
  9. infoDock->setMaximumWidth(300);
  10.  
  11. infoDockWidget = new InfoDockWidget(infoDock);
  12. infoDock->setWidget( infoDockWidget );
  13. }
To copy to clipboard, switch view to plain text mode 

Now, what happends is that if I want to move the dock and by accident press the mouse on the boarder of the dock so it resizes it can suddenly move very fast out of the screen.
This is really annoying since I can't get it back without recompiling the program with a ->move(int x, int y) command.
Is there some way that i can disable the resize function so this can't happen?
//Nils