在PyQt中对QTableView添加右键菜单

上面的软件,最左侧是QList,中间是QLabelView,准备给中间的表格加个右键菜单,主要代码以下python self.view.setContextMenuPolicy(Qt.CustomContextMenu) # 右键菜单,若是不设为CustomContextMenu,没法使用customContextMenuRequested self.view.customCon
相关文章
相关标签/搜索