参考博客:https://blog.csdn.net/kidults/article/details/80091788
[static] void QTimer::singleShot(int msec, const QObject *receiver, const char *member)
QTimer::singleShot(1000, this, SLOT(slot_index()));
单singleShot,表示它只会触发一次,发出一次信号,然后来执行槽函数。
参考博客:https://blog.csdn.net/kidults/article/details/80091788
[static] void QTimer::singleShot(int msec, const QObject *receiver, const char *member)
QTimer::singleShot(1000, this, SLOT(slot_index()));
单singleShot,表示它只会触发一次,发出一次信号,然后来执行槽函数。