Questions tagged [qdebug]

The QDebug class, part of the Qt framework, provides an output stream for debugging information.

Documentation can be found here

99 questions
0
votes
1 answer

How can see qDebug and Unit test Macro (QCOMPARE etc) result in jenkins console

I try to do that unit test results are printed in jenkins console. But I can not do. I am thinking that jenkins build console can not print qDebug. And I tried it can not print qdebug. But std::cout is working. How can I proceed? Thank you. I tried…
Burak Dağlı
  • 512
  • 2
  • 10
  • 33
0
votes
1 answer

qDebug() stopped to work after Qt upgrade

I just upgraded my Qt from 5.2 to 5.3. In Qt Creator I have now no application output at all: qDebug() and cout are not working. In "Build & Run"/"Qt Versions" it was set to 5.2 and I found that this problem may be related to bad library in use...…
smsware
  • 429
  • 1
  • 13
  • 41
0
votes
1 answer

Text + variable in qDebug

I want to combine text and variable in qDebug: QString city_name = "London"; qDebug() << QString("You choose CITY:").arg(city_name); It doesn't work and i don't know why. Error is: QString::arg: Argument missing: You choose CITY:, ?????
0
votes
1 answer

QT QDebug with QIODevice not working

I wanted my QT application to store certain logs in different files. I had been using qDebug() << "LOG Messages" to output information. The problem in this method is that all output will come on the same screen even if you are threading. The QDebug…
user1066991
  • 121
  • 1
  • 13
0
votes
1 answer

displaying QSlider value in QLabel/QDebug() using QThread

I am implementing a simple function where slider value is constantly displayed on label and qDebug(). I already got the label updated using signal/slots, but somehow the qDebug() thread is not working properly. I expected to see the console flooded…
bladepopper
  • 23
  • 1
  • 5
0
votes
0 answers

why is qDebug() needed after the reinterpret_cast?

In a template function, T is a typename. here the T is float. I have a ulonglong like ox41480000. According to IEEE R32.24, ox41480000 is 12.5 as a float. so I use this to convert the qlonglong to float:T d =*reinterpret_cast(data); where…
hellen
  • 1
  • 1
-1
votes
1 answer

qDebug() affects the result of program execution

int ICOperator::ICStarts( const char *port ) { if ( NULL == OpenReader) { qDebug() << ""; } this->devNo = this->OpenReader( 0, sPort ); return this->devNo; } As the function show, qDebug() is not actually executed, but program will…
Jim
  • 11
-1
votes
2 answers

QPixmap::save() returns successful, but yields no file

The docs say this should work: bool did=pixmap.save( "hoppy.png" ); qDebug("did is: %d",did); My logging returns 1 suggesting, as per docs, that the save was successful. However, no file appears on my drive. According to the docs, this save()…
johnbakers
  • 24,158
  • 24
  • 130
  • 258
1 2 3 4 5 6
7