Results 1 to 3 of 3

Thread: HELP! problem about QLibrary::load() on Linux. It is stuck

  1. #1
    Join Date
    Apr 2012
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default HELP! problem about QLibrary::load() on Linux. It is stuck

    hi~
    I have a program which loads dynamic library . Also, the dynamic library depends on some other dynamic libraries.
    But when I use the QLibrary::load() function, the program is dead or stuck.

    I think the load function should return something if there is something wrong. But it just stuck

    so , I wonder what the load() function do, and why it is stuck.
    My Compile and run environment is Linux (red hat)

    Thanks very much, I will wait for your answer on line.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: HELP! problem about QLibrary::load() on Linux. It is stuck

    You could see if you get any further hints when you run your application after exporting the following environment variable
    Qt Code:
    1. export QT_DEBUG_PLUGINS=1
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: HELP! problem about QLibrary::load() on Linux. It is stuck

    QLibrary::load() returns a bool to indicate success. If the return is false then QLibrary::errorString() is supposed to give some clue as to why the load failed.

Similar Threads

  1. QLibrary::load: The specified module could not be found
    By mentalmushroom in forum Qt Programming
    Replies: 5
    Last Post: 13th November 2013, 16:32
  2. QLibrary load inside class
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2012, 09:43
  3. QLibrary resolve problem
    By Nippler in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2008, 15:37
  4. The problem with QLibrary, help me!
    By dungsivn in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2008, 14:03
  5. Replies: 4
    Last Post: 7th March 2006, 08:52

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