[Qt-creator] cin doesn't work on Linux
Marius Cirsta
mforce2 at gmail.com
Sun Mar 28 23:35:04 CEST 2010
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.
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> 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 ?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100329/1160e23e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try.tar
Type: application/x-tar
Size: 3584 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100329/1160e23e/attachment.tar
More information about the Qt-creator-old
mailing list