Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QModelIndex #22

Open
thorade opened this issue May 17, 2018 · 0 comments
Open

QModelIndex #22

thorade opened this issue May 17, 2018 · 0 comments

Comments

@thorade
Copy link

thorade commented May 17, 2018

The following code:

self.connect(self, QtCore.SIGNAL("clicked(const QModelIndex &)"), self.clicked)

gets converted to

self.clicked[QModelIndex].connect(self.clicked)

But that code is giving me an error:

Traceback (most recent call last):
  File "C:\Users\mthorade\Anaconda3\lib\site-packages\ifcopenshell\geom\app.py", line 592, in browse
    self.load(filename)
  File "C:\Users\mthorade\Anaconda3\lib\site-packages\ifcopenshell\geom\app.py", line 605, in load
    c.load_file(f, setting=self.settings)
  File "C:\Users\mthorade\Anaconda3\lib\site-packages\ifcopenshell\geom\app.py", line 215, in load_file
    self.clicked[QModelIndex].connect(self.clicked)
NameError: name 'QModelIndex' is not defined

Am I doing somethign wrong, or is it a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant