How to use QML to implement the standard dialog like QFileDialog , QColorDialog
-
hi guys , do you have solutions for this now ?
-
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...
-
thank you , Vijay , I will try qt-components , I hope it has
-
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.
-
It seems currently we can only use Qt C++ to call the standard dialog from QML , no QML components to replace standard dialogs .
-
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. -
you can subclass QFileDialog and use stylesheets to change the style to your fancy appearance .
-
Thanks...Good idea but may takes more time....Happy Mid-Autumn Festival.
-
KmPlayer harmattan port seems to have implemented File dialog in QML, Looks like it can be reused quite easily.
check out code from here.
-
wow , that is really cool , I will check it , thanks , kunal ~~