User Tools

Site Tools


programming:qt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programming:qt [2021/06/11 02:50]
nanodano
programming:qt [2021/06/11 05:52] (current)
nanodano
Line 1: Line 1:
 ====== Qt ====== ====== Qt ======
  
-Get Qt from [[https://www.qt.io/download]].+Get Qt from [[https://www.qt.io/download]]. The main programs you are interested in are the QtCreator which is the IDE and the Designer which is the UI builder (usually integrated right into QtCreator already though).
  
 For Qt in Python, see [[https://www.devdungeon.com/content/python3-qt5-pyqt5-tutorial|PyQt5 Tutorial]] For Qt in Python, see [[https://www.devdungeon.com/content/python3-qt5-pyqt5-tutorial|PyQt5 Tutorial]]
 +
 +===== Installation =====
 +
 +
 +In Debian, install Qt5 libraries, QtCreator IDE and UI Designer with ''apt install qt5-default qtcreator''. Run  the IDE with ''qtcreator''. Run the GUI Designer with ''designer''.
 +
 +===== qDebug verbosity levels =====
 +
 +Qt has multiple levels of verbosity for logging. If you are able to print ''qInfo()'' messages but ''qDebug()'' is not outputting anything, you need to turn on the debug messages.
 +
 +<code c++ qdebug_example.cpp>
 +#include <QDebug>
 +
 +// ...
 +
 +qInfo() << "Is this working?";
 +qDebug() << "but not this?";
 +</code>
 +
 +You can set the Qt logging levels in ''~/.config/QtProject/qtlogging.ini'' like this:
 +
 +<code text qtlogging.ini>
 +# ~/.config/QtProject/qtlogging.ini
 +[Rules]
 +*.debug=true  # Enable all debug messages
 +qt.*.debug=false  # Disable qt debug messages, leaving only ours
 +</code>
  
 ===== Using WinPcap with Qt ===== ===== Using WinPcap with Qt =====
programming/qt.1623379812.txt.gz ยท Last modified: 2021/06/11 02:50 by nanodano