QT knowledge sorting

Project structure MOC (meta object compiler) is used for meta object code generation and is applicable to * h,.cpp file, when scanned Q in H file_ The object macro generates a moc_xxx.cpp code and write the dependencies to Makefile. uic(User Interface Compiler) is used for Widget layout generation and is applicable to ui file, rcc(Resource Com ...

Added by biznickman on Fri, 31 Dec 2021 15:54:27 +0200

Qt Model/View learning - QTableView (elegant) tutorial (with source code)

0. Preface Last article This paper introduces how to derive its own Model class from QAbstractItemModel to realize the data display and editing functions on QTableView. There are some operations related to QTableView. There is no detailed description. This article will talk about the use of QTableView while the iron is hot. The title of ...

Added by suavebum on Thu, 30 Dec 2021 17:45:58 +0200

An example of a standard dialog box in Qt, the role of QObject::tr()

The full name of the function tr() is QObject::tr(), and the strings processed by it can be extracted by tools and translated into other languages, that is, for international use. Just remember Qt's best practice: if you want to internationalize your program, all user visible strings should use QObject::tr()! However, why don't we write &quot ...

Added by montana111 on Tue, 28 Dec 2021 22:42:47 +0200

Qt C/C + + programming case Sqlite database operation student course selection management system

Qt C/C + + programming case (1) student course selection management system for Sqlite database operation Tip: if the score is too high, talk or comment privately. I'll reduce it. Thank you for your support 1. Video presentation address: Student course selection system based on Qt C + + interface sqlite database 2. Case requirements: 2 ...

Added by Ollie Saunders on Thu, 23 Dec 2021 02:16:44 +0200

QT integrated cef10 JavaScript and C + + intermodulation

Why do we use CEF? In many cases, it is to realize the mutual call between JavaScript and native C + +. That is, when JavaScript in the web page is called, it triggers the execution of local C + + code, such as accessing hardware and other functions that JavaScript cannot complete. The local C + + code can also call back JavaScript. For example ...

Added by dsartain on Wed, 22 Dec 2021 13:31:14 +0200

QAbstractTableModel basic use of Qt Model/View structure principle, detailed code

1. Basic Model/View Principles GUI application development often involves the application of list boxes, tables, tree structures and other forms. Of course, Qt also provides the corresponding view classes QListView, QTableView, and QTreeView, which use the model/view Model/View architecture to manage the relationships between data and how they ...

Added by eric1235711 on Wed, 22 Dec 2021 01:01:59 +0200

Qt control - key

Starting from this chapter, we begin to learn Qt widgets, in which each type of widget is selected as an example to explain their usage. Through the example, you can draw inferences from one instance. This chapter is also pure code programming and does not use Qt Designer graphical interface to develop programs. In this chapter, we can lea ...

Added by smithmr8 on Tue, 21 Dec 2021 03:57:30 +0200

linux Virtualization Management

1. kvm installation conditions 1.inter cpu ----> vmx 2.amd cpu -------> svm 2. kvm virtualization installation 1,dnf group list Lists the software groups in the system 2,dnf group install "Virtualization Client" "Virtualization Hypervisor" "VirtualizationTools" -y install Virtualization Client Virtualized client Virtualization Tools V ...

Added by satant on Sun, 19 Dec 2021 18:41:51 +0200

qt common global macro definitions (qglobal)

explain 1 qt version related macros 1.1 QT_VERSION This macro is expanded into the numerical form 0xMMNNPP (MM = major, NN = minor, PP = patch), indicating the Qt compiler version. For example, the Qt compiler version is Qt 5.9 1, then QT_VERSION is 0x050901. This macro is often used for conditional compilation settings. Different code segmen ...

Added by dniry on Sun, 19 Dec 2021 04:02:14 +0200

Qt 3D chart module -- Data Visualization learning record

Qt 3D chart module ----- Data Visualization Qt data visualization module provides a method to visualize the data in 3D graphics into bar chart, scatter chart and surface chart. It is particularly useful for visualizing depth maps and large amounts of rapidly changing data, such as data received from multiple sensors. The look and feel of a draw ...

Added by phpmoron on Fri, 17 Dec 2021 09:03:00 +0200