Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序持续运行,我希望每天在运行时创建一个日志文件夹。然后,我会将当天的日志放在适当的文件夹中。它看起来像这样:
logs/ 07-11-2016/file1.log 07-12-2016/file1.log
当日期更改时,我没有找到可以由实例QDate或其他东西触发的信号。在我看来,这似乎是最方便的方式。
QDate
QTimer这个想法是在每次日期变化时(每天)都有某种触发信号。
QTimer