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. QProcess with DPI issues.

QProcess with DPI issues.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 190 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.
  • Z Offline
    Z Offline
    ZeusFa
    wrote on last edited by ZeusFa
    #1

    When external abc.exe is started through the QProcess startDetached() method, the dpi of abc.exe will become very large. How can we prevent abc.exe from being affected by the DPI setting of its own exe?

    Through the following QProcess method, I can successfully start the external abc.exe program, but there is a problem because my own exe sets the DPI:

    QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
    Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
    
    QProcess *process = new QProcess(this);
    process->setProgram(str_Path); //str_Path --> "D:/test/abc.exe"
    process->setWorkingDirectory(info.path());  //info.path() --> "D:/test"
    bool is_start = process->startDetached();
    
    faduF 1 Reply Last reply
    0
    • Z ZeusFa

      When external abc.exe is started through the QProcess startDetached() method, the dpi of abc.exe will become very large. How can we prevent abc.exe from being affected by the DPI setting of its own exe?

      Through the following QProcess method, I can successfully start the external abc.exe program, but there is a problem because my own exe sets the DPI:

      QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
      Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
      
      QProcess *process = new QProcess(this);
      process->setProgram(str_Path); //str_Path --> "D:/test/abc.exe"
      process->setWorkingDirectory(info.path());  //info.path() --> "D:/test"
      bool is_start = process->startDetached();
      
      faduF Offline
      faduF Offline
      fadu
      wrote on last edited by
      #2

      @ZeusFa
      Hi
      Can you share screenshot explaining that

      1 Reply Last reply
      0

      • Login

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