Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Platform variables.. Where

Platform variables.. Where

Scheduled Pinned Locked Moved Unsolved General and Desktop
platform
1 Posts 1 Posters 735 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fra87
    wrote on 7 Jul 2016, 15:24 last edited by
    #1

    Hello
    I have a small question which I'm pretty sure has a simple answer, but I couldn't find it.
    I know that there are different ways to "force" platform variables. For instance you can write a qt.conf file to deploy with the application to change variables.

    Ok, so.. What are all the possibilities? Up to now I know the qt.conf method and passing the -platform argument to the application. But.. Is there a way to "override" the defaults directly in the application at compile time?

    I mean.. for instance on windows the dpiawareness is set to 2 as default. So if I want to set it to 1, I can:

    1. call the program as myprogram.exe -platform windows:dpiawareness=1
    2. create a qt.conf file and write in it something (more on this later)

    But what if I want to set it to 1 as default? Can I "embed" this in the application and then, if the user wants a different behavior, make him use one of the former methods?

    As for the qt.conf file, is this right?

    [Platforms]
    WindowsArguments = dpiawareness=1

    1 Reply Last reply
    0

    1/1

    7 Jul 2016, 15:24

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved