Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qdebug

    Log in to post
    • All categories
    • C

      Solved QProcess not reading process output
      General and Desktop • qprocess qdebug program terminal linux • • camtheman99

      9
      0
      Votes
      9
      Posts
      327
      Views

      JonB

      @camtheman99
      That is interesting, thanks to @Christian-Ehrlicher.

    • D

      Unsolved Crashing somewhere in Qt... how to... eee get src?
      General and Desktop • qdebug debug • • Dariusz

      6
      0
      Votes
      6
      Posts
      279
      Views

      D

      @Christian-Ehrlicher I've no idea :D But it did not work.
      When I pause debug, I get symbols/etc but it says that symbols are different from source file... so I have to manually navigate to cpp file in qt/src/bla/bla/bla dir

      Feels like msvc DLL shipped with Qt does not match src that I can install... maybe I should build my own qt so that everything is definitely running one ver... odd.

      Still digging.

    • D

      Unsolved QDebug, inheritance QObject issue ambiguous call
      General and Desktop • qdebug • • Dariusz

      6
      0
      Votes
      6
      Posts
      511
      Views

      jeremy_k

      Anything to make one definition more specific should work. My ability to recall the full set of rules is clearly less than perfect.

    • B

      Solved QList<QObject*> testList, how to access individual QObject.at() values?
      General and Desktop • qdebug qml qlist qobject • • BoGut

      11
      0
      Votes
      11
      Posts
      646
      Views

      B

      So it looks like I was missing the variable statement after this. It works now. Thanks everyone for the help.

      QList<QObject*> list() const; for (int index=0; index < list.size(); index++) { QObject *test01 = list.value(0)->name(); qDebug() << test01; }
    • M

      Solved Qsettings Erratic Behaviour
      General and Desktop • qsettings qdebug • • markd

      3
      0
      Votes
      3
      Posts
      228
      Views

      M

      Qsettings documentation says it is reentrant and thread-safe but since I have started adding .sync() between writing and reading, I have not seen the problem.

    • D

      Unsolved QDebug & QFlags - pretty text?
      General and Desktop • qflag qflags qdebug • • Dariusz

      3
      0
      Votes
      3
      Posts
      660
      Views

      I

      try:

      inline QDebug operator<<(QDebug &stream, const amazing &flag) { if (!flag) { return stream << testX(0x00); } amazing l_copy = flag; testX l_bit = testX(0x01); stream.noquote().nospace() << "("; forever { if (l_copy.testFlag(l_bit)) { stream.noquote().nospace() << l_bit; l_copy.setFlag(l_bit, false); if (!l_copy) break; stream.noquote().nospace() << "|"; } l_bit = testX(qint32(l_bit) << 1); } stream.noquote().nospace() << ")"; return stream; }
    • D

      Unsolved how to add QDebug to inherited classes?
      General and Desktop • qdebug inheritance • • Dariusz

      7
      0
      Votes
      7
      Posts
      831
      Views

      Christian Ehrlicher

      Since you're explicitly calling QDebug operator<<(QDebug &stream, const base &obj) the compiler can't call the other function.
      What you can do is to write your own "virtual QString debug() const" function in every class which you the call within the debug stream operator function. But once again - plain C++ :)

    • D

      Solved QDebug seem to not find overload ? - QMap
      General and Desktop • qdebug qmap • • Dariusz

      2
      0
      Votes
      2
      Posts
      397
      Views

      raven-worx

      @Dariusz
      your signature of the overload isn't correct: see this
      also make sure those implementations are in the corresponding header file

    • A

      Solved qDebug, qWarning etc. Android implementation
      Mobile and Embedded • androidqt qdebug qwarning logging • • azarubkin

      2
      0
      Votes
      2
      Posts
      591
      Views

      A

      Found it: https://github.com/qt/qtbase/blob/5.12/src/corelib/global/qlogging.cpp

      Specifically, I needed to set application name in QCoreApplication.

    • D

      Unsolved qDebug overload, return non const function?
      General and Desktop • qdebug • • Dariusz

      4
      0
      Votes
      4
      Posts
      645
      Views

      Christian Ehrlicher

      @Dariusz said in qDebug overload, return non const function?:

      the virtual QString getDebugData never actually calls the upper inherited classes getDebugData

      I don't understand - what do you mean here? I don't see that you call the base class implementation in this function anywhere so how should it be called?

    • R

      Unsolved Unable to see the QDebug Messages on console.
      General and Desktop • qdebug qt-5.7.1 console • • Rohith

      15
      0
      Votes
      15
      Posts
      20508
      Views

      T

      correct @Paul-Colby
      thanks

    • stackprogramer

      Solved error in print value of const *char in data in Qt?
      C++ Gurus • memcpy const char qdebug array • • stackprogramer

      7
      0
      Votes
      7
      Posts
      3989
      Views

      stackprogramer

      @VRonin
      i before write my code to this method 369 book:

      void WeatherBalloon::sendDatagram() { QByteArray datagram; QDataStream out(&datagram, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_3); out << QDateTime::currentDateTime() << temperature() << humidity() << altitude(); udpSocket.writeDatagram(datagram, QHostAddress::LocalHost, 5824); }

      But we want to connect UDP processing data to GUI app, it can not read QDataStream Method and it Crashs. The app is written in C#,So we should try a method that work with VisualStudio.
      Agian Than kyou for attention
      best regards stackprogramer

    • E

      Solved QDebug with custom typed QVariant
      General and Desktop • qt 4.8.1 qt 5.6.0 qvariant custom type qdebug • • enmaniac

      10
      0
      Votes
      10
      Posts
      5013
      Views

      E

      @kshegunov Thank you! That was the missing part!!

    • K

      Unsolved Limitation of string length for qDebug() output?
      General and Desktop • qdebug string limit qstring qtcreatorbug-17 • • koahnig

      8
      0
      Votes
      8
      Posts
      4177
      Views

      aha_1980

      The reason for this is a GDB limitation on Windows. See QTCREATORBUG-24649 for more information.

      Regards

    • ghborrmann

      Unsolved Why Does qDebug() Produce no Output?
      General and Desktop • qdebug output failed • • ghborrmann

      1
      0
      Votes
      1
      Posts
      1175
      Views

      No one has replied

    • mandruk1331

      Unsolved qDebug()<< bug
      General and Desktop • c++ qdebug • • mandruk1331

      3
      0
      Votes
      3
      Posts
      963
      Views

      mandruk1331

      @JKSH Yes the value has been initialized. I init. with some minor calculations such as:
      QVector <double> B;
      for(int i=1;i<ui->RyadA->text().toInt(0,10)+1;i++){
      B.push_back(((double)i/8+1)*(i+1));
      }

    • PascalJedi

      Solved qDebug Initial setup Messed up?
      General and Desktop • qdebug • • PascalJedi

      10
      0
      Votes
      10
      Posts
      1805
      Views

      PascalJedi

      @SGaist If there is one thing that is for sure; I can destroy any project while doing a "hello world" tutorial! Thanks for the eSupport.

    • S

      Unsolved Last debug does not print anything :/
      General and Desktop • qapplication qdebug console • • sami1592

      5
      0
      Votes
      5
      Posts
      1450
      Views

      S

      @hskoglund Thanks for the info

    • X

      Unsolved qDebug utf-8 issue
      General and Desktop • qdebug ascii utf-8 • • xalisonx

      4
      0
      Votes
      4
      Posts
      1636
      Views

      jsulm

      Windows? That explains :-)
      I tested on Linux.
      I don't know how to fix this on Windows.
      Maybe this can help you: http://stackoverflow.com/questions/388490/unicode-characters-in-windows-command-line-how