User Tools

Site Tools


programming:qt

Differences

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

Link to this comparison view

Next revision
Previous revision
programming:qt [2021/06/11 02:46]
nanodano created
programming:qt [2021/06/11 05:52] (current)
nanodano
Line 1: Line 1:
 ====== Qt ====== ====== Qt ======
  
-Get Qt from [[]]+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]]
  
 +===== 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 =====
Line 11: Line 38:
 // to the project file in Windows // to the project file in Windows
 //  // 
-//# Pcap specific build stuff for Windows+//# Pcap specific build stuff for Windows (in qmake)
 //INCLUDEPATH += C:/WpdPack/Include //INCLUDEPATH += C:/WpdPack/Include
 //LIBS += C:/WpdPack/Lib/wpcap.lib //LIBS += C:/WpdPack/Lib/wpcap.lib
programming/qt.1623379581.txt.gz ยท Last modified: 2021/06/11 02:46 by nanodano