tornado89
June 23rd, 2008, 08:19 PM
I' Creating A Server-Client Simulation On Ubuntu Hardy Using
C++....
I Chose QT4 As GUI..
At First I Created A pushButton, textEdit & a listWidget
And Then Connected The Signal ( clicked() ) from the button
to a Function That Sends The "textEdit" Contents To The Server
And Copy The Contents Also To The listWidget...& Till Now All Went OK
And The Widget Text Got Updated...
But when the Client Receives A Message From The Server I Try To
Update The listWidget.. But Nothing Happens...
The Function Responsible To Update The listWidget is
void Output( char* Msg ); And It's Called From Within The Receive()
Function of The Server
I Made Sure That The Function Is Called When The Server Is Called But
The Statement
listWidget->addItem( Msg ); Doesn't Update The Widget Text !!!
Do I Have To Connect The Function Receive In Anyway To The listWidget ??!!
C++....
I Chose QT4 As GUI..
At First I Created A pushButton, textEdit & a listWidget
And Then Connected The Signal ( clicked() ) from the button
to a Function That Sends The "textEdit" Contents To The Server
And Copy The Contents Also To The listWidget...& Till Now All Went OK
And The Widget Text Got Updated...
But when the Client Receives A Message From The Server I Try To
Update The listWidget.. But Nothing Happens...
The Function Responsible To Update The listWidget is
void Output( char* Msg ); And It's Called From Within The Receive()
Function of The Server
I Made Sure That The Function Is Called When The Server Is Called But
The Statement
listWidget->addItem( Msg ); Doesn't Update The Widget Text !!!
Do I Have To Connect The Function Receive In Anyway To The listWidget ??!!