View Full Version : resizeEvent for Dock Widgets
umulingu
29th March 2010, 05:52
Hai
In my pro I have a MainWindow, 4 Dock widgets, I want resizeEvent() for all DockWidgets. MainWindow resizeEvent() working properly.
how to do this
pl suggest me..
stefanadelbert
29th March 2010, 06:32
It should be possible to trap a resize event in QMainWindow using a customized
void QWidget::resizeEvent ( QResizeEvent * event ) [virtual protected]
(QMainWindow inherits from QWidget) and then on each of your specialised QDockWidgets call an overidden
bool QDockWidget::event ( QEvent * event ) [virtual protected]
which will then do whatever you need your specialised QDockWidget to do on a resize event.
umulingu
1st April 2010, 11:29
Hai
I want to create a resizeEvent for QFrame.
how to do this?
void MainPlot::resizeEvent(QResizeEvent * )
{
ui->qwtTxtLegTittle->setGeometry(legend->x()+10,legend->y()-20,ui->qwtTxtLegTittle->width(),ui->qwtTxtLegTittle->height());
ui->qwtTxtLegTittle->setText("Run.No Param. Avg.Mach ");
}
void MainPlot::ui->frame_4->resizeEvent(QResizeEvent*)
{
}
umulingu
1st April 2010, 11:30
Hai
I want to create a resizeEvent for QFrame.
how to do this?
void MainPlot::resizeEvent(QResizeEvent * )
{
ui->qwtTxtLegTittle->setGeometry(legend->x()+10,legend->y()-20,ui->qwtTxtLegTittle->width(),ui->qwtTxtLegTittle->height());
ui->qwtTxtLegTittle->setText("Run.No Param. Avg.Mach ");
}
void MainPlot::ui->frame_4->resizeEvent(QResizeEvent*)
{
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.