PDA

View Full Version : Hiding and showing the same mainwindow multiple times



Charvi
19th June 2012, 07:25
Hi,

I am have made a design in which I have a server and a client application. The client application uses dynamic loading of forms as per names given by server. Now in client I have a "mother" mainwindow wherein I load the form and show. It works this way:
* First server sends a packet to client telling it to load a screen.
* The client loads this form in the "mother" mainwindow and shows it.
* The user enters something on to this screen and hits submit button.
* On this the client does two things - sends this data to the server in a packet and hides the current screen.
* According to the data received the server decides the next screen and tells client.

The problem is everything works fine for one form but when I try with multiple forms I get fixed. I connected hide of mainwindow with the click of submit button and i connected show with the signal emitted when client receives a packet from server. But this doesnt work. :( Don't know why !

amleto
19th June 2012, 09:40
and how are we meant to be able to figure out the problem?

sonulohani
20th June 2012, 13:19
void QWidget::hide () [slot]

Hides the widget. This function is equivalent to setVisible(false).

void QWidget::show () [slot]

Shows the widget and its child widgets. This function is equivalent to setVisible(true).