如何从QTableWidget获取数据?
我创建了一个 QTableWidget,其中包含文件名及其大小。现在我需要从 TableWidget
检索文件名并将其存储在文件中。任何人都可以帮助我如何做到这一点?是否有任何功能可以从列中检索文本?
I have created a QTableWidget
which contains the file name and its size. Now I need to retrieve the file name from TableWidget
and need to store it in a File. Can anyone help me to how to do this?, is there any function to retrive the text from column?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
方法
尝试使用像这样使用的
提取文本:
:并使用 QTableWidgetItem 方法像这样
Try using the method
Used like this:
and extract the text using QTableWidgetItem method
Used like this: