mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 07:04:34 -04:00
Cater for HiDPI display, ticket #257, props bitaround
This commit is contained in:
parent
69876619dd
commit
d00a87c79a
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
Q_INIT_RESOURCE(resources);
|
Q_INIT_RESOURCE(resources);
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x50600
|
||||||
|
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
#endif
|
||||||
#if QT_VERSION >= 0x50400
|
#if QT_VERSION >= 0x50400
|
||||||
/* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */
|
/* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */
|
||||||
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue