Results 1 to 1 of 1

Thread: Cast to typedef in Visual Studio debugger

  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Cast to typedef in Visual Studio debugger

    Hi, when I'm debugging my application and add a variable to my "Watch" window. I can cast it to qreal there and get the correct value as a double (qreal is a typedef for double in qglobal.h).
    But when I try to cast to my own typedef I get a "bad type cast" error message.
    The "Type" column is also empty for my type, but for the qreal cast it says "double".

    What can I do to be able to use my typedefs in the Watch window?
    I crawled through my Visual Studio installation directory searching for qreal, but it did not find anything.

    Ginsengelf

    PS: Visual Studio 2005, with Qt Add-in 1.1.9, but I'd appreciate any ideas.
    PPS: added image. lWidth is an integer, int32 is my typedef for integer
    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: 10th September 2013, 13:15
  2. Qt Creator Can't integrate Creator with Visual Studio 2005 debugger
    By AndyBrice in forum Qt Tools
    Replies: 1
    Last Post: 11th November 2011, 00:11
  3. Replies: 0
    Last Post: 6th May 2011, 17:37
  4. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 17:46
  5. Visual studio Just in time Debugger
    By addu in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2009, 11:39

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.