[hpsdr] powerSDR and High resolution

W2GPS w2gps at cnssys.com
Tue Jun 27 07:31:45 PDT 2017


Brian,

I had the same problem. This applies to all high-resolution displays,
including Mac Retina, 4K-UHD, True-4K, 8K-UHD, and True-8K. As the very
first command in the main.cpp file, enter this:

#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
    // see https://doc-snapshots.qt.io/qt5-5.9/highdpi.html
    qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#else
     // see http://doc.qt.io/qt-5/highdpi.html
     qputenv("QT_DEVICE_PIXEL_RATIO", "auto");
#endif

I am converting a very large program to Qt 5.9 and it begins very simply
with the routine:

#include "MainWindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}

Rick
W2GPS

-----Original Message-----
From: Hpsdr [mailto:hpsdr-bounces at lists.openhpsdr.org] On Behalf Of Brian D.
Comer
Sent: June 27, 2017 10:08 AM
To: hpsdr at lists.openhpsdr.org
Subject: [hpsdr] powerSDR and High resolution

***** High Performance Software Defined Radio Discussion List *****

What do I need to do to get powerSDR to run on a high resolution display.
Both HPSDR and flex fail to give a readable display. 

I note in some Qt references it implies that the later versions will work
with HRDs. Do I need to recompile with a later version of Qt?





More information about the Hpsdr mailing list