[GH-ISSUE #117] Warnings when initialize FileDialog #70

Closed
opened 2026-05-05 11:03:25 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @Chukak on GitHub (Apr 7, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/117

For example, my code in Main.qml

Components.FilesDialog
{
    id: filesDialog
}

And FilesDialog.qml

FileDialog 
{
    id: filesDialog
    // ...
}

When i launch the app, i get two warnings

.../.nuget/packages/qml.net.linuxbinaries/0.7.0/runtimes/linux-x64/native/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1
.../.nuget/packages/qml.net.linuxbinaries/0.7.0/runtimes/linux-x64/native/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain")

Version of qmlnet: 0.7.0

Originally created by @Chukak on GitHub (Apr 7, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/117 For example, my code in `Main.qml` ``` Components.FilesDialog { id: filesDialog } ``` And `FilesDialog.qml` ``` FileDialog { id: filesDialog // ... } ``` When i launch the app, i get two warnings ``` .../.nuget/packages/qml.net.linuxbinaries/0.7.0/runtimes/linux-x64/native/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1 .../.nuget/packages/qml.net.linuxbinaries/0.7.0/runtimes/linux-x64/native/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain") ``` Version of qmlnet: `0.7.0`
gitea-mirror 2026-05-05 11:03:25 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@MaxMommersteeg commented on GitHub (Apr 8, 2019):

I was able to reproduce the warnings on my Windows machine. Qml's FileDialog component uses the QQControlsFileDialog section of the application-specific QSettings. AFAIK we currently don't support configuring these settings.

More: https://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html#details

<!-- gh-comment-id:481012193 --> @MaxMommersteeg commented on GitHub (Apr 8, 2019): I was able to reproduce the warnings on my Windows machine. Qml's `FileDialog` component uses the `QQControlsFileDialog` section of the application-specific `QSettings`. AFAIK we currently don't support configuring these settings. More: https://doc.qt.io/qt-5/qml-qtquick-dialogs-filedialog.html#details
Author
Owner

@Chukak commented on GitHub (Apr 9, 2019):

Ok, now i know what reproduces these warnings.
Thanks for your reply!

<!-- gh-comment-id:481172133 --> @Chukak commented on GitHub (Apr 9, 2019): Ok, now i know what reproduces these warnings. Thanks for your reply!
Author
Owner

@MaxMommersteeg commented on GitHub (Apr 9, 2019):

Not sure if we should close this issue just yet. I think we need to support this. What do you think @pauldotknopf ?

<!-- gh-comment-id:481176688 --> @MaxMommersteeg commented on GitHub (Apr 9, 2019): Not sure if we should close this issue just yet. I think we need to support this. What do you think @pauldotknopf ?
Author
Owner

@pauldotknopf commented on GitHub (Apr 9, 2019):

Yeah, this needs to be done IMO.

<!-- gh-comment-id:481226355 --> @pauldotknopf commented on GitHub (Apr 9, 2019): Yeah, this needs to be done IMO.
Author
Owner

@Diviis commented on GitHub (Dec 21, 2020):

I have the same issue, on Windows with MSVC 2019 compiler (32 and 64 bits).

Application ouput :
file:///F:/QtOnline/5.15.2/msvc2019/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1 file:///F:/QtOnline/5.15.2/msvc2019/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain")

main.qml :
`import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs 1.2

ApplicationWindow {
width: 1280
height: 720
visible: true

FileDialog {

    title: "Please choose a file"
    folder: shortcuts.home
    onAccepted: {
        console.log("You chose: " + fileDialog.fileUrls)

    }
    onRejected: {
        console.log("Canceled")

    }
    Component.onCompleted: visible = true
}

}
`

<!-- gh-comment-id:748989110 --> @Diviis commented on GitHub (Dec 21, 2020): I have the same issue, on Windows with MSVC 2019 compiler (32 and 64 bits). Application ouput : `file:///F:/QtOnline/5.15.2/msvc2019/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: Failed to initialize QSettings instance. Status code is: 1 file:///F:/QtOnline/5.15.2/msvc2019/qml/QtQuick/Dialogs/DefaultFileDialog.qml:102:33: QML Settings: The following application identifiers have not been set: QVector("organizationName", "organizationDomain")` main.qml : `import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Dialogs 1.2 ApplicationWindow { width: 1280 height: 720 visible: true FileDialog { title: "Please choose a file" folder: shortcuts.home onAccepted: { console.log("You chose: " + fileDialog.fileUrls) } onRejected: { console.log("Canceled") } Component.onCompleted: visible = true } } `
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#70
No description provided.