qchart中,怎么能够启动动画显示出来,就是窗口弹出来的时候能够动态的显示,比如向左旋转或者向右旋转
1条回答 默认 最新
- 金士顿 2022-04-30 13:05关注
获得2.50元问题酬金 你在启动的时候弹出chart画面,自己得需要写程序
你还可以用别的类,启动类
#include <QApplication> #include <QSplashScreen> #include <QPixmap> #include <mainwindow.h> #include <QDebug> #include <QElapsedTimer> #include <QDateTime> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPixmap pixmap("screen.png"); QSplashScreen screen(pixmap); screen.show(); screen.showMessage("LOVE", Qt::AlignCenter, Qt::red); #if 0 int delayTime = 5; QElapsedTimer timer; timer.start(); while(timer.elapsed() < (delayTime * 1000)) { app.processEvents(); } #endif #if 0 QDateTime n=QDateTime::currentDateTime(); QDateTime now; do{ now=QDateTime::currentDateTime(); app.processEvents(); } while (n.secsTo(now)<=5);//5为需要延时的秒数 #endif MainWindow window; window.show(); screen.finish(&window); return app.exec(); }
解决 无用评论 打赏 举报
悬赏问题
- ¥15 无源定位系统的时差估计误差标准差
- ¥15 请问这个代码哪里有问题啊
- ¥20 python--version在命令端输入结果Python is not defined怎么办?还有pip不是exe格式是不是没安装成功?
- ¥15 通过GaussianView进行结构微调消除虚频
- ¥15 调用transformers库
- ¥15 由于导出的数据名字中带有/,导致Matlab打不开,怎么办?
- ¥15 新硬盘安装的程序总是崩溃,提示遇到错误
- ¥15 openpcdet自制数据集评估bev精度和3d精度相同
- ¥15 excel 上下按钮 显示行
- ¥20 云卓h12pro 数传问题