mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #183] FileDialog.open() does not work from Qml.Net #119
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#119
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ujjaldas89 on GitHub (Feb 5, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/183
Has FileDialog component has been handled. When I execute filedialog.open in the qml file .net shows as unrecognized command.
@pauldotknopf commented on GitHub (May 30, 2020):
I'm sorry for the delay here. Can you provide more info? What do you mean by "unrecognized command"?
@ujjaldas89 commented on GitHub (Aug 2, 2020):
I figured out a way how to make it work. I am sorry for the delayed response.
@vadi2 commented on GitHub (Aug 2, 2020):
How did you make it work?
@ujjaldas89 commented on GitHub (Aug 2, 2020):
If paul allows. Then I can actually upload my project. This will also add another example project into the repository.
@pauldotknopf commented on GitHub (Aug 2, 2020):
Upload it here, and I'll see if anything should be added to our examples.
@ujjaldas89 commented on GitHub (Aug 16, 2020):
Example Project.zip
@pauldotknopf
I have attached the complete project.
@vadi2
FileDialog { id: fileDialog selectMultiple: true selectExisting: true title: "Choose .tcf file(s)..." **visible: true** nameFilters: [ "Tcf files (*.tcf)" ] onAccepted: fileDialogAccepted(fileDialog.fileUrl, fileDialog.fileUrls) } Component.onCompleted: { console.log("Load completed") **fileDialog.visible = false** }@vadi2 : The problem was if Visible is not set to true the FileDialog.Open won't work. But if Visible is set to true the FileDialog pops up after the Component load is complete. So, after some trial and error, I figured out that is the Visible is set to false on the Component load everything goes back to normal.
I regret the delay in response.