mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Cater for HiDPI display, ticket #257, props bitaround
This commit is contained in:
parent
69876619dd
commit
d00a87c79a
@ -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…
Reference in New Issue
Block a user