PDA

View Full Version : [QGraphicsView] QGraphicsProxyWidget resizing



Auliyaa
21st April 2011, 12:00
Hi all,

I'm working on an application meant to display a configuration widget embedded in a QGraphicsView.

I first used a QGraphicsProxyWidget with default option and ended up with a non-resizeable, non-decorated widget.

I'm now trying to make this widget resizeable but I don't want any window decoration except the system frame (I don't want no titlebar, close/minimize button etc).

I tried to customize the Qt::WindowFlags by setting them to Qt::Window but then I get a bloody title bar. If I set them to Qt::Window | Qt::CustomizeWindowHint, I get this:
http://img21.imageshack.us/img21/188/ss01e.png

I can't figure out how to put a QWidget in a QGraphicsView than can be resizeable and without titlebar. Anyone ?