![]() |
Wireshark
4.3.0
The Wireshark network protocol analyzer
|
The WiresharkFileDialog class. More...
#include <wireshark_file_dialog.h>
Public Member Functions | |
WiresharkFileDialog (QWidget *parent=nullptr, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString()) | |
The WiresharkFileDialog class.
Qt <= 5.9 supports setting old (Windows 8.1) per-monitor DPI awareness via Qt:AA_EnableHighDpiScaling. We do this in main.cpp. In order for native dialogs to be rendered correctly we need to set per-monitor v2 awareness prior to creating the dialog. Qt doesn't render correctly when per-monitor v2 awareness is enabled, so we need to revert our thread context when we're done. The class functions below are simple wrappers around their QFileDialog equivalents that set PMv2 awareness before showing native dialogs on Windows and resets it afterward.