Hi all. I want to draw my own window frames, as it done in winamp, for example.
I saw documentation for QGraphicsWidget, but I got some problems. First, my window is invisible - may be I should set some WindowFlags in constructor? And the second, setupUI method takes QWidget - so I cannot use QDesigner.
I didnt find something like paintWindowFrame in QWidget.
Is it possible to use QGraphicsProxyWidget here? Can anyone give me a link, how to use it for drawing QWidget's frame?
I can do
Qt::WindowFlags flags = this->windowFlags();
flags |= Qt::SplashScreen;
this->setWindowFlags(flags);
Qt::WindowFlags flags = this->windowFlags();
flags |= Qt::SplashScreen;
this->setWindowFlags(flags);
To copy to clipboard, switch view to plain text mode
And then draw window borders myself. But in such way, it is nessesary to process all events as move, resize (8 cases!) and so on manually. Is it not complicated, but needs lot of code.
Bookmarks