QMenubar::resizeevent is not called when i add menu in existing menubar
-
Hi ,
i am adding the extra menu on the existing menubar but after that the resizeevent of QMenubar is not called.
currently i am porting my application from qt 3.0 to qt 4.8 . in qt 3.0 it works fine and resize event called properly when i add menu in existing menubar.
so my question is will the resize event of QMenubar will call if i add extra menu in that?Thanks,
Yogesh -
is anybody know this problem?
-
Hi,
What is the exact problem you have with resizeEvent not being called ?
-
Hi ,
in my application i have menubar and toolber on the top of the window. if one extra menu added in existing menubar then i just move toolbar and add new menu in menubar horizontal. it works fine in qt 3.0
now when i try to add new menu the resize event of menubar would not called. the toolbar move logic implemented in the resize event of meunbar.Thanks
Yogesh -
Then it might be a regression.
You should check the "bug report system":http://bugreports.qt-project.org to see whether it's a known issue. If not you can consider opening a new bug report providing a Minimal Compilable example that shows the behavior.
-
Might be a dumb question but how do you add a resize event to a form?
I opened up the .cpp and add this code
@
void MainWindow::Resize(void)
{
QMessageBox::about(this, "test", "test");
}
@and added the header also
@
private slots:
void Resize(void);
@but the event never fires. What am I doing wrong?
-
Might be a dumb question but how do you add a resize event to a form?
I opened up the .cpp and add this code
@
void MainWindow::Resize(void)
{
QMessageBox::about(this, "test", "test");
}
@and added the header also
@
private slots:
void Resize(void);
@but the event never fires. What am I doing wrong?
-
"That":http://doc.qt.io/qt-5/qwidget.html#resizeEvent is the correct signature for resizeEvent
-
"That":http://doc.qt.io/qt-5/qwidget.html#resizeEvent is the correct signature for resizeEvent