Results 1 to 10 of 10

Thread: Xcode Qt4 Custom Data Formatters (for viewing in the debugger)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    14
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Xcode Qt4 Custom Data Formatters (for viewing in the debugger)

    Hey Everyone,

    Xcode makes a very nice IDE for Qt for those of use doing our work on a mac. And though Creator is also shaping up to be a very nice IDE, it's one more tool to learn.

    It was irking me to no end that viewing the values of various QObjects wasn't possible in the Debugger. So I set out on a mission.

    The result of the mission is plugin bundle I wrote that does just that. The supported data types are limited as I just got started, but it covers:

    QString (displays the string)
    QModelIndex (displays something like row: 1, col: 5)
    QVariant (displays the toString() for it)
    QFile (displays the assigned file path)


    And I'm working on a QAbstractItemModel (I figure I'll show the metaobject's className property).

    Works with both pointers and instances of those data types "out the box".

    Anyway, during my searching I saw this come up quite a few times with no good solution for it, so here's my work:

    http://github.com/jameskyle/Qt4DataFormatter

  2. The following user says thank you to jkyle for this useful post:

    abey (14th May 2010)

Similar Threads

  1. QFileSystemModel: creating custom rows of data
    By masterlaws in forum Qt Programming
    Replies: 3
    Last Post: 12th August 2013, 11:58
  2. Debugger problem retrieving data for watch view hangs
    By frenk_castle in forum Installation and Deployment
    Replies: 0
    Last Post: 5th May 2010, 23:09
  3. Using QVariant with custom data type
    By QAlex in forum Qt Programming
    Replies: 3
    Last Post: 4th December 2009, 12:04
  4. Get custom data from qstandarditem?
    By alexandernst in forum Newbie
    Replies: 3
    Last Post: 11th August 2009, 03:24
  5. QAbstractTableModel , custom data
    By akon in forum Newbie
    Replies: 0
    Last Post: 17th April 2009, 16:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.