can some body explain how to post a resize event ??
Thanks in advance,
Boss
can some body explain how to post a resize event ??
Thanks in advance,
Boss
It should be enough to invoke QWidget::resize(), otherwise just create QResizeEvent on the heap and use QCoreApplication::postEvent().
I tried using resize() but it didnt work for me , I will explain what I am trying to do, I have
a class derived from QWidget and here is it's constructor,
MyWidget::MyWidget( QString videoFileName, QWidget* parent, Qt::WFlags flags )
:QWidget(parent,flags)
{
// Do I really have to turn off the double buffering?? -Make sure before commit.
setAttribute(Qt::WA_PaintOnScreen);
resize(300,300);
.
.
.
}
Now If I trace this it doesnt post invoke resize
Is this widget in a layout?
J-P Nurmi
I am using it as the centralWidget of the QmainWindow
QMainWindow mywindows;
mywindows.setCentralWidget(&mywidget);
Then you should resize the main window.Originally Posted by boss_bhat
Bookmarks