mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #73] Add support for QApplication. #47
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#47
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 @Nihlus on GitHub (Sep 25, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/73
According to these docs, native look and feel is possible with QML, but only using QApplication and not QGuiApplication.
http://doc.qt.io/qt-5/qtquickcontrols-overview.html
Is this slated to be added to QML.Net?
@pauldotknopf commented on GitHub (Sep 25, 2018):
Hmm.. I didn't realize that.
Yeah, that is an easy add.
@Nihlus commented on GitHub (Sep 25, 2018):
Great!
@Nihlus commented on GitHub (Nov 7, 2018):
Has there been any updates on this?
@pauldotknopf commented on GitHub (Dec 12, 2018):
I've looked at this some more, and I don't think
QApplicationshould be used with QML applications. It is for supportingQWidgets, which Qml.Net shouldn't be used with.@Nihlus commented on GitHub (Dec 12, 2018):
It's the official suggested (and only) way of making a Qml application have
reliable native look & feel, which is a very important consideration for
desktop applications.
Is there any specific reason this can't or won't be supported by Qml.Net?
Personally, not having native look & feel and being forced into a mobile
look on desktop is a showstopper.
On Wed, 12 Dec 2018, 09:00 Paul Knopf <notifications@github.com wrote:
@pauldotknopf commented on GitHub (Dec 12, 2018):
I've created a sample QML app and my styling doesn't change when switching between
QApplicationandQGuiApplication. How exactly doesQApplicationeffect QML applications?@Nihlus commented on GitHub (Dec 12, 2018):
As you've already noted, using QApplication by itself does not change the styling. Rather, it enables native look and feel for the modules that support it - namely, QtQuick.Controls 1, and QWidgets. As far as I can read (although I haven't tested it myself) QtQuick.Controls 2 is explicitly intended to not provide a platform look and feel, but rather provide a uniform look across platforms.
Thus, the intended use case is QApplication along with QtQuick.Controls 1 to build native look and feel UI applications.
@pauldotknopf commented on GitHub (Jan 21, 2019):
This is implemented in develop.
I will update when it is on NuGet.
@Nihlus commented on GitHub (Jan 23, 2019):
Nice!
@gridtech-pl commented on GitHub (Jul 7, 2019):
@Nihlus were you finally able to gain native look and feel?
@Nihlus commented on GitHub (Jul 8, 2019):
I've been waiting on this issue to be updated with a notification that it's on nuget, so not yet.
@vadi2 commented on GitHub (Jul 8, 2019):
I think there's a misunderstanding here. Qt Quick will not give you native desktop widgets.
@Nihlus commented on GitHub (Jul 8, 2019):
QML can use native desktop widgets when using QtQuick.Controls 1 - I use it at work every day in C++.