【 在 callmebbser 的大作中提到: 】
: [signal] void QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidg
: et)
: This signal is emitted when the tabified dock widget is activated by selecti
: ...................
thx,
我现在的方案是这样处理的, 使用自定义的DockWidget对象, 然后
处理visibilityChanged, 在消息处理中通知Dock对象里的Widget
class MyTabEnableDock(QtWidgets.QDockWidget):
def __init__(self, name, **kwargs):
super().__init__(name, **kwargs)
self.visibilityChanged.connect(self.setVisibility)
def setVisibility(self, visible):
if visible:
self.setFocus()
self.widget().setVisibility(visible)
--
修改:poggy FROM 124.126.2.*
FROM 124.126.2.*