Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Pyside question pls help
Forum Updated to NodeBB v4.3 + New Features

Pyside question pls help

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 564 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • appollosputnikA Offline
    appollosputnikA Offline
    appollosputnik
    Banned
    wrote on last edited by
    #1

    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)
    [code]
    def setConfig(self):
    dlg = ConfigDialog(self.models.values(), self.nvb, self)
    if dlg.exec
    ()==QtGui.QDialog.Accepted:
    pass
    [/code]

    Now after passing this self.nvb I am trying to access the nvb

    [code]
    class ConfigDialog(QtGui.QDialog):
    def init(self, models=[], config_nvb=None, parent=None):
    super(ConfigDialog, self).init(parent)
    nvb. // But when I am trying to access nvb none of elements are appearing in PyCharm.
    [/code]

    When in the dialog I am trying to access nvb its elements are not coming. Please help.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved