Results 1 to 3 of 3

Thread: how to print a matrix to a console in GUI program

  1. #1
    Join Date
    Feb 2009
    Location
    Clermont-Ferrand, France
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question how to print a matrix to a console in GUI program

    hi all

    i'm trying to print a matrix
    how can i open up a console in a gui program; instead of printing to stderr ?
    because it seems that in stderr always put '\n' automatically
    thanks

  2. #2
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Thanks
    6
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to print a matrix to a console in GUI program

    Try adding a '\c' to your output.
    That should suppress a newline.

    A better solution may be to output only complete lines with fields separated by tabs.

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to print a matrix to a console in GUI program

    Are you using qDebug() function?
    I'm a rebel in the S.D.G.

Similar Threads

  1. Replies: 6
    Last Post: 22nd November 2016, 13:57
  2. QProcess start a console program
    By Shawn in forum Qt Programming
    Replies: 2
    Last Post: 9th November 2007, 12:38
  3. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  4. How to run a console program "silently"?
    By fullmetalcoder in forum Qt Programming
    Replies: 9
    Last Post: 23rd July 2006, 10:03
  5. Console Program Problem
    By ball in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2006, 09:05

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.