#include #include #include int main(int argc, char *argv[]) { // non-integer device-pixel ratio causes problems QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); // application QApplication app(argc,argv); // tested on 4K screen under Windows 10 with a device pixel ratio 1.5 // resize the dialog to see the left edge of the right panel disappear when // shown on screen with non-integer device pixel ratio QFileDialog filedialog; filedialog.setOption(QFileDialog::DontUseNativeDialog,true); filedialog.show(); return QApplication::exec(); }