You need to have a declaration of the QCloseEvent class in order for the compiler to compile this code (this is not a Qt problem). The quickest way is to:
Qt Code:
// In your header file #include <QCloseEvent> OR // in your header class QCloseEvent; // and in your cpp file #include <QCloseEvent>To copy to clipboard, switch view to plain text mode
Bookmarks