Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Customize FileDialog's button text
Forum Updated to NodeBB v4.3 + New Features

Customize FileDialog's button text

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 809 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.
  • DenverCoder21D Offline
    DenverCoder21D Offline
    DenverCoder21
    wrote on last edited by
    #1

    I use a QML FileDialog to let the user select a folder (e.g. download folder). On OSX the opened FileDialog only offers "Open" as a button text, but I would like to have it say "Select", since I'm selecting a folder and don't open a file.
    I have set the "selectFolder" property to true. What should I do?

    raven-worxR 1 Reply Last reply
    0
    • DenverCoder21D DenverCoder21

      I use a QML FileDialog to let the user select a folder (e.g. download folder). On OSX the opened FileDialog only offers "Open" as a button text, but I would like to have it say "Select", since I'm selecting a folder and don't open a file.
      I have set the "selectFolder" property to true. What should I do?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @DenverCoder21
      you can't. While it would be generally possible - at least using the Windows API - to set the button text, the Qt API doesn't provide this yet.

      You can file a request/widh for implementation using the Qt bugreport system.
      If there isn't one already.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • DenverCoder21D Offline
        DenverCoder21D Offline
        DenverCoder21
        wrote on last edited by
        #3

        Too bad. I file it, who knows maybe it's interesting for somebody else, too. Thanks for your answer.

        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