[Qt-creator] cin doesn't work on Linux
M. Bashir Al-Noimi
mbnoimi at gmx.com
Mon Mar 29 10:12:30 CEST 2010
Hi,
On 28/03/2010 11:35 م, Marius Cirsta wrote:
> Thanks for your answers. I should have posted the code I'm using when
> trying this. It's now attached to this mail. As you can see I'm using
> standard c++ code an not anything Qt related. I of course used std::
> and all that stuff. My problem is that when trying to input something
> everything just hangs. I write something then press ENTER then I write
> something again then press ENTER again but it just doesn't work , the
> input is not accepted and the program doesn't move one no matter what
> I do. Using Muhammad Bashir Al-Noimi's code I get the same thing.
> Nothing after cin is executed no matter what I do.
I've tested you code, everything was OK i didn't find anything incorrect!
I think this problem related to configurations of your system, so I
prefer to test any application in terminal mode to see if this problem
will repeat or not.
> If this code works for you under Linux I'm guessing it might just be
> a bug and I should report it as such. I might be something related to
> the xterm -e that's mentioned under Environment, General ( Options )
> . Can you take a look and see what setting you have there.
> I'm using a less known distribution , Frugalware and Qt is version
> 4.6.2 ( the same version was used to compile Qt Creator from source
> code ) on a 32 bit environment.
>
> On Sun, Mar 28, 2010 at 2:14 PM, Marius Cirsta <mforce2 at gmail.com
> <mailto:mforce2 at gmail.com>> wrote:
>
> I just wrote a simple program to use std::cin under Linux and I
> can't get it to work with Qt Creator 1.3.1. I get the application
> output but it doesn't recognize the ENTER key and so doesn't
> accept the input value that I type. My terminal is set the xterm
> -e unde Environment, General.
>
> Any solutions to this ?
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100329/3d89d1b9/attachment.html
More information about the Qt-creator-old
mailing list