QT下的小说阅读器
这是用Qt编写的小说阅读器,还不是很完善,存在一些bug,因为嵌入了一些别人的代码。可提供参考
代码片段和文件信息
#include “mainwindow.h“
#include
int main(int argc char *argv[])
{
QApplication a(argc argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(“:/flash/img/image4.jpg“));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(Qobject::tr(“Setting up the main window...“)
topRightQt::white);
MainWindow w;
w.app = &a;
splash->showMessage(Qobject::tr(“Loading modules...“)
topRightQt::white);
//establishConnections();
w.show();
w.move((QApplication::desktop()->width()-w.width())/2
(QApplication::desktop()->height()-w.height())/2);
splash->finish(&w);
delete splash;
return a.exec();
}
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)