qchart中,怎么能够启动动画显示出来,就是窗口弹出来的时候能够动态的显示,比如向左旋转或者向右旋转
你在启动的时候弹出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();
}