28 October 2021
Markus BauerCan you explain a bit more?
sure. There is qwidget.geometry() to get a QRect with the position and size of a window in your running app. And there is some information about the screen environment via QScreen but none about any other possible windows on the screen from other running apps, right?
I mean that's fair. Qt Apps should care about themselves and not so much about other possible running apps
I just wonder if I'm missing something 😉
ëRiCsure. There is qwidget.geometry() to get a QRect with the position and size of a window in your running app. And there is some information about the screen environment via QScreen but none about any other possible windows on the screen from other running apps, right?
I mean that's fair. Qt Apps sho
basically I want QRects of other visible windows on the screen.
Yossi Осип OPyside2 QML + SIGINT (Ctrl+C)
How to do it properly?
When I press Ctrl+C nothing happens until I close the window
Ссылка
click to show
click to show
Haven't tested but I would create my own loop and process the events by your own
It's mentioned here: https://doc.qt.io/qt-5/qguiapplication.html#exec
ëRiCsure. There is qwidget.geometry() to get a QRect with the position and size of a window in your running app. And there is some information about the screen environment via QScreen but none about any other possible windows on the screen from other running apps, right?
I mean that's fair. Qt Apps sho
Oh nice, don't know the answer but I am curious about it
Markus BauerHaven't tested but I would create my own loop and process the events by your own
It's mentioned here: https://doc.qt.io/qt-5/qguiapplication.html#exec
Other option is to put the sigint handler in the backend class and emit a signal exit_requested(), which will make QML window close.
Which sounds safer?
Markus BauerOh nice, don't know the answer but I am curious about it
Ссылка
click to show
click to show
👍 As I poke around I think this is very much the idea of Qt. I probably have to use some system-means/dlls depending on the platform I'm on (or hack it with Autohotkey WinGetPos as long as I'm on win)
Ссылка
click to show
click to show
Welcome Philipp 🎉 🎊
Verify you are not a bot solving the captcha!
Remember to check the documentation page https://doc.qt.io/qtforpython/ and the wiki https://pyside.org if you have some questions.