Results 1 to 12 of 12

Thread: Loading DLL that creates GUI.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading DLL that creates GUI.

    Yes and in it the QApplication is initalized.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Loading DLL that creates GUI.

    so, why do you use QLibrary insted of adding your dll to your project?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading DLL that creates GUI.

    What do you mean ? I want to load it dinamyc at runtime, thats why I use QLibrary to resolve the C exported function and activate the DLL in order to do the stuff.

  4. #4
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading DLL that creates GUI.

    Update: same thing happens on linux (.so). I created new QApplication instance in to the DLL but the event loop located in to the main executable have stucked. Please help.

  5. #5
    Join Date
    Aug 2007
    Posts
    166
    Thanks
    16
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Loading DLL that creates GUI.

    With a 15 pages that the search of the forum returned, I finally found topic that answer to my question:
    http://www.qtcentre.org/forum/f-qt-p...ation-631.html

    The other question is even if I pass the pointer of qApp to the DLL from the interface, how I will be able to set correct pointer to QApplication::instance(), I can't find a set method, tomorow I will try some things... If anyone have an idea in the mean time, please let me know.

Similar Threads

  1. Replies: 1
    Last Post: 28th August 2008, 21:18
  2. QImage not loading successively.
    By node_ex in forum Qt Programming
    Replies: 3
    Last Post: 26th July 2008, 13:20
  3. Pixmap height / width without loading it
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2007, 07:10
  4. Switching static to dynamic ui loading
    By s_a_white in forum Newbie
    Replies: 4
    Last Post: 26th June 2006, 15:57
  5. QSA: loading scripts at runtime
    By seneca in forum Qt Programming
    Replies: 0
    Last Post: 15th February 2006, 15:19

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.