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. QFileDialog error with path containing accents

QFileDialog error with path containing accents

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

    Hi,

    I've got an error with QFileDialog, whom I'm not sure to be the responsible : my Windows session's name has the misfortune of containing one accent, and every path containing it is not accessible. Instead I have a large MessageBox error.

    To be concrete, if I try to access my desktop folder through a QFileDialog (URL: "C:/Users/Clément/Desktop"), I get an error explaining me that the URL "C:/Users/Cl,ment/Desktop" doesn't exist. You could notice that "é" has been replaced by ",". I searched if someone had the same problem, but obviously I am the only idiot who put an accent in his session's name.

    As I haven't the pretention to say that I'm totally sure this is a problem coming from the framework, I prefer ask before if anyone knows a fix to my problem.

    Thanks for your future replies.

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

      Hi,

      Could you try setting a proper "locale":http://doc.qt.io/qt-5/qlocale.html#setDefault and test again?

      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