Hi,
Is there a way to force QResizeEvent to come immediately?

According to the docs:
If the widget is visible when it is being resized, it receives a resize event (resizeEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.
The problem is I want to receive the event at once - without waiting for the widget to become visible.

I tried to invoke QCoreApplication:ostEvent:
Qt Code:
  1. QResizeEvent resizeEvent(newSize, myWidget->size());
  2. QCoreApplication::postEvent(myWidget, &resizeEvent);
To copy to clipboard, switch view to plain text mode 
but I receive a warning
QEvent: Warning: event of type 14 deleted while posted to MyFrame myWidget
and a segmentation fault just after.

Can I do something else?

Tomek