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

023 QObject signal operation API

Resources: Python-GUI-PyQ5 general overview.xmind;QObject.xmind 1, destroyed(obj): this signal is sent when the object is destroyed (widget. Signal. Connect: connect signal and slot) from PyQt5.Qt import * class Window(QWidget): def __init__(self): super().__init__() self.setW ...

Added by seby on Sat, 22 Feb 2020 19:33:32 +0200

Lesson 12 - calculator core analysis algorithm (I)

1. Suffix expression Example:              2. Calculator core algorithm Solutions 1. Separate infix expression from number and operator 2. Convert infix expression to suffix expression 3. Calculate the final result by suffix expression 3. Separation algorithm idea Initial num variable is empty, scan stringIf a number or decima ...

Added by wardo on Sat, 15 Feb 2020 22:07:31 +0200