Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.15.0
-
None
Description
The name of QGraphicsItem::acceptTouchEvents is misleading, as in the following code:
auto* pItem = new MyTouchButtonItem();
pItem->acceptTouchEvent();
pMyScene->addItem(pItem);
I understand that changing the name would be a breaking change, so I suggest an alternative:
Make the return value [[nodiscard]], so the code above would at least trigger a warning.