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

Not converting close->quit signal #7

Open
bgrimm opened this issue Oct 19, 2016 · 0 comments
Open

Not converting close->quit signal #7

bgrimm opened this issue Oct 19, 2016 · 0 comments
Assignees
Labels

Comments

@bgrimm
Copy link

bgrimm commented Oct 19, 2016

Maybe my syntax is incorrect but I have code that connects an action to the close event (in PyQt4)

 exit = QtGui.QAction('qaction', self)
 exit.setShortcut('Ctrl+Q')
 exit.setStatusTip('Close application') 
 self.connect(exit, QtCore.SIGNAL('triggered()'), QtCore.SLOT('close()'))

pyqt4topyqt5 converts signal-slot to:
exit.triggered.connect(close)

Which errors out converted program.

Instead convert to:
exit.triggered.connect(quit)

@rferrazz rferrazz added the bug label Oct 19, 2016
@rferrazz rferrazz self-assigned this Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants