I have a fully developed and finalized QT Application with user interface. For our users to have a simpler start into the software I would like to have a fully transparent widget on top of the application where I can give them advice on how to use it when they start the first time. I have created a custom widget by
class GlassOverlay : public QWidget
{
Q_OBJECT
public:
GlassOverlay( QWidget* parent = 0 /*, Qt::WindowFlags f = 0*/ );
void mousePressEvent(QMouseEvent *event);
};
In the constructor of GlassOverlay I defined
this->setAttribute(Qt::WA_TransparentForMouseEvents, true );
The Parent of the GlassOverlay instance is my MainWindow instance, and I automatically resize the GlassOverlay whenever the MainWindow resizes.
How do I get the mouse and keyboard events through to my underlying application? WA_TransparentForMouseEvents does not seem to work properly. Probably because the events go to MainWindow and not to the childs of MainWindows. Any ideas
Bookmarks