Menu

How do I get qDebug output

uchris
2014-11-04
2014-11-04
  • uchris

    uchris - 2014-11-04

    Hello,

    I'm trying to fix some issues in qlcplus, but I'm very new in this code and so I need some more debug Information. In some files there is a use of qDebug. How do I get this Output?
    I also tried std::cout from iostream, but it doesn't do any Output to the screen, when I use it in classes from ui/src.

    I'm complete new in QT and need your help now. Thanks

     
  • Massimo Callegari

    Chris, if you read the documentation (http://qlcplus.sourceforge.net/docs/commandlineparameters.html) or launch "qlcplus -h", you will realize that the -d option is what you're looking for

     
  • uchris

    uchris - 2014-11-04

    Hello Massimo, I put it to the minimum value (0) and still don't get the output I want.

     
  • Massimo Callegari

    Do you actually read things ?
    https://github.com/mcallegari/qlcplus/wiki/Linux-Build-HOWTO

    You have probably built in release mode, and you're building a released version, and not the GIT sources, which is wrong if you want to contribute.

     
  • uchris

    uchris - 2014-11-04

    I build it from Git source and in variables.pri the debug is enabled and the release disabled.
    When I add a qDebug() output to main() it works. But for a test I added it also to ui/src/aboutbox.cpp in the contructor and in the slotTimeout. I started the program and clicked on the "About" symbol. The about dialog is shown, but NO output to the console.

     
  • uchris

    uchris - 2014-11-04

    sorry, my fault, i didn't update the qlcplusui.so

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.