QT Creator defining exceptions

  c++, exception, qt, qt-creator

I want to define a simple exception but when I do this Im getting an error saying "expected class name"

#include <exception>
class MyException : public exception{
    
};

This is in a QT (https://www.qt.io/) widget application.
Wont let me inherit from exception, why is this?

Source: Windows Questions C++

LEAVE A COMMENT