Qt4 智能感知问题

Qt4 智能感知问题,qt4,Qt4,在此代码中: #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,SLO

在此代码中:

#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();
}
#包括
#包括
int main(int argc,char*argv[])
{
QApplication应用程序(argc、argv);
QPushButton*按钮=新的QPushButton(“按钮文本”);
QObject::connect(按钮、信号(单击())、应用程序、插槽(退出());
按钮->显示();
返回app.exec();
}
当光标位于用于写入按钮的信号括号中时,将出现intellisense。但它不会出现在槽括号中,以编写应用程序方法

它是否与应用程序前面的&字符有关

我觉得自己很傻

QObject::connect(button,SIGNAL(clicked()),&app,SLOT(quit()));
quit()或intellisense不会出现,因为可以在括号之间写入任何函数