Results 1 to 5 of 5

Thread: QApplication Instance Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QApplication Instance Error

    I figured out the issue, and solution. Nuke doesn't allow multiple instances.
    I had to omit line 1, 2, and 5.

    Not sure exactly why this works...but Nuke had issues calling those lines from inside a function. So instead of calling the function, I just call window.show()

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,316
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QApplication Instance Error

    Nuke doesn't allow multiple instances.
    No, it is the Qt runtime that doesn't allow multiple QApplication instances. Nuke uses Qt and created the QApplication instance when it started up. If you are adding PyQt code to be used within Nuke, then you cannot create another QApplication instance, but must use the one already created.

  3. #3
    Join Date
    Feb 2016
    Location
    Venice, California
    Posts
    87
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QApplication Instance Error

    Yes, thank you! That's what I meant to say, but couldn't find the right words.

Similar Threads

  1. Replies: 2
    Last Post: 1st August 2011, 06:30
  2. Getting QApplication instance from the executable
    By nikhilqt in forum Qt Programming
    Replies: 3
    Last Post: 7th July 2009, 10:16
  3. QApplication focus from other friend instance
    By patrik08 in forum Qt Programming
    Replies: 0
    Last Post: 9th June 2008, 12:42
  4. Share QApplication instance (exe and dll)
    By cquinones in forum Qt Programming
    Replies: 11
    Last Post: 18th October 2007, 18:10
  5. QApplication instance
    By nile.one in forum Qt Programming
    Replies: 9
    Last Post: 5th October 2007, 12:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.