Hi all,
This is my first post on this forum, so I hope I didn't post a topic that was already discussed in the past.
The problem is the following: in an MDI application with dock windows, one of the dock windows
contains a widget stack. Whenever a certain event is called, a process is added in another dock window, and a widget is created with its parameters on the widget stack.
The whole code is using Qt 4.2.1, but the widget stack still uses Q3 support routines (instead of
the new StackedWidget, that is).
The problem now is that the application shows parameter widget nicely when the process is created
in Mandrake 10.1, but when the program runs on Mandriva 2007 or Fedora 6 (both of them qith Qt 4.2.2), the parameter is initially blank, until the application window is resized or the dock window is resized. From then on, there is no longer a problem, and whenever the widget stack is emptied again (all processes removed, thus also all corresponding widgets) and new porcesses are added afterward, there is no problem.
I tried to trigger the update of this widget from the creation of the first process parameter widget by
explicitely calling show for both parent and child, repaint for parent and child and raise the right widget page of the widget stack:
Q3WidgetStack* ParentWidget
WidgetID = ParentWidget->addWidget(parameterWidget);
ParentWidget->show();
parameterWidget->show();
ParentWidget->raiseWidget(WidgetID);
ParentWidget->repaint();
parameterWidget->repaint();
But none of this shows our widget after the creation of the first process in our application for the
more recent OS'es/Qt combinations. With those, we still need a resize of the widgets before they
become visible.
Can anyone suggest what might be wrong in our application? Is it a matter of mixing Qt3 support code with Qt4? Or is there something else?
Many thanks in advance.
Kind regards,
Filip