![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Qt
Qt的相关
Malody4kPlayer
Malody: 7dan
Arcaea:11.00
pjsk:28~29fc的水平
展开
-
【QT】QTableWidget有隐藏行/列时获取当前所有被选取的行/列
只讨论隐藏行、返回行的情况,列的情况类似,不在此重复。分两种情况:一种是鼠标划动选取时候返回包含被隐藏行, 另一种是鼠标划动选取时返回不包含被隐藏行。前提:现在有个QTableWidget类型的控件,名字为tablewidget,有三行,但第二行被使用setRowHidden(2,true) 方法隐藏了一、鼠标划动选取时候返回包含被隐藏行 QItemSelectionModel* selections=ui->tableWidget...原创 2021-11-17 10:02:13 · 2680 阅读 · 0 评论 -
【QT】让窗口中心移动到显示器的正中央
添加头文件:#include <QDesktopWidget>.cpp文件中: QDesktopWidget *desktopWidget=QApplication::desktop(); this->setGeometry(desktopWidget->width()/2-this->width()/2,desktopWidget->height()/2-this->height()/2,this->width(),this-.原创 2021-11-02 10:25:25 · 623 阅读 · 0 评论