Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using qt.conf
Qt 6.11 is out! See what's new in the release blog

Using qt.conf

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redlars
    wrote on last edited by
    #1

    In this "document":http://doc.qt.nokia.com/4.7-snapshot/qt-conf.html

    bq.
    QLibraryInfo will load qt.conf from one of the following locations:

    1. :/qt/etc/qt.conf using the resource system
    2. on Mac OS X, in the Resource directory inside the appliction bundle, for example assistant.app/Contents/Resources/qt.conf
    3. in the directory containing the application executable, i.e. QCoreApplication::applicationDirPath() + QDir::separator() + "qt.conf"

    The description of the first item is a bit unclear to me.

    The understanding I have of the resource system is a way to embedding binary data like images into a executable. So with that context, are they say Qt will look inside the executable embedded data for the qt.conf file? Is the path ":/qt/etc/qt.conf" the location inside the executable where qt.conf must be stored?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lycis
      wrote on last edited by
      #2

      The Qt resource system allows you to embed a kind of virtual filesystem within the binary. The path ":qt/etc/qt.conf" does extactly mean what you're suspecting:

      QLibraryInfo first looks inside the embedded data if the "virtual filesystem" contains a file qt.conf in the path qt/etc/qt.conf - so yes that's the path "inside the executable" the file has to be stored.

      Mayby this one will help you a bit on this topic: "Qt Resource System":http://qt-project.org/doc/qt-4.8/resources.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved