Hey, i tried that.
I removed the ScribbleArea widget. Since the QMainWindow is also a widget, i moved the code above from the ScribbleArea to the QMainWindow.
Same behaviour here. Note the QMainWindow, does not override one of the specific eventhandlers.
Here is the headefile of the QMainWindow. It simply implements the event member function.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QList>
#include <QMainWindow>
//! [0]
{
Q_OBJECT
public:
MainWindow();
protected:
private:
};
//! [0]
#endif
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QList>
#include <QMainWindow>
//! [0]
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
protected:
bool event(QEvent*)
private:
};
//! [0]
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks