ericV
1st October 2009, 13:49
Hello all,
I am now working on a multi-widget MDI application and am trying to implement my own Subwindow, since i need it to have different behaviours depending on the widget that is set into it.
My problem is following, i have two widget types where i don't want the subwindow to have a title-bar, but i still want to be able to move and re-size it.
The only way i have found to remove the title-bar is to apply the Qt::FramlessWindowHint wich also removes the frame and so i lose the ability to re-size the window directly.
So i would like to write a re-size and Move event that handles the mouse click, move and release events from the widget.
I have successfully reimplemented these events directly on the widget, but i would rather have this handled directly by the subwindow.
I hope "you" can make sense of my rambling :cool:
Oh the widgets i am talking about are based on QFrame.
Thanks for reading, and i hope you can help.
Eric
I am now working on a multi-widget MDI application and am trying to implement my own Subwindow, since i need it to have different behaviours depending on the widget that is set into it.
My problem is following, i have two widget types where i don't want the subwindow to have a title-bar, but i still want to be able to move and re-size it.
The only way i have found to remove the title-bar is to apply the Qt::FramlessWindowHint wich also removes the frame and so i lose the ability to re-size the window directly.
So i would like to write a re-size and Move event that handles the mouse click, move and release events from the widget.
I have successfully reimplemented these events directly on the widget, but i would rather have this handled directly by the subwindow.
I hope "you" can make sense of my rambling :cool:
Oh the widgets i am talking about are based on QFrame.
Thanks for reading, and i hope you can help.
Eric