[GH-ISSUE #111] High Dpi Scaling #67

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

Originally created by @tezine on GitHub (Mar 14, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/111

Hi, is it possible to enable High DPI Scaling, like QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); ?

Originally created by @tezine on GitHub (Mar 14, 2019). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/111 Hi, is it possible to enable High DPI Scaling, like QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); ?
gitea-mirror 2026-05-05 11:03:13 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@MaxMommersteeg commented on GitHub (Mar 14, 2019):

Not implemented yet iirc, see: https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/QCoreApplication.cs

<!-- gh-comment-id:472955989 --> @MaxMommersteeg commented on GitHub (Mar 14, 2019): Not implemented yet iirc, see: https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/QCoreApplication.cs
Author
Owner

@pauldotknopf commented on GitHub (Mar 14, 2019):

Yup, not done yet. Very easy to do. I'll likely squeeze it in next time I do a release.

<!-- gh-comment-id:473038799 --> @pauldotknopf commented on GitHub (Mar 14, 2019): Yup, not done yet. Very easy to do. I'll likely squeeze it in next time I do a release.
Author
Owner

@vadi2 commented on GitHub (May 18, 2019):

For anyone else looking:

    RuntimeManager.DiscoverOrDownloadSuitableQtRuntime();

    QGuiApplication.SetAttribute(Qml.Net.ApplicationAttribute.EnableHighDpiScaling, true);

    using (var app = new QGuiApplication(args))
    {

List of flags can be found here.

<!-- gh-comment-id:493643185 --> @vadi2 commented on GitHub (May 18, 2019): For anyone else looking: ```csharp RuntimeManager.DiscoverOrDownloadSuitableQtRuntime(); QGuiApplication.SetAttribute(Qml.Net.ApplicationAttribute.EnableHighDpiScaling, true); using (var app = new QGuiApplication(args)) { ``` List of flags can be found [here](https://github.com/qmlnet/qmlnet/blob/develop/src/net/Qml.Net/ApplicationAttribute.cs).
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#67
No description provided.