patrik08
3rd July 2006, 09:13
How i can set position X Y exact 10 px down from start event button?
or from last mouse position?
class Gui_Date : public QWidget, public Ui::Gui_Date
.......
Gui_Date::Gui_Date( QWidget* parent )
: QWidget( parent )
{
Qt::WindowFlags flags = 0;
flags = Qt::Popup;
setWindowFlags(flags);
setupUi( this );
connect( datePicker, SIGNAL( dateChanged(QDate) ), this, SLOT( Updatedate(QDate) ) );
}
or from last mouse position?
class Gui_Date : public QWidget, public Ui::Gui_Date
.......
Gui_Date::Gui_Date( QWidget* parent )
: QWidget( parent )
{
Qt::WindowFlags flags = 0;
flags = Qt::Popup;
setWindowFlags(flags);
setupUi( this );
connect( datePicker, SIGNAL( dateChanged(QDate) ), this, SLOT( Updatedate(QDate) ) );
}