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. No folder translation with non native file dialogs
Forum Updated to NodeBB v4.3 + New Features

No folder translation with non native file dialogs

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

    Hello,

    I've created a class inheriting of QtFileDialog, named MyDialog. I use it to show custom widgets in the file dialogs of my app, for example when asking the user to choose a file to open.

    When I'm not using setOption(QFileDialog::DontUseNativeDialog); in the MyDialog constructor, I can't see my custom widgets as the file dialog shown is the Microsoft Windows native one, but Windows default folders names are correctly translated in my local language (French), ie "Desktop" is "Bureau", "Downloads" is "Téléchargements".

    However, when I'm using setOption(QFileDialog::DontUseNativeDialog); to show my custom file dialog, Windows default folders names are not translated, ie "Desktop" is shown as "Desktop".

    In both cases the labels are correctly translated, ie "Open" is "Ouvrir", ...

    I'd like to show my custom file dialog with its widgets, AND to have the correct windows folders names translations. How to achieve that ?

    I'm on Windows and using Qt 5.11.

    Thanks !

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I think you are hitting this
      https://stackoverflow.com/questions/8906944/qfiledialog-localization
      so try to load the french translations provided by Qt.

      1 Reply Last reply
      1

      • Login

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