Results 1 to 2 of 2

Thread: Command for Reading Input from the keyboard

  1. #1
    Join Date
    Nov 2013
    Posts
    46
    Thanks
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default Command for Reading Input from the keyboard

    Can anyone tell what is the command for reading input from the keyboard instead of reading the command input from a file. I am aware of the command:=
    0< FILENAME is used to accept input from a file.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Command for Reading Input from the keyboard

    That is called the standard input or stdin for the program.
    It is usually available through several low level handles: a file descriptor STDIN_FILENO, a FILE* handle stdin and the C++ istream std::cin

    Cheers,
    _

Similar Threads

  1. Disable keyboard input for spinbox entry
    By babygal in forum Qt Programming
    Replies: 8
    Last Post: 2nd December 2016, 01:06
  2. Replies: 1
    Last Post: 30th March 2012, 15:35
  3. How can I set the keyboard input mode?
    By Santiago in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 13:21
  4. how to get input file name from the command line?
    By mentalmushroom in forum Qt Programming
    Replies: 14
    Last Post: 25th May 2011, 13:48
  5. Accessing keyboard input in child process
    By GTBuilder in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2008, 16:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.