QPoint QWidget::mapFromParent ( const QPoint & pos ) const
Translates the parent widget coordinate pos to widget coordinates.
Same as mapFromGlobal() if the widget has no parent.
This method returns the translated point.

Qt Code:
  1. void myMainForm::showPopup()
  2. {
  3. popup->move( mapToGlobal( QPoint( 150, 100 ) ) );
  4. popup->show();
  5. }
To copy to clipboard, switch view to plain text mode