Search found 1 match
- Mon Sep 18, 2023 9:31 am
- Forum: Questions
- Topic: log console to file?
- Replies: 5
- Views: 4805
Re: log console to file?
In mainwindow.cpp MainWindow::MainWindow(),add follow code. //Console ccConsole::Init(m_UI->consoleWidget, this, this); m_UI->actionEnableQtWarnings->setChecked(ccConsole::QtMessagesEnabled()); QString applicationPath = QApplication::applicationDirPath(); QString logDirPath = applicationPath + "...