Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Why are spaces not permitted in paths to the installation directory?
Forum Update on Monday, May 27th 2025

Why are spaces not permitted in paths to the installation directory?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.6k Views
  • 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.
  • M Offline
    M Offline
    musiclover1966
    wrote on last edited by
    #1

    The source code (installer-framework/src/sdk/installerbasecommons.cpp) disallows spaces in pathnames to the installation target directory:

    QString ambiguousChars = QLatin1String("[~<>|?*!@#$%^&:,; ]");
    

    Why is this so? On Windows installers this doesn't allow placing the installed code in the "ApplicationsDir" directory (e.g. "C:\Program Files" or "C:\Program Files (x86)".

    Why is spaces in pathnames prohibited?

    Is there a workaround to this limitation that allows getting past it?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt Dev Net!

      That sounds like a very strange limitation indeed. You can submit a request to change this behaviour at https://bugreports.qt-project.org/

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Most likely that is due to qmake acting up sometimes when Qt is in a path with spaces.

        Please consider to push a fix into https://codereview.qt-project.org/ and I am sure that will either get accepted or you will get a reply saying why it can not be done.

        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