It has just been implemented. When you click to switch to this page, the data queried in the MySQL database will be displayed MySQL database needs to create an initialization data table Connect layer, create entity class A Student object, used as a generic for subsequent traversal of the collection package pojo; import javafx.beans.property.SimpleIntegerProperty; import […]
Tag: tableview
Use custom QSortFilterProxyModel to implement conditional filtering so that only row information that meets the conditions is displayed in qtableview
In actual development, qtableview is one of the most commonly used controls in Qt client pages. When using qtableview, the initial data will be filtered first, and then only the information that meets the conditions will be displayed on qtableview. Or display different row information that meets the conditions under different conditions. The first method […]
QTableView and QTableWidget use and override QTableView
1 Basic use of QTableView The main difference between the two is that QTableView can use a custom data model to display content (which means that you must first bind the data source through setModel before using it), while QTableWidget can only use a standard data model. Theoretically speaking, the functions implemented with QTableView can […]
Qt Programming-QTableView Freeze Rows or Freeze Columns or Freeze Partial Cells
Foreword Qt Programming-QTableView freezes rows or columns or freezes partial cells. Like the title, first check if the effect is what you need. The code snippets found online are either incomplete or not what you want. If you need the effect of freezing rows and columns at the same time, please read the next blog […]
Qt Programming-QTableView freezes rows and columns simultaneously
Foreword Qt Programming – QTableView freezes rows and columns simultaneously. Like the title, first check if the effect is what you need. The code snippets found online are either incomplete or not what you want. If you only need to freeze rows or columns, please read the previous blog Qt Programming-QTableView Freeze Rows or Freeze […]
iOS Development Swift-12-List UI, TableViewController, Dynamic Response Button Check-To-Do App (1)
1. Create a new project Add icon to project 2. Add Table View Controller to the interface Move the arrow to the Table View, which means it is the homepage (root page). Select the ViewController, click Delete, and delete it. Delete the code ViewController.swift as well. Create a new Cocoa Touch Class. Set the class […]
Using various custom delegates in QTableView
QT’s MVC (View/Delegate) model is very powerful and can use various controls to limit table input. Idea: 1: Define delegates for each column: A: The first column is the number column. Use a read-only delegate to make the cells in this column read-only. B: The third column is the ID column. Only 1-12 numbers can […]
Qt QtableWidget, QtableView table deletes selected rows, deletes single rows, deletes multiple rows
Article directory Qt QtableWidget table delete selected rows Only one row can be selected. After clicking the button, a row will be deleted. You can select multiple rows and delete multiple rows after clicking the button Select different rows in a column and delete multiple rows after clicking the button Introduction to QTableWidgetSelectionRange QTableWidget selection […]
Customization of iOS tableView left slide delete button
####Preface The company’s project uses a tableView function of sliding left to delete. The delete button has text and pictures as shown below. ####Implementation Several points that need explanation iOS9, iOS11, and iOS13 have different ways of obtaining the corresponding delete button. The way to add buttons is different in iOS9 and iOS11 There are […]
QSqlDatabase(2) instance, QTableView displays database table data
Table of Contents Preface 1. Functions implemented 2. Specific code implementation Foreword If you want to know the basic knowledge of QSqlDatabase and the usage of addition, deletion, modification and query, you can browse the previous article: QSqlDatabase (1) basic interface, and simple examples of (addition, deletion, and deletion)_Ivy_belief’s blog-CSDN blog This article is mainly […]