mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #86] Support for Qt Quick Controls 2 Configuration File #54
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#54
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 @TripleWhy on GitHub (Dec 21, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/86
How can I use a Qt Quick Controls 2 Configuration File?
There is no support for the qt resource system, but I can use QT_QUICK_CONTROLS_CONF. It works fine when I specify that as an environment variable for the run configuration in my IDE, but not when I use
System.Environment.SetEnvironmentVariable("QT_QUICK_CONTROLS_CONF", ...);as the first line of C# code.What am I missing?
@pauldotknopf commented on GitHub (Dec 23, 2018):
I've noticed that sometimes, environment variables don't work as expected, unless you use Qt's
qputenvmethod. That method is available in C# usingQt.PutEnv(name, value).Try that and tell me if it works. If not, I'll dig in more.
@TripleWhy commented on GitHub (Dec 23, 2018):
That works a lot better, thanks.