Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qdebug problem
Forum Updated to NodeBB v4.3 + New Features

Qdebug problem

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 2.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Q139
    wrote on 14 Mar 2015, 07:10 last edited by
    #1

    Having problem with qdebug displaying qstring.
    Same problem on previous relases and it says <not accessible>.
    How to solve this problem?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 14 Mar 2015, 08:39 last edited by
      #2

      Where and what does say that? Which Qt version are you using? Which IDE? Did you include both <QDebug> and <QString> ? Can you show a sample code that produces it?
      When specifying a problem please provide as much information as possible. It's hard to answer "how to solve this problem" when problem is not well defined.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Q139
        wrote on 14 Mar 2015, 13:10 last edited by
        #3

        Version is Qt Creator 3.3.1 (opensource), problem occurs on floating window and right side list in debug mode if breakpoint has paused execution.

        Tryed if including <QDebug> and <QString> changes outcome but no luck.

        No code appears to not show data of qstrings for some reason but qdebug text output works.

        K A 2 Replies Last reply 14 Mar 2015, 17:21
        0
        • Q Q139
          14 Mar 2015, 13:10

          Version is Qt Creator 3.3.1 (opensource), problem occurs on floating window and right side list in debug mode if breakpoint has paused execution.

          Tryed if including <QDebug> and <QString> changes outcome but no luck.

          No code appears to not show data of qstrings for some reason but qdebug text output works.

          K Offline
          K Offline
          koahnig
          wrote on 14 Mar 2015, 17:21 last edited by
          #4

          @Q139 It would be better when show the code lines affected. Otherwise we need crystal ball reading, which is typically not very accurate.

          Vote the answer(s) that helped you to solve your issue(s)

          Q 1 Reply Last reply 14 Mar 2015, 20:58
          0
          • K koahnig
            14 Mar 2015, 17:21

            @Q139 It would be better when show the code lines affected. Otherwise we need crystal ball reading, which is typically not very accurate.

            Q Offline
            Q Offline
            Q139
            wrote on 14 Mar 2015, 20:58 last edited by Q139
            #5

            @koahnig
            Problem is independant of code.
            For example

            QString strq = "eee";

            debug wont show eee , instead displays <not accessible>

            A 1 Reply Last reply 15 Mar 2015, 03:54
            0
            • Q Q139
              14 Mar 2015, 20:58

              @koahnig
              Problem is independant of code.
              For example

              QString strq = "eee";

              debug wont show eee , instead displays <not accessible>

              A Offline
              A Offline
              andreyc
              wrote on 15 Mar 2015, 03:54 last edited by andreyc
              #6

              @Q139
              Here is a code that uses QString and QDebug and it displays the string in a terminal. Could you try to run it and tell us what do you see in a terminal

              qdebug-problem.pro

              QT -= gui
              TARGET = qdebug-problem
              CONFIG += console
              CONFIG -= app_bundle
              TEMPLATE = app
              SOURCES += main.cpp
              

              main.cpp

              #include <QDebug>
              #include <QString>
              int main(int, char**)
              {
                  QString strq = "eee";
                  qDebug() << strq;
                  return 0;
              }
              

              Here is a debug window of qtcreator
              Debug Window

              1 Reply Last reply
              1
              • Q Q139
                14 Mar 2015, 13:10

                Version is Qt Creator 3.3.1 (opensource), problem occurs on floating window and right side list in debug mode if breakpoint has paused execution.

                Tryed if including <QDebug> and <QString> changes outcome but no luck.

                No code appears to not show data of qstrings for some reason but qdebug text output works.

                A Offline
                A Offline
                andreyc
                wrote on 15 Mar 2015, 04:01 last edited by
                #7

                @Q139 What OS and what compiler do you use?

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  Q139
                  wrote on 19 Mar 2015, 17:22 last edited by
                  #8

                  Sorry for long response ,
                  Running windows 7 Pro and mingw compiler.
                  In terminal all works perfect , problem mostly is with floating window or variables tab on right under debug.
                  Sometimes floating window turn gray and hard to see content,
                  Probably will install linux version of qt also if it very stable.

                  1 Reply Last reply
                  0

                  1/8

                  14 Mar 2015, 07:10

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved