Results 1 to 2 of 2

Thread: Command for Reading Input from the keyboard

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

    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
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    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, 02:06
  2. Replies: 1
    Last Post: 30th March 2012, 16:35
  3. How can I set the keyboard input mode?
    By Santiago in forum Newbie
    Replies: 3
    Last Post: 15th November 2011, 14: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, 14:48
  5. Accessing keyboard input in child process
    By GTBuilder in forum Qt Programming
    Replies: 0
    Last Post: 22nd January 2008, 17: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
  •  
Qt is a trademark of The Qt Company.