Results 1 to 4 of 4

Thread: Getting QApplication instance from the executable

  1. #1
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Smile Getting QApplication instance from the executable

    Hi,

    I have a query regarding getting QApplication/QCoreApplication handle while executing any of the Qt based executable. I mean, if exe is built and users executes it, and I want to get QApplication/QCoreApplication handle of that executable in another application.
    I do not know whether it is feasible.

    Or please suggest if any alternatives too.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Getting QApplication instance from the executable

    You can't.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Getting QApplication instance from the executable

    Quote Originally Posted by wysota View Post
    You can't.
    i was just thinking for so long how to say this to him.

  4. #4
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Smile Re: Getting QApplication instance from the executable

    Oh!! ok. Thanks for the reply. I just thought whether is there any way to reconstruct the object.

Similar Threads

  1. Replies: 1
    Last Post: 7th August 2008, 13:46
  2. QApplication focus from other friend instance
    By patrik08 in forum Qt Programming
    Replies: 0
    Last Post: 9th June 2008, 12:42
  3. Share QApplication instance (exe and dll)
    By cquinones in forum Qt Programming
    Replies: 11
    Last Post: 18th October 2007, 18:10
  4. QApplication instance
    By nile.one in forum Qt Programming
    Replies: 9
    Last Post: 5th October 2007, 12:06
  5. Replies: 2
    Last Post: 16th March 2007, 09:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.