Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58637

allow the location of qt.conf to be specified at runtime

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.8.0 Alpha
    • Core: Other
    • None
    • Windows, Mac

    Description

      Currently, Qt reads the qt.conf file from the location of the application executable. It would be nice if a different location could be specified instead, perhaps via an environment variable (e.g. QT_CONF_FILE).

      Reading it from the location of the application executable is a problem for languages like Python and Julia that load Qt dynamically (and which might load different Qt libraries at runtime depending on how the paths are configured). For example, in Julia we are calling the Python Matplotlib library for plotting, and this in turn loads Qt dynamically via the PyQt5 module. However, Python's qt.conf file is in the location of the Python executable, which is different from that of the Julia executable. Of course, there are workarounds like copying Python's qt.conf to the location of the Julia executable, but this has various shortcomings (the Julia language itself is not shipped with Python or Qt, which are loaded dynamically by a package, the Julia executable may be in a read-only location, and different Julia programs may link to different versions of Python and/or Qt).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            stevengj Steven Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes