• 6133阅读
  • 2回复

求助:establishConnections': identifier not found [复制链接]

上一主题 下一主题
离线superwave
 
只看楼主 倒序阅读 楼主  发表于: 2010-09-16
设置程序启动时显示图片

#include "try4.h"
#include <QtGui/QApplication>
#include <QtGui/QSplashScreen>
#include <QtGui/QPixmap>
#include <QtGui>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QSplashScreen *splash = new QSplashScreen;
    splash->setPixmap(QPixmap(":/splash.png"));
    splash->show();

    Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
    splash->showMessage(QObject::tr("OK"),
        topRight, Qt::white);

    try4 w;
    splash->showMessage(QObject::tr("Loading modules..."),
        topRight, Qt::white); //显示信息

     loadModules();

    splash->showMessage(QObject::tr("Establishing connections..."),
        topRight, Qt::white);

    establishConnections();
    w.show();

    splash->finish(&w);
    delete splash;
    return a.exec();
}

但是怎么编译时说
1>.\main.cpp(23) : error C3861: 'loadModules': identifier not found
1>.\main.cpp(28) : error C3861: 'establishConnections': identifier not found

求助......................
离线dbzhang800

只看该作者 1楼 发表于: 2010-09-16
这个只能问你自己了,这两个函数你的在 try4.h 中第一的吗?如果不是,你在哪儿定义的,把头文件包含进来再说。
离线superwave
只看该作者 2楼 发表于: 2010-09-16
回 1楼(dbzhang800) 的帖子
Thanks a lot
快速回复
限100 字节
 
上一个 下一个