Compare commits
2 Commits
8c37fa628a
...
27a9e0857c
Author | SHA1 | Date |
---|---|---|
|
27a9e0857c | |
|
79d5087df5 |
|
@ -155,9 +155,9 @@ if(QT_VERSION VERSION_GREATER_EQUAL "6.3")
|
|||
#NO_RESOURCE_TARGET_PATH # Can't be used for non-executable targets.
|
||||
OUTPUT_TARGETS __qml_targets
|
||||
IMPORTS
|
||||
QtQml/auto
|
||||
QtQuick/auto
|
||||
QtQuick.Controls.Basic/auto
|
||||
QtQml
|
||||
QtQuick
|
||||
QtQuick.Controls.Basic
|
||||
)
|
||||
if(__qml_targets)
|
||||
list(APPEND __export_targets ${__qml_targets})
|
||||
|
|
|
@ -69,7 +69,7 @@ static inline void emulateLeaveEvent(QWidget *widget)
|
|||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
const QScreen *screen = widget->screen();
|
||||
#else
|
||||
const QScreen *screen = QGuiApplication::primaryScreen();
|
||||
const QScreen *screen = widget->windowHandle()->screen();
|
||||
#endif
|
||||
const QPoint globalPos = QCursor::pos(screen);
|
||||
if (!QRect(widget->mapToGlobal(QPoint{ 0, 0 }), widget->size()).contains(globalPos)) {
|
||||
|
|
Loading…
Reference in New Issue