Recent

Author Topic: Click "This plugin supports grabbing the mouse for popups only"  (Read 2483 times)

rca

  • Jr. Member
  • **
  • Posts: 96
In Qt5 or Qt6, with Wayland, when clicking on a part where there is no focus, in the terminal I get the message:
"This plugin supports grabbing the mouse for popups only"

For example, when clicking on a SpeedButton, inside a TabSheet...

I attach an image, where I put in yellow, the parts that when clicked, shows that message.

Is there a way to prevent it from displaying that message in the terminal?

zeljko

  • Hero Member
  • *****
  • Posts: 1719
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Click "This plugin supports grabbing the mouse for popups only"
« Reply #1 on: July 30, 2023, 09:43:24 pm »
That message comes from qt lib, exactly from qtwayland plugin.

rca

  • Jr. Member
  • **
  • Posts: 96
Re: Click "This plugin supports grabbing the mouse for popups only"
« Reply #2 on: July 31, 2023, 02:11:58 am »
That message comes from qt lib, exactly from qtwayland plugin.

I found inside the qtwayland source code, "src/client/qwaylandwindow.cpp", the "setMouseGrabEnabled" function:

Code: C++  [Select][+][-]
  1. bool QWaylandWindow::setMouseGrabEnabled(bool grab)
  2. {
  3.     if (window()->type() != Qt::Popup) {
  4.         qWarning("This plugin supports grabbing the mouse only for popup windows");
  5.         return false;
  6.     }
  7.  
  8.     mMouseGrab = grab ? this : nullptr;
  9.     return true;
  10. }


It will be patch, so that it does not show it.

 

TinyPortal © 2005-2018