Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Writing to cmd
Forum Updated to NodeBB v4.3 + New Features

Writing to cmd

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 378 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ranbit
    wrote on last edited by
    #1

    Hi,

    I am making a GUI for a program that made with visual studio.
    The program waits to scan a character from cmd ( with scanf ) and I want to write the character when I am pressing a button.
    I tried to use printf() or cout << "" , but it's printing to Qt-creator "Application Output".

    Is there a way to write to cmd or maybe to change the application output to be cmd?
    Maybe you have another idea how to communicate between the programs?
    Thank you very much!

    aha_1980A 1 Reply Last reply
    0
    • R ranbit

      Hi,

      I am making a GUI for a program that made with visual studio.
      The program waits to scan a character from cmd ( with scanf ) and I want to write the character when I am pressing a button.
      I tried to use printf() or cout << "" , but it's printing to Qt-creator "Application Output".

      Is there a way to write to cmd or maybe to change the application output to be cmd?
      Maybe you have another idea how to communicate between the programs?
      Thank you very much!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @ranbit you are searching for QProcess

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      5

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved