When should we use * and & and . and -> ?

Posted by uzay95 on Stack Overflow See other posts from Stack Overflow or by uzay95
Published on 2010-06-10T06:38:21Z Indexed on 2010/06/10 6:42 UTC
Read the original article Hit count: 150

Filed under:
|

Why we are using * character when we are creating button but we aren't adding it to app instance?

#include <QApplication>
#include <QPushButton>

int main(int argc,char *argv[])
{
    QApplication app(argc,argv);
    QPushButton *button = new QPushButton("Button Text");
    QObject::connect(button,SIGNAL(clicked()),&app,SLOT(quit()));
    button->show();
    return app.exec();
}

When should we use * and & and . and -> ?

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt