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. How to use QML to implement the standard dialog like QFileDialog , QColorDialog
Forum Updated to NodeBB v4.3 + New Features

How to use QML to implement the standard dialog like QFileDialog , QColorDialog

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 4 Posters 8.5k 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
    brucewuu
    wrote on last edited by
    #1

    hi guys , do you have solutions for this now ?

    wish all the best to you from
    bruce wuu
    Autodesk China Inc.
    SW Developer
    M&E Product Developerment Group
    Work 137 6411 8921
    bruce.wu@autodesk.com

    1 Reply Last reply
    0
    • T Offline
      T Offline
      thisisbhaskar
      wrote on last edited by
      #2

      You will have to start from scratch if you want to write your own dialogs which may not be so easy. Did you try qt quick components to see if these widgets are available...

      http://bugreports.qt.nokia.com/browse/QTCOMPONENTS

      http://developer.qt.nokia.com/wiki/Qt_Quick_Components

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brucewuu
        wrote on last edited by
        #3

        thank you , Vijay , I will try qt-components , I hope it has

        wish all the best to you from
        bruce wuu
        Autodesk China Inc.
        SW Developer
        M&E Product Developerment Group
        Work 137 6411 8921
        bruce.wu@autodesk.com

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shouwu
          wrote on last edited by
          #4

          any updates....I encountered same problem, but have no idea to open file dialog using QML. It is no point to re-invent it since the dialog is instead created by OS under the table.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            brucewuu
            wrote on last edited by
            #5

            It seems currently we can only use Qt C++ to call the standard dialog from QML , no QML components to replace standard dialogs .

            wish all the best to you from
            bruce wuu
            Autodesk China Inc.
            SW Developer
            M&E Product Developerment Group
            Work 137 6411 8921
            bruce.wu@autodesk.com

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shouwu
              wrote on last edited by
              #6

              Hi BruceWuu, Thanks for your reply....
              It is quite sad to hear that.... the standard dialog is in different style from the QML fancy appearance.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                brucewuu
                wrote on last edited by
                #7

                you can subclass QFileDialog and use stylesheets to change the style to your fancy appearance .

                wish all the best to you from
                bruce wuu
                Autodesk China Inc.
                SW Developer
                M&E Product Developerment Group
                Work 137 6411 8921
                bruce.wu@autodesk.com

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shouwu
                  wrote on last edited by
                  #8

                  Thanks...Good idea but may takes more time....Happy Mid-Autumn Festival.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kunal_the_one
                    wrote on last edited by
                    #9

                    KmPlayer harmattan port seems to have implemented File dialog in QML, Looks like it can be reused quite easily.

                    check out code from here.

                    https://garage.maemo.org/frs/?group_id=42

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      brucewuu
                      wrote on last edited by
                      #10

                      wow , that is really cool , I will check it , thanks , kunal ~~

                      wish all the best to you from
                      bruce wuu
                      Autodesk China Inc.
                      SW Developer
                      M&E Product Developerment Group
                      Work 137 6411 8921
                      bruce.wu@autodesk.com

                      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