I'm showing animated emoticon on textedit using animatedemoticonwidget that is showing my widget in position of emoticon. This widget is using QMovie. And everything is ok but position to move qwidget is about 10px moved and widget size is wrong...

I was trying with globalPos() in mouseMoveEvent()
or adding (to mouseMoveEvent() and start_emoticon()) something like mapToParent, mapFromParent, mapToGlobal, mapFromGlobal
but still widget was in incorrect position.

Adding this->adjustSize() to fix widget size also dont change anything.

So I need help or maybe little code fix...

I added example.