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. QtUrl problem with Windows 7 - 64 bit
Forum Updated to NodeBB v4.3 + New Features

QtUrl problem with Windows 7 - 64 bit

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • V Offline
    V Offline
    vsthakur1
    wrote on last edited by
    #1

    Our application is a 32 bit application . When it is installed in windows 7 64bit, typically it install at "C:\Program Files (x86)" location, instead of ""C:\Program Files". We are constructing a Url based on the install location and and pass it around as a part of web service.The way , we are constructing the Url is like this -
    ppmPath = "http://" + ipAddress + ":13007/" + folder + ".ppm" + "?filePath=" + applicationDirPath + "/" + FIRMWARE;
    QUrl ppmURL( ppmPath, QUrl::TolerantMode );
    ppmPath = QString( ppmURL.toEncoded() );

    The variable types and meaning are usual.
    Since "applicationDirPath" for Windows 7 64 bit contains one closing bracket ")" -for "(x86) substring - apparently the URL is broken. If we install it to any other location, it works perfectly, even though the location has any other special character.
    How to deal with ")" character in the URL , so that is is not broken ?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Code_ReaQtor
      wrote on last edited by
      #2

      [quote author="vsthakur1" date="1352770236"]
      How to deal with ")" character in the URL , so that is is not broken ?
      [/quote]

      Have you tried adding backslash ("") before it? e.g. ")".
      There are instances that we need to add "" when dealing with special characters.

      Please visit my open-source projects at https://github.com/Code-ReaQtor.

      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