MsgBox problem

Rene Maerten delta_x at gmx.net
Wed Nov 29 22:05:53 GMT 2000


X
A Messagebox is a Dialogwidget, which called Modal, this means, 
your program is waiting for Closing the Messagebox, and after it, your Slot-Routine will be called.


Am Mittwoch, 29. November 2000 14:21 schrieben Sie:
> Hi,
>
> if I am not allowed to ask the following question on this list, please tell
> me where better to post it. Thanks.
>
> Ok,
> the problem I have is as follows:
> I have a kdevelop project for KDE 1.2, and the following code fraction
> (which is connected to a QTimer) gives me a mysterious problem:
>
> void CLASSNAME::slotDoWhat() {
> ....
> ....
> 	for(i=0; i<imax; i++) {
> 		if(finExp.eof()) {
> 		    	SERR="unexpected end of file!";
> 			KMsgBox::message(0,"caption","SERR",KMsgBox::EXCLAMATION);
> 			slotStopWhat(); // this stops the qtimer as well
> 			return;
> 		}
> 		finExp.getline(s, 200);
> 		...
> 		...
> 	}
> }
>
> Now, whenever the MessageBox pops up (at eof()), the slotStopWhat() is NOT
> called, instead, the program directly enters the slotDoWhat() again!!!
> Strange enough, if I e.g. put the call to slotStopWhat() as first
> instruction inside the if() statement, the program works as expected.
>
> What did I not understand?
>
> Thanks,
>
> Oli
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> »your-email-address«

-- 
Kind Regards Rene Märten
  E-Mail: 	Delta_x at gmx.net
  Business: 	rmaerte1 at visteon.com
  Home:   	http://codewizards.de/kcommander
                http://www.Linux4User.de


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list