module "QtQuick.Dialogs.qml" version 1.5 is not installed
-
wrote on 11 Jan 2021, 10:56 last edited by
This is the error message I get. I have installed all the possible components through the Qt maintenance app, but still getting the error. I can't find any information online on how to Install the QtQuick Dialogs component.
Every response is welcome.
Thanks in advance.
-
Hi and welcome to devnet,
Which version of Qt did you install ?
On which OS ? -
wrote on 11 Jan 2021, 13:13 last edited by
Hi,
Thanks for your fast response.
I'm new to Qt so I just installed the latest 6.0.1.
on windows 10. -
AFAIK, you can drop the version numbering with Qt 6.
-
wrote on 11 Jan 2021, 19:08 last edited by
What do you mean?
-
I may have misunderstood your issue, but you are mentioning a version number. So it looks like you have an import statement with that version number that is failing and thus I suggest that you remove the number.
-
wrote on 11 Jan 2021, 19:19 last edited by
Hi,
Alright, I tested it, it happens with 1.1, 1.2, 1.3, 1.4, and 1.5.
It does not give me an error with Dialogs version 1.0, but with this version, I get another error.
When I use the component 'FileDialog', It says 'Unknown component'.Any idea why this is happening?
-
Sorry, my bad, I had mixed it with another module.
From the current checklist it seems not to be there yet.
-
wrote on 11 Jan 2021, 20:05 last edited by
So, Dialogs is not yet included in version 6, if I understand right?
-
It's all explained in the page I linked.
-
wrote on 12 Jan 2021, 06:43 last edited by
First of all, Thank you so much for your help.
I read through the link you sent.
I kinda really need the FileDialog component.
In the document, they explain that FileDialog is still part of Quick Controls 1. If I just import it, it doesn't work. I installed the last Qt 5, still the 'unknown component' error.In short: I am creating a small text editor and need to be able to import text files from my computer. How do I do this if FileDialog is not available?
Thanks in advance.
-
Might be a silly question but did you check whether it's an additional checkbox for you to select ?
-
wrote on 12 Jan 2021, 18:19 last edited by
If you mean a checkbox in the installation process, yes I have checked if there was one, I didn't found one so I just installed the whole Qt 5.15. But even then, nothing works.
-
Might be a silly question but did you check whether it's an additional checkbox for you to select ?
wrote on 14 Jan 2021, 12:14 last edited by -
Can you test this example ?
-
wrote on 16 Jan 2021, 17:53 last edited by
@leon-missoul import Qt.labs.platform 1.1
-
First of all, Thank you so much for your help.
I read through the link you sent.
I kinda really need the FileDialog component.
In the document, they explain that FileDialog is still part of Quick Controls 1. If I just import it, it doesn't work. I installed the last Qt 5, still the 'unknown component' error.In short: I am creating a small text editor and need to be able to import text files from my computer. How do I do this if FileDialog is not available?
Thanks in advance.
wrote on 21 Sept 2021, 15:33 last edited by FlashJackHi @leon-missoul !
I was facing the same problem using Pyqt6 with the Qml application. I really needed a File Dialog.
After a hour of research and experimenting, I found the solution, its quite easy:from PyQt6.QtWidgets import QFileDialog class YourClass(): ... def your_function(self): path_open = QFileDialog.getOpenFileName(None, 'Open file') files_types = "GML (*.gml);;Pickle (*.pickle);;YAML (*.yml)" path_save = QFileDialog.getSaveFileName(None, 'Save file', filter=files_types) ....