1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-08-31 12:17:51 -04:00

FramelessWindowResizer: Enable child tracking for QWebEngineView.

This commit is contained in:
srcejon 2025-06-12 15:11:33 +01:00
parent b340b92a04
commit 83bff3e847

View File

@ -39,8 +39,13 @@ FramelessWindowResizer::FramelessWindowResizer(QWidget *widget) :
void FramelessWindowResizer::enableChildMouseTracking()
{
QList<QWidget *> widgets = m_widget->findChildren<QWidget *>();
for (auto widget : widgets) {
for (auto widget : widgets)
{
widget->setMouseTracking(true);
// For QWebEngineView
if (widget->focusProxy()) {
widget->focusProxy()->installEventFilter(this);
}
}
// QTableWidgets don't send us mouseMoveEvents for some unknown reason
// so install an event filter on their viewport