当前位置:网站首页>[QT] how to obtain the number of rows and columns of qtableview and qtablewidget
[QT] how to obtain the number of rows and columns of qtableview and qtablewidget
2022-07-26 06:58:00 【Cappuccino-jay】
1、 get QTableView The number of rows and columns
ui->tableView->model()->rowCount(); // Row number
ui->tableView->model()->columnCount(); // Number of columns
2、QTableWidget Gets the number of rows and columns
ui->tableWidget->rowCount(); // Row number
ui->tableWidget->columnCount(); // Number of columns
边栏推荐
猜你喜欢

你了解MySQL都包含哪些“零件“吗?

String and memory functions

The creation of "harmonyos" project and the use of virtual machines

"Final review" 16/32-bit microprocessor (8086) basic register

“蔚来杯“2022牛客暑期多校训练营1补题记录(ACDGIJ)

mySql建表的基本操作 与常见的函数

buuReserve(4)

软考可以查成绩了,2022年上半年软考成绩查询入口已开通

Heap parsing and heap sorting

【Star项目】小帽飞机大战(三)
随机推荐
The results of the soft test can be checked, and the entry to query the results of the soft test has been opened in the first half of 2022
MySQL基础篇(二)-- MySQL 基础
Shell programming
【Star项目】小帽飞机大战(三)
软考可以查成绩了,2022年上半年软考成绩查询入口已开通
XSS-labs(1-10)闯关详解
[749. Isolate virus]
SQL shell (PSQL) tool under PostgreSQL
Log rotation logrotate
Wechat applet - from entry to penetration
Download, installation and development environment construction of "harmonyos" deveco
“蔚来杯“2022牛客暑期多校训练营1补题记录(ACDGIJ)
buuReserve(4)
[today in history] July 18: Intel was founded; The first photo was posted on the world wide web; EBay spins off PayPal
MySQL Foundation (II) -- MySQL Foundation
Contents mismatch at: 08000000H (Flash=FFH Required=00H) ! Too many errors to display !
树莓派连接天猫精灵音箱通过蓝牙播放音乐的方法
IV Actual combat - global unified return result class
MySQL optimized index and index invalidation
MySQL self incrementing lock