Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/PyQtPublic

tableWidget 有没有方法能查看每一行是不是隐藏状态?#161

Answeredby892768447
LiHongyuan1 asked this question inQ&A
Discussion options

将 tableWidget 的数据做根据某些关键字进行删选。
把不包含关键字的 行 隐藏 self.tableWidget.setRowHidden(, False)
把包含关键字的 行 显示 self.tableWidget.setRowHidden(
, True)
然后我在保存文件的时候想只保存显示的行的数据? 但是似乎没有方法能够支持

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

https://doc.qt.io/qt-5/qtableview.html#isRowHidden

self.tableWidget.isRowHidden(row) -> True/False

You must be logged in to vote
1 reply
@LiHongyuan1
Comment options

thanks~

Answer selected byLiHongyuan1
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@LiHongyuan1@892768447

[8]ページ先頭

©2009-2025 Movatter.jp