Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Pyside question pls help passing QtreeWidget from QMainWindow to QDialog class
appollosputnik Banned last edited by
I have a QMainWindow. There is one dialog which called on clicking menu. There is a QTreeWidget in the mainwindow. I want to pass that QTreeWidget to the dialog on invoking. Can I do that ?….Please check the snippet.
self.nvb is the QTreeWidget.
I am passing self.nvb to the ConfigDialog(self.models.values(), self.nvb, self)
dlg = ConfigDialog(self.models.values(), self.nvb, self)
Now after passing this self.nvb I am trying to access the nvb
def init(self, models=, config_nvb=None, parent=None):
nvb. // But when I am trying to access nvb none of elements are appearing in PyCharm.
When in the dialog I am trying to access nvb its elements are not coming. Please help.