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 to output a QNetworkRequest to a raw Http request?

For Debugging purposes, I would like to examine the QNetworkRequests that I build and see if they are formatted correctly. However, I do not see how to output them to a string format based upon their api. How can I go about viewing the raw http…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

Qt qDebug: no print out

I've included 'qDebug.h' and iostream and stdio.h in my .cpp code and qDebug has been used correctly, but nothing happens in my Output window... I've tried qDebug and cout, wanna to print out all the data from the txt file on the print window but…
Lee Dennis
  • 57
  • 6
0
votes
1 answer

How to fix "index < m_series->count()" error in xychart.cpp?

I started to use QtCharts in my application. The chart that I am considering is a Line Chart, using the objects QChart and QLineSeries. As all the points are added dynamically, I use the signal/slot system to update the chart: QLineSeries* serie =…
Cynnexis
  • 63
  • 1
  • 5
0
votes
1 answer

qDebug function char FirstDriveFromMask( ULONG unitmask )

trying to make project in QT, I need to detect any new usb device and return the letter in my main.cpp. I found this with google and it should work but I don't know how to have a print of the driver letter in my main.cpp with simple qDebug() by…
Philippe
  • 25
  • 1
  • 7
0
votes
1 answer

QDebug passing custom debug message type in Qt 4.7

We are building a static library that is using qDebug and its variants(qWarning,QCritical etc) and custom qDebug message handler. Because of this every qDebugand its variants and its variants are redirected to our message handler. But we don't want…
Arjuna
  • 697
  • 4
  • 17
0
votes
1 answer

Redirect FILE * stream into custom handler in Qt

I would like to integrate a C library into my C++/Qt project. The library accepts a FILE* stream in order to print debug messages (rather than providing a hook for a logging callback function...). It works properly if I just pass stderr, but I would…
zgyarmati
  • 1,135
  • 8
  • 15
0
votes
2 answers

How to get string representation of common Qt5 types like QOpenGLContext?

NOTE: This is a rather naïve question on purpose. During debugging and logging in a Qt5 C++ application it is useful to print the value of internal variables, and in Qt the common way is to use qDebug() with friends like this: qDebug()<<"The value…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
0
votes
1 answer

Weird behavior of qDebug() crashing the application

I've been debugging a simple catalogue application and this issue is starting to get the best of me. I want to create a modal dialog, wich will recieve user input on presented data. I have a simple struct holding the catalogue item data: struct…
Kef
  • 410
  • 3
  • 18
0
votes
1 answer

How to change data type of a cv::mat in Qt Qdebuger

I want see the stored data in my cv::mat data using Qdebuger. My problem is that the data-type of my cv::mat is uchar while the depth of my mat is cv_32f and I cannot change to a float type.
Yasin Kumar
  • 169
  • 1
  • 3
  • 14
0
votes
1 answer

How to initialize stdout stdin with Qt 5.7

I noticed something with qDebug() QTextStrean and generally stdin, stdout wanna ask, how it works actually, see this: THIS WORKS! method showmenu() using QTextStream showMenu(){ QTextStream m_out(stdout); QTextStream…
user7031116
0
votes
1 answer

Can Qt library components call qDebug() or simmilar?

I use qInstallMessageHandler to register a custom logging function. This function formats message (for example it adds a time stamp) and prints it to the console and to the log file. My concern is, if the Qt library components (like QDateTime, QDir,…
user2449761
  • 1,169
  • 13
  • 25
0
votes
1 answer

Can you configure QDebug to automatically output with text formatting, and insert info such as the datatypes or namespaces it is returning?

QString m_BoatProgramming("Boat Programming"); qDebug() << m_BoatProgramming; qDebug() << QDate::currentDate(); Gives me: "Boat Programming" "Saturday 20th, 2016" In some circumstances, rather than going through all the trouble of finding the…
Anon
  • 2,267
  • 3
  • 34
  • 51
0
votes
1 answer

Logger class using qInstallMessageHandler can not find pointer to function?

I have a class MyLogger which shall handle all the logging activities. Therefore I tried to use this example So my source is : MyLogger::MyLogger(QWidget *parent) : QDialog(parent), ui(new Ui::MyLogger) { ui->setupUi(this); #if QT_VERSION >=…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
0
votes
2 answers

qDebug outputs QString UTF-8 non-Ascii symbols as like \uxxxx

I am trying to convert string (QString) in unicode to utf-8. qDebug prints string like this: "Fault code soap:Client: \u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0441…
Pustovalov Dmitry
  • 998
  • 1
  • 9
  • 25
0
votes
0 answers

qDebug() not displaying anything

I'm having troubles with qDebug(). I'm used to use it helping me to debug my code. But it's not displaying anything anymore. I don't know why. When I want to display a simple variable such as n in the code above, it just freezes my app a few seconds…
Avatar36
  • 79
  • 2
  • 6