Qt create dynamic link library and call (create subdirectory project, create dynamic link library, multi-core compilation setting, main project configuration library file, problems that cannot run)

Using dll to develop projects is very suitable for team cooperation to develop large-scale projects. It is easy to expand. The libraries are relatively independent, can be compiled independently, and can also protect the source code. The dynamic link library dll created by Qt in this article is called driver. This section demonstrates how to cr ...

Added by reto on Wed, 19 Jan 2022 03:50:56 +0200

Qt seismic profile (or seismic swing diagram, waveform variable area diagram)

  0: project requirements There is a new demand for the recent project. It is necessary to draw the corresponding chart according to the seismic data. There is little information about this chart. I turned to many websites, but I didn't find much useful data. There is only one paper on Qt However, after searching so many materials, I didn't ...

Added by skip on Tue, 18 Jan 2022 19:01:39 +0200

QCodeEditor - Qt based code editor

I. Basic Introduction QCodeEditor is a code editor that supports autocompletion, syntax highlighting, and line numbers. It is for anyone who wants to support multiple languages, from programming languages to markup languages, and even custom scripting languages. In its current state, it can handle all the functions mentioned above perfectly, ...

Added by pbeerman on Tue, 18 Jan 2022 10:45:38 +0200

qt network programming

catalogue Network programming Socket socket under qt qt TCP connection process Example of file transmission from TCP server to client: UDP for qt UDP unicast example of qt: UDP broadcast and multicast (multicast) Network programming Three elements: IP address, port number and communication protocol IP address: computers in the ...

Added by sofasurfer on Mon, 17 Jan 2022 17:39:52 +0200

Design pattern series (Dahua design pattern c + +) - observer pattern

Schema definition Let's take a look at the definition of observer mode in Dahua design mode: it is also called publish subscribe mode, which defines a one to many dependency, allowing multiple observer objects to listen to a topic object at the same time. When the status of the topic object changes, it will notify all observer objects, Yes ...

Added by shezz on Sun, 16 Jan 2022 17:28:21 +0200

QT from entry to soil -- file reading and writing operation

introduction File reading and writing is a function of many applications, and even some applications are developed around the processing of files in a certain format, so file reading and writing is a basic function of application development. Qt provides two basic methods for reading and writing plain text files: Use the IODevice read-write f ...

Added by Sirus121 on Sun, 16 Jan 2022 00:57:43 +0200

QT from entry to soil - mouse event

introduction Personally, the event mechanism is the most difficult and subtle part of Qt. There are two main types of events: Occurs when interacting with a user. For example, press the mouse (mousepress event) and hit the keyboard (keyPressEvent).The system automatically occurs, such as timer event, etc. When an event occurs (for example, pr ...

Added by mtwildcard on Sun, 16 Jan 2022 00:32:32 +0200

File management and standard dialog box in Qt

catalogue 1, Document management 1. Directory operation 1.1 QDir and QFileInfo 1.2. Judge whether the folder exists 1.3. Create directory 1.4. Obtain common directories 1.5. Switching path 1.6. Traversing files 1.7 file filtering 2. File operation 2.1,QFile 2.2. Open and write files 2.3. Read all contents 2.4. QIOdevice class 2, ...

Added by Noctagon on Sat, 15 Jan 2022 03:26:44 +0200

Raster Window Example of Qt

Application Entry Point int main(int argc, char **argv) { QGuiApplication app(argc, argv); RasterWindow window; window.show(); return app.exec(); } Note: in the example, it is QGuiApplication. When I create a project, it is QApplication by default. It does not need to be changed. The later ones can also ...

Added by jac38 on Fri, 14 Jan 2022 07:44:51 +0200

Qt using QNetworkAccessManager to implement Http operations

introduce QtNetwork is a Qt network operation module, which provides various API s based on TCP/IP. qt4x Use separately QFtp and QHttp,5 It will be used uniformly in the future QNetworkAccessManager HTTP request method According to the HTTP standard, HTTP requests can use a variety of request methods. HTTP1.0 defines three request methods: ...

Added by dagon on Wed, 12 Jan 2022 05:17:08 +0200