Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Solved] Visual Studio debug helpers - Qt5 and QString
Forum Updated to NodeBB v4.3 + New Features

[Solved] Visual Studio debug helpers - Qt5 and QString

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 16.2k Views 1 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.
  • E Offline
    E Offline
    ephe
    wrote on last edited by
    #1

    I cannot inspect QString since I'm using Qt5. I'm using Visual Studio 2008.

    I tried this approach: "Wiki":http://qt-project.org/wiki/IDE-debug-helpers, but I still cannot see the text of the QString.

    !http://dl.dropbox.com/u/2346027/qstring.PNG(QString)!

    In the autoexp.dat I commented the old QString and QByteArray definitions and inserted the new ones instead:

    @
    [Visualizer]
    ....
    QStringData{
    preview ([(unsigned short*)$e.d + 2 + $e.offset,su])
    stringview ([(unsigned short*)$e.d + 2 + $e.offset,sub])
    }
    QString{
    preview ([$e.d])
    }

    ;QString|*::QString{
    ; preview ([$e.d->data,su])
    ; stringview ([$e.d->data,sub])
    ; children
    ; (
    ; #(
    ; d: $c.d,
    ; [size]: $c.d->size,
    ; [referenced]: $c.d->ref._q_value
    ; )
    ; )
    ;}

    QByteArrayData{
    preview ([(unsigned char*)$e.d + 4 + $e.offset,s])
    stringview ([(unsigned char*)$e.d + 4 + $e.offset,sb])
    }

    QByteArray{
    preview ([$e.d])
    }

    ;QByteArray|*::QByteArray{
    ; preview ([$e.d->data,s])
    ; stringview ([$e.d->data,sb])
    ; children
    ; (
    ; #(
    ; d: $c.d,
    ; [size]: $c.d->size,
    ; [referenced]: $c.d->ref._q_value
    ; )
    ; )
    ;}
    ...
    @

    Does this also need to be changed? Or what else am I doing wrong?

    @
    [AutoExpand]
    ...
    QByteArray=<d->data,s> size=<d->size,u>
    ...
    @

    Thank you!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ephe
      wrote on last edited by
      #2

      Maybe someone can move this to the Tools forum?

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ihaa
        wrote on last edited by
        #3

        How about if you try with these:

        @
        QString|::QString{
        preview ([(unsigned short
        )$e.d + $e.d->offset/2,su])
        stringview ([(unsigned short*)$e.d + $e.d->offset/2,sub])
        }

        QByteArray|::QByteArray{
        preview ([(char
        )$e.d + $e.d->offset,s])
        stringview ([(char*)$e.d + $e.d->offset,sb])
        }
        @

        1 Reply Last reply
        0
        • E Offline
          E Offline
          ephe
          wrote on last edited by
          #4

          Thank you, this is working!

          1 Reply Last reply
          0

          • Login

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