Results 1 to 2 of 2

Thread: QDebug messages show in application?

  1. #1
    Join Date
    Oct 2015
    Posts
    28
    Thanks
    10
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default QDebug messages show in application?

    Hi,

    I was wondering if there is a way to display qDebug messages in my exe-file when I deploy the application, since I've been using them to print text.
    For instance a text field in the application where they will appear?

    Thanks,

    //Leutzig

  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: QDebug messages show in application?

    You can install a Qt message handler function and in that decide where to output the messages to.

    See http://doc.qt.io/qt-5/qtglobal.html#...MessageHandler

    Cheers,
    _

Similar Threads

  1. How to Redirect qDebug from QtGui Application to Console?
    By wangq0206 in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2014, 09:39
  2. Replies: 0
    Last Post: 13th December 2012, 10:57
  3. Why My Qt Application Don't SHow?
    By dragon_hua in forum Qt Programming
    Replies: 1
    Last Post: 8th March 2011, 05:37
  4. Replies: 3
    Last Post: 20th October 2010, 22:36
  5. Run an application but show it in your own form?
    By triperzonak in forum Qt Programming
    Replies: 6
    Last Post: 27th September 2008, 02:37

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.