Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #include "mainwindow.h"
  2.  
  3. #include <QApplication>
  4. #include <QFile>
  5. #include <QDebug>
  6. #include <QLoggingCategory>
  7.  
  8. Q_LOGGING_CATEGORY(fcIo, "fc.io")
  9.  
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13. QApplication a(argc, argv);
  14.  
  15. // QString file_loc = "/tmp/dbg.txt";
  16. // QFile *dbg_file = new QFile(file_loc);
  17.  
  18. // dbg_file->open(QIODevice::WriteOnly);
  19.  
  20. // QDebug dbg(dbg_file);
  21.  
  22. // qDebug() << "HELLO WORLD" << endl;
  23.  
  24. QLoggingCategory::setFilterRules("*.debug=false\n" "fc.io.debug=true");
  25. // QLoggingCategory::defaultCategory()->setEnabled(QtDebugMsg, true);
  26.  
  27. qCDebug(fcIo, "Loading highscore ...");
  28. qDebug() << "Test";
  29.  
  30. MainWindow mw;
  31.  
  32. mw.show();
  33.  
  34. return a.exec();
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement