hi, I need to set the position of a myFancypopup object; it appear when I click a pushButton....but it position is always at the top-left corner...thanks.
Qt Code:
  1. FancyPopup::FancyPopup( QWidget* parent, const char* name ):
  2. QLabel( parent, name, WType_Popup ){
  3. setFrameStyle( WinPanel|Raised );
  4. setAlignment( AlignCenter );
  5. resize(130,200);
  6. }
  7. void myMainForm::showPopup() {
  8. popup->mapFromParent(QPoint(150, 100));
  9. popup->show();
  10. }
To copy to clipboard, switch view to plain text mode