Results 1 to 3 of 3

Thread: How to determin the build-combinations of a given Qt app

  1. #1
    Join Date
    Oct 2015
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Question How to determin the build-combinations of a given Qt app

    Hi All,

    Given a Qt application executable (i.e., a Qt Windows application), is there any way we can determine, electronically, what Qt library version was used (i.e., if version 5.5.1 or 5.6.0 was used and also, if 32-bit or 64-bit version of it used) to compile the app and also, which C++ compiler was used to compile the app, etc.? Additionally, if the Qt libraries are statically linked with the app or not?

    This is a new dilemma that we are facing now, as we get to the task of maintaining multiple versions of Qt based application builds! Appreciate any input you may have on this topic very much.

    Thanks,
    -Channa.

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

    Default Re: How to determin the build-combinations of a given Qt app

    Quote Originally Posted by Channa View Post
    Hi All,

    Given a Qt application executable (i.e., a Qt Windows application), is there any way we can determine, electronically, what Qt library version was used (i.e., if version 5.5.1 or 5.6.0 was used and also, if 32-bit or 64-bit version of it used) to compile the app and also, which C++ compiler was used to compile the app, etc.? Additionally, if the Qt libraries are statically linked with the app or not?
    You can determine the compiler family used, you can determine whether the app is 32 or 64 bit. You cannot reliably determine the version of Qt the app was compiled against. However if you assume the app has been compiled against Qt version that was deployed with it, you can inspect the library itself and it should have all the information you want (maybe apart detailed compiler info).
    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
    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: How to determin the build-combinations of a given Qt app

    The version of the Qt Library, if not in the filename, should be extracable from the library fike.

    When run
    Qt Code:
    1. strings libQtCore.so | grep -i version
    To copy to clipboard, switch view to plain text mode 
    I get, among other things
    This is the QtCore library version 4.8.7
    As for static vs. dynamic, that can probably be queried with a Windows tool that does what ldd does on Unix, i.e. show the DLL dependencies.

    Cheers,
    _

Similar Threads

  1. QWidget::eventFilter() not catching key combinations
    By derrickbj in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2013, 03:54
  2. Using Qt to generate stringlist combinations
    By kalma in forum Qt Programming
    Replies: 4
    Last Post: 22nd March 2012, 04:33
  3. Keyboard combinations in QTableWidget
    By enricong in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2011, 13:29
  4. Replies: 26
    Last Post: 12th April 2011, 14:06
  5. Capture key & key combinations from keyboard
    By aikidorb in forum Qt Programming
    Replies: 3
    Last Post: 5th June 2010, 13:13

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.