Hello,
I would like to ask a question about Qt editor and console cooperation. I tried to use the console for debugging purposes (I know there more elegant ways for debugging) so I would be satisfied with simple input/output support. My question that arouse was why the order is not maintained in this piece of code:
|
Source code
|
1
2
3
4
5
|
cin >> a;
cout << "Now executing the program...";
dialog->show();
cout << "Program exits...";
cin >> a;
|
I mean both messages appear in console before the dialog appears! Why is that? I would suggest that maybe the messages display faster than the dialog but since the program expects user input dialog is not showing until I have inserted both time the value of a.
Any ideas?
I use LInux by the way.