Qt network programming to realize TCP communication
Qt network programming to realize TCP communication
Labels (space delimited): Tcp communication
1, Introduction to Tcp
(1) TCP (Transmission Control Protocol) TCP is a transport layer network protocol for data transmission. Several network protocols include (HTTP and FTP are based on TCP protocol). TCP is a reliable transport protocol for ...
Added by baudday on Mon, 20 Sep 2021 04:04:28 +0300
PyQt5 GUI receives UDP data and dynamically draws (signaling between multiple threads)
1. Usage of QT
pyqt5 is the python version of qt. It mainly exists in the form of objects. It cannot be visualized in the process of programming, which brings a lot of inconvenience. To simplify pyqt5's interface design, we can use qt Designer (C: \ qt \ 5.12.11 \ mingw73)_ 32 \ bin \ designer. Exe). The generated graphical interfac ...
Added by ricmetal on Wed, 08 Sep 2021 00:55:31 +0300
Qt open source work 37 network transfer server
1, Foreword
Qt has been developed for 10 years, including many projects. Based on the rapid development of web and mobile Internet, a large number of application scenarios need a network transit server, which can realize mobile app or other client remote control devices. Now the Internet of things is developing very rapidly, which is the genera ...
Added by j_miguel_y on Sun, 21 Jun 2020 06:10:18 +0300
QT learning -- coordinate system and memory recovery mechanism
Coordinate system:
1. For the main window, the coordinate system is relative to the screen
Origin: relative to the upper left corner of the screen
x: Increment right
y: Increment down
2. For a child window, the coordinate system is relative to the main window
Origin: relative to the upper le ...
Added by Volatile on Thu, 18 Jun 2020 14:06:11 +0300
How to set font outline, font position, font style, font spacing, window background color size and hide mouse icon in QT
In qt, some attributes such as font outline, font position, font style, font spacing and window background color size are often set for font.
Here is the code to set these properties:
/*mainwindow.cpp*/
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QPainter>
#include <QFont>
#include &l ...
Added by reyes99 on Mon, 25 May 2020 18:09:51 +0300
Qt Picture Correction (2)
Qt Picture Correction (2)
Qt Picture Correction 2
Sketch
PDF to Picture Code
Opencv Picture Correction
Picture to PDF
summary
Continued
Sketch
In the previous section, the principle of picture correction is briefly described.This explains the code section.
PDF to Picture Code
PDF to Picture Code <----- Download PDF to ...
Added by healthnut on Sun, 24 May 2020 19:08:56 +0300
Qt event filter
Event filter
1. The event filter function provided in the event model of Qt enables one QObject object to monitor events in another QObject object. (for example, let QDialog monitor the mouse events of its child controls)
2. By installing event filters in a QObject object, events can be captured before they arrive at the object, so as to moni ...
Added by blkrt10 on Sat, 02 May 2020 01:51:37 +0300
http network request sent by qt
4. Send http request
4.1 copy mynetworkobject.cpp and mynetworkobject.h to your project
(ps: these two documents were found on the Internet, and I have modified them)
4.2 add "mynetworkobject.h" to the header file
// I added it in mainwindow.h (no special explanation below, take this demo as an example)
#inc ...
Added by Strings on Mon, 06 Apr 2020 04:08:50 +0300
Set Qt Widget property in QSS
Set Qt Widget property in QSS
Default style
QSS custom attribute corresponds to Qt type
Use enumeration
Using the QSS property selector
Code instance
Set Qt Widget property in QSS
Q_OBJECT
// Add custom attributes to the Qt dynamic attribute system (usually written under q'u object)
Q_PROPERTY(QColor colSelec ...
Added by bdurham on Sun, 29 Mar 2020 21:36:23 +0300
PyQt project practice work assistant (4 use QSqlTableModel and tableView to implement Todolist)
PyQt project practice work assistant (4 use QSqlTableModel and tableView to implement Todolist)
In this part, the functions of querying, adding, modifying, deleting and exporting todolist work to do are realized through QSqlTableModel and tableView control
Article directory
PyQt project practice wor ...
Added by jtbaker on Sun, 23 Feb 2020 12:34:10 +0200