Introduction to QT database access technology

  catalogue Background introduction Functional comparison Introduction to common classes of database operation in QT Usage example Data preparation Create entity class Create database access class Personal summary About how to get errors in database execution and judge whether SQL statement execution is successful About parameterized ...

Posted by madhukar_garg on Sat, 25 Sep 2021 11:00:11 +0200

No event loop or use of QTimer in non-GUI/Qt threads

[Write before] QTimer in Qt is fairly simple and powerful. However, you have recently encountered a number of problems using QTimer without the Qt thread. Read the document carefully and discover details you don't notice (I'm silly T.), which require a cycle of events: In multithreaded applications, you can use QTimer in any thread that ...

Posted by me102 on Tue, 21 Sep 2021 18:35:35 +0200

Roson talks about the ComboBox of Qt#29 Quick Controls 2 (drop-down list box)

1. Concepts ComboBox is a combination of buttons and pop-up lists. It provides a way to display a list of options to the user, which takes up the least screen space. ComboBox is populated with data models. Data models are usually JavaScript arrays, ListModel s, or integers, but they also support other types of data models. ComboBox { x:200 ...

Posted by Az_Critter on Sat, 18 Sep 2021 05:38:58 +0200

Initial use of QSerialPort, a QT5 serial port class

I mainly use the serial port class here. The function is to open the serial port read and write, click the Send Data button to send the data of the sending area to the buffer, and then display it in the receiving area. The interface is as follows: (Source code can be in Here Download)                                                         ...

Posted by msgcrap on Fri, 03 Jul 2020 16:57:37 +0200

Qt Open Source Works 33-Picture Switch Control

1. Preface Since the smartphone era, a wide variety of APP s have flourished. Apps on mobile phones have many popular elements. Switch buttons are very liked by individuals. Mobile phones QQ, 360 Guards, Jinshan Toxinba, etc. have many switch controls for some operations. On WINFORM projects, if Check ...

Posted by ayzee01 on Mon, 15 Jun 2020 03:29:21 +0200

GStreamer official introductory course 5: integrating GStreamer with your graphical interface

This tutorial demonstrates how to integrate GStreamer into a graphical user interface (GUI) toolkit like GTK +. Basically, GStreamer is responsible for media playback, while the GUI toolkit handles user interaction. The most interesting part is that the two libraries must interact: instruct GStreamer to ...

Posted by kishore_marti on Fri, 12 Jun 2020 10:19:34 +0200

[interesting case] make a screen recording tool with Python

1, Write in front As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn. 2, Effect display ...

Posted by Zup on Mon, 27 Apr 2020 10:21:50 +0200

QT: custom Model and related demo

Use background With the increase of development projects, the business structure is more and more complex. In order to improve the development efficiency of programmers and reduce the maintenance cost (code readability), using MVC (MVD) mode in QT is an effective method. Customizing the Model is the first step in using the MVC pattern. How t ...

Posted by karimali831 on Sat, 18 Apr 2020 16:51:39 +0200

Qt write map comprehensive application 15 - add delete clear reset point

I. Preface In the related projects of map application, some equipment points are identified on the map, and the function of point interaction is most used. Therefore, a set of mechanism is needed to dynamically add, delete, clear and reset. Reset means to reset the longitude and latitude of all points in the map. In fact, it means to first clea ...

Posted by dmb on Sat, 18 Apr 2020 03:57:55 +0200

Qt Focus event, FocusInEvent() and FocusOutEvent()

Description: At the beginning, I want to realize that there are multiple editable controls (such as QLineEdit, QTextEdit, etc.) on a form. When which control gets the focus, the background of which control will be highlighted to prompt. I found out that the document should use focusInEvent() and focusOutEvent(). In the actual p ...

Posted by the elegant on Sat, 15 Feb 2020 16:46:40 +0100