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. Add Item to FileDialog?
QtWS25 Last Chance

Add Item to FileDialog?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.1k 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.
  • H Offline
    H Offline
    HennsWoerst
    wrote on last edited by
    #1

    Hi!

    In the application I am developing I would like to have a FileDialog which has an ExlusiveGroup with Radiobuttons on the right side to specify some import options. I tried to access and modify the source code of DefaultFileDialog.qml but I have troubles compiling the project, mainly because AbstractFileDialog is not known. I have tried copying files from "/opt/Qt/5.3/Src/qtquickcontrols/src/dialogs" to my project sources, I have tried to register AbstractFileDialog with "qmlRegisterType" and I have tried to import the whole "dialogs" folder, but it seems that I am not able to get this working. I would really appreciate a hint what I can do to realize this.

    Thank you.

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

      Hi,

      AFAIK it's cumbersome to customize the existing FileDialog and also you need to check about the modification of existing source code in terms of licensing issues. To get a real concrete response you can ask the Qt developers themselves on mailing list or IRC.
      Apart from that, to create a simple customized FileDialog it would be better to create your own FileDialog based on QAbstractListModel if you are familiar with C++ part.

      157

      1 Reply Last reply
      0
      • H Offline
        H Offline
        HennsWoerst
        wrote on last edited by
        #3

        Ok, I will figure something out. Thank you.

        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