Qt connect and use SQL Sever database
Record the whole process of connecting to SQL Server database in detail
environment
System: Windows 10 professionalQt version: Qt 5.14.2 [compilation kit MinGW 32]SQL Sever: SQL Sever 2019Programming language: C++
1, Configuring ODBC data sources
1, Add a new user in SQL Sever Manger
1. Open the MSS Management Studio provided below
...
Posted by drawmack on Tue, 08 Mar 2022 03:11:55 +0100
Notes on Qt5BLE Bluetooth development under win32
BLE introduction
BLE Bluetooth is a Bluetooth module above Bluetooth 2.0, and classic Bluetooth is Bluetooth below Bluetooth 2.0. Bluetooth is divided into client and server. Classic Bluetooth can communicate between client and server through socket programming (similar to network socket), but BLE Bluetooth cannot communicate in this way. Ther ...
Posted by nev25 on Sun, 30 Jan 2022 13:21:16 +0100
Application analysis of custom signal slot in QT + Example
1. Use of custom signal slot in QT
The signal slot provided by Qt framework cannot meet the needs of our project in some specific scenarios. Therefore, we also design our own signal and slot and use connect() to connect the customized signal slot.
If you want to use a custom signal slot, first write a new class and let it inherit some st ...
Posted by KendersPlace on Sun, 30 Jan 2022 02:31:47 +0100
QT + Gaode Map Web Service API development - search input prompt demoqt UI layout, build request URL, slot function and QT network access
QT-UI layout
The simple arrangement in the early stage is good, and it may be adjusted in the future
The following is a brief description of the following figure: lineEdit is used to input information, ListWidget is used to display the final prompt information, and TextBrowser is used to print the obtained XML file, which can be deleted lat ...
Posted by Drebin on Sun, 16 Jan 2022 03:11:48 +0100
Qt --- network programming
Network programming
The Qt network module provides us with classes for writing TCP / IP clients and servers. It provides lower level classes, such as QTcpSocket, QTcpServer and QUdpSocket representing low-level network concepts, and high-level classes such as QNetworkRequest, QNetworkReply and QNetworkAccessManager to perform network opera ...
Posted by philosophia on Tue, 21 Dec 2021 07:58:39 +0100
QT5 Baidu map development and learning - Preparation
QT5 Baidu map development and learning - Preparation
1. Environmental construction
First of all, it should be clear why MSVC environment is used when QT and Baidu map API are used, because the compiler MinGW of QT does not have webenginewidgets module (that's why). However, this environment is not well configured. Recently, this problem bothe ...
Posted by theCro on Sun, 31 Oct 2021 12:58:06 +0100
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 embedded Baidu map
Catalog
Qt embedded Baidu map
1.WebEngineView declaration and definition
2. Use Baidu map JavaScript API
2.1. Register account, add application and obtain ak code
2.2. Set container style and create map container element
2.3. Initialize map and display
3.Qt calls Javascript function
4.Javascr ...
Posted by ducey on Wed, 12 Feb 2020 18:00:36 +0100
Qt Writes Custom Control 69 - Line Number Statistics
I. Preface
Code line count is mainly used to count the number of code lines of all files in the project, including blank lines, comment lines, code lines. You can specify filter extensions, such as files that only want to count. cpp, you can also specify files or directories for statistics. The first thing to do after writing this tool is to co ...
Posted by cwetherbee on Mon, 14 Oct 2019 03:51:28 +0200
Qt Writing Custom Control 60-Sound Waveform Diagram
I. Preface
This control originates from a music player. When writing the music player, it needs to convert the audio data into corresponding spectrum display. The third-party library of Fmod is used to process it (fmod sound system is a revolutionary audio engine for game developers, very powerful and ...
Posted by aspbyte on Wed, 25 Sep 2019 05:14:23 +0200