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.
FancyPopup
::FancyPopup( QWidget* parent,
const char* name
): QLabel( parent, name, WType_Popup
){ setFrameStyle( WinPanel|Raised );
setAlignment( AlignCenter );
resize(130,200);
}
void myMainForm::showPopup() {
popup
->mapFromParent
(QPoint(150,
100));
popup->show();
}
FancyPopup::FancyPopup( QWidget* parent, const char* name ):
QLabel( parent, name, WType_Popup ){
setFrameStyle( WinPanel|Raised );
setAlignment( AlignCenter );
resize(130,200);
}
void myMainForm::showPopup() {
popup->mapFromParent(QPoint(150, 100));
popup->show();
}
To copy to clipboard, switch view to plain text mode
Bookmarks