I changed the line below
//main.cpp
exw.
move(w.
mapToGlobal(QPoint(w.
width(),
50)));
//main.cpp
exw.move(w.mapToGlobal(QPoint(w.width(),50)));
To copy to clipboard, switch view to plain text mode
to:
//externWidget::installFilter
this
->move
(w.
mapToGlobal(QPoint(w.
width(),
50)));
//externWidget::installFilter
this->move(w.mapToGlobal(QPoint(w.width(),50)));
To copy to clipboard, switch view to plain text mode
but while the first set the posiion of extern widget beside window App (see pictures), if I put it within installFilter the position it's not the same (and if I move main window, externWidget move out screen very fast!) Why this?
Bookmarks