mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[PR #83] [CLOSED] Support for QApplication. #199
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#199
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?
📋 Pull Request Information
Original PR: https://github.com/qmlnet/qmlnet/pull/83
Author: @MaxMommersteeg
Created: 12/6/2018
Status: ❌ Closed
Base:
develop← Head:feature/support-qapplication📝 Commits (3)
43a22ecWork in progress on supporting QApplication.92e575dSet QApplication to interop.4d5eafaCorrected incorrect variable name.📊 Changes
7 files changed (+367 additions, -2 deletions)
View changed files
📝
src/native/QmlNet/Hosting/CoreHost.cpp(+85 -0)📝
src/native/QmlNet/Hosting/CoreHost.h(+3 -0)➕
src/native/QmlNet/QmlNet/qml/QApplication.cpp(+79 -0)➕
src/native/QmlNet/QmlNet/qml/QApplication.h(+28 -0)📝
src/native/QmlNet/QmlNet/qml/qml.pri(+2 -0)📝
src/net/Qml.Net/Internal/Interop.cs(+6 -2)➕
src/net/Qml.Net/QApplication.cs(+164 -0)📄 Description
PR for issue https://github.com/qmlnet/qmlnet/issues/73.
Some classes are still using QGuiApplication:
Hosts.cs(Qml.Net project)BaseQmlTests.cs(Qml.Net.Tests)Should
QApplicationbe the default in all tests? Or should I add seperate tests forQApplicationand test both?The
runfunction in CoreHost.cpp is almost an exact copy. Perhaps we could remove one, re-use part of the method or allow passing in a more generic (base type or interface) QGuiApplication/QApplication.Perhaps
QApplication.csandQGuiApplication.cscould implement an interface namedIQCoreApplication?All feedback is welcome, since C++ is not my main language.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.