Getting position of mouse click in a QLabel

后端 未结 2 1409
别跟我提以往
别跟我提以往 2020-12-12 07:30

What is the best (as in simplest) way to obtain the pos of a mousePressedEvent in a QLabel? (Or basically just obtain the location of a mouse click

2条回答
  •  情歌与酒
    2020-12-12 07:57

    I had the same problem

    invalid static_cast...

    I just forgot to include the header: #include "qevent.h"

    Now everything is working well.

提交回复
热议问题