I have a QT question

Hey guys,

yes pun intended,

as you can see a QT c++ class will have a signals: and slots: access specifiers,how is this possible ?

I thought C++ in general (most compilers) will have just public,protected and private?

as far as I know the compiler I am using is mingw so how could it possibly have these extra specifiers?

thanks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 #include <QFile>
#include <QDebug>

class Downloader : public QObject
{
    Q_OBJECT
public:
    explicit Downloader(QObject *parent = 0);

    void doDownload();

signals:

public slots:
    void replyFinished (QNetworkReply *reply);

private:
   QNetworkAccessManager *manager;

};

#endif // DOWNLOADER_H 
Topic archived. No new replies allowed.