I thought it would be simple like this
Qt Code:
  1. void MessageForm::mouseMoveEvent(QMouseEvent *mme)
  2. {
  3. if(mme->type() == QMouseEvent::MouseMove){
  4. if(ui->actions->rect().contains(mme->pos())){
  5. ui->actions->setVisible(true);
  6. }
  7. else{
  8. ui->actions->setVisible(false);
  9. }
  10. }
  11. }
To copy to clipboard, switch view to plain text mode 
i am not using mouse event of widget with buttons but from parent widget. The first problem was one overlay floating widget and one stretch widget. solved with
Qt Code:
  1. void MessageForm::resizeEvent(QResizeEvent* re) {
  2. Q_UNUSED(re);
  3. ui->actions->move(width() - ui->actions->width() - 20, 20 );
  4. ui->textEdit->resize(this->size());
  5. }
To copy to clipboard, switch view to plain text mode 

in form constructor i have
Qt Code:
  1. ui->setupUi(this);
  2. setMouseTracking(true);
  3. ui->textEdit->move(0,0);
  4. ui->actions->setVisible(false);
  5. resizeEvent(NULL);
To copy to clipboard, switch view to plain text mode 

but, of course, there is QTextEdit that takes mouse events. It doesnt feel right to reimplement QTextEdit (it is not realy text editing function what am i reimplementing), but it takes away mouse events i intended from form.
So i thought that i just made a blunder, and that i am doing it wrong. Maybe someone here acomplished same thing.
Or, Is there a way for parent widget tho know the mouse position if the mouse is over the widget itself and/or its children widgets?