Forums

OverviewFelgo 2 Support (Qt 5) › Qt::AA_EnableHighDpiScaling and Navigation bar height

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20409

    Marek

    Hi

    I have noticed that if I set in main.cpp

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    and in Main.qml I use Navigation with NavigationItem what I see on Android telephone is top menu being unnaturally high. I mean it is 30-40% higher than normal, on some devices (dont remember the name, phone with round screen at the edges) it looks really bad like navigation menu being 2 times higher.

    I’m not sure but it looks like a bug to me because top menu is higher but icons stays the same it just creates empty space above navigation icon.

    Best,

    Marek

    #20430

    Günther
    Felgo Team

    Hi Marek,

    even before Qt introduced the Qt::AA_EnableHighDpiScaling setting, Felgo allowed to create density-independent controls and layouts using the App::dp function. You have full control over which UI elements use density-independent or e.g. responsive sizes. To avoid issues or conflicts, we thus recommend to not use the AA_EnableHighDpiScaling setting in Felgo apps.

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support