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. [Solved] QML FileDialog preset save name.

[Solved] QML FileDialog preset save name.

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

    Hey!

    So I've got a program where you load a text file. Later, when you have edited the file, I want to save it, so I use the FileDialog. But I want the text field where the user is supposed to enter a filename to be preset by me, as a suggestion. Because it is important that the original file and the edited file has the same name, only in different dialogs. So yeah, how can I access that textfield and preset it?

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      AFAIK, there's no way to preset the filename in the current implementation of FileDialog.
      Have a look at "advanced-filedialog-in-qml":https://www.kullo.net/blog/advanced-filedialog-in-qml/ instead. It also has a demo application.

      157

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skammers
        wrote on last edited by
        #3

        Thanks! That seems to be what Im looking for.

        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