Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. stdout
    Log in to post
    • All categories
    • E

      Solved How to redirect stdout & stderr to a file in a Qt console App (QCoreApplication) ?
      General and Desktop • stdout redirect console app • • eupuser00

      19
      0
      Votes
      19
      Posts
      6777
      Views

      JonB

      @Developer123
      The code answers there all implement sending Qt error messages within an application to a file. Perfectly useful in itself, but nothing to do with the topic title here of "How to redirect stdout & stderr to a file in a Qt console App (QCoreApplication)".

    • C

      Solved QProcess not reading stdout
      General and Desktop • qprocess stdout c++ • • CaffeinatedGecko

      5
      0
      Votes
      5
      Posts
      1996
      Views

      C

      @JonB Thanks! That saved me a good deal of troubleshooting. It turned out the problem was a hard path to a file inside the C program which caused it to run correctly when invoked from it's native directory, but caused a segfault when called by Qt since the paths were different. The problem is completely fixed now.

    • J

      Unsolved QTextStream not working while running simple console output application Ask Question up vote
      General and Desktop • qtextstream stdout console app qt4 • • Johnx8664

      3
      0
      Votes
      3
      Posts
      958
      Views

      A

      @Johnx8664 Learning Qt4 at this point would be a waste of your time. Like @SGaist said it's long past it's end of life. Qt5 is 12 major releases into it's life cycle now and 5 years old now.

      I would grab a book on Qt5, or I find it's pretty easy to learn Qt just from the docs that come with it. If you know C++ well (and you should if you are tackling Qt), then you should be fine learning from the Qt Assistant docs. There are a lot of examples and tutorials in there as well.

    • R

      How to print Qdate value on screen
      General and Desktop • string qdate stdout screen • • RDiGuida

      3
      0
      Votes
      3
      Posts
      4295
      Views

      p3c0

      @RDiGuida To add to @Mario84's answer, QString is Qt based class and your using standard c++ API's to print it which it doesnot understand. To print values of pure Qt based API's you can use qDebug().
      Eg:

      QString dt ((dates[0]).toString()); qDebug() << dt;