[PyQt] Using PyQt within an application
andreasfrickinger at me.com
Thu Aug 14 23:14:22 BST 2008
Hi Darryl! Thanx for the quick response!
A)Yes I am using a QDialog, but not standard OK/Cancel Buttonset. But I also
tried this out. I tried the accepted/recected slots and the methods quit()
and close(). In every case it closes down the whole application instead of
only the dialog window. Theres also no error message, it regularly closes
the whole programm. That really sucks.
B)The setModal() function I also tried out but it does nothing. The
application I started the dialog from doens't care about. But as soon as I
try working in the application with my dialog opened it crashes.
Thats really bad, because like this, the dialog I've written for the last
two weeks is completely useless. :-(
Darryl Wallace wrote:
> I'm assuming you're using a QDialog.
> A)If it's a standard dialog (with OK/Cancel) then I usually use the
> accept()/reject() slots on the dialog. These close the dialog and
> return the status of the dialog upon exit (accepted or rejected).
> B) I would guess that you don't want the dialog to be modal. this way
> you can still interact with the application that called it. Use the
> method on the dialog, setModal(False) to turn off modality.
> andYpsilon wrote:
>> Hi! I am starting a PyQt dialog from inside an application (The
>> package Nuke from The Foundry) to use the application specific python
>> The problem is, as soon as I am in the main event loop, Nuke crashes when
>> doing something outside of the dialog. This would be somehow OK, if the
>> quit() or the exit() function wouldn't quit the whole application instead
>> only closing the dialog window.
>> Does anyone know how to: A) -Quit a dialog without quitting the
>> from which the dialog was startetd??
>> or B) How to run the main event loop that the application from whioch the
>> dialog was started can still be used??
>> a desperate andy
> PyQt mailing list PyQt at riverbankcomputing.com
View this message in context: http://www.nabble.com/Using-PyQt-within-an-application-tp18988310p18990691.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt