I’m not in front of any functional PySide installs at the moment, but if I
remember correctly, you just need to call self.setWindowFlags(Qt.Window) in
your QDialog’s __init__.
-Nathan
From: Brogan Ross
Sent: Monday, April 02, 2012 9:44 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] PySide window makes nuke crash on close
I'm in the same boat as, Matthieu. I don't want the dialog to lock up Nuke. I
need it to just appear and be available if needed.
I was doing things slightly different than Matthieu
class TestWindow(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setLayout(QtGui.QVBoxLayout())
self.line = QtGui.QLabel("some text")
self.layout()
tw = TestWindow()
tw.show()
However, if I switch it over to QDialog and use activeWindow() as a Johan said,
everything works fine, no crashing. With one exception. The window stays on
top of Nuke and I want it to be able to be in the background.
Sorry, I'm very new to PyQt/PySide.
Thanks
--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python