Hello,

The idea was to get these working so that both Qt4 and Qt5 classes work. But 
this seems quite challenging, or should I say mission impossible with this 
'autoexp.dat' approach the VS-addin uses. We need to think how to proceed with 
this issue.

Meanwhile, one can edit 'autoexp.dat' by hand to make things work. The file is 
located in  'Program Files (x86)\Microsoft Visual Studio 
10.0\Common7\Packages\Debugger'.

Here is an example of how to get QString and QByteArray "pretty" :)

QString|*::QString{
    preview    ([(unsigned short*)$e.d + $e.d->offset/2,su])
    stringview ([(unsigned short*)$e.d + $e.d->offset/2,sub])
    children
    (
        #(
            d: $c.d,
            [size]: $c.d->size,
            [referenced]: $c.d->ref.atomic._q_value
        )
    )
}

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

Just copy paste these over existing ones and debug watches should work. Or 
perhaps it is a good idea just to comment old ones away (using semicolon (;)) 
so it is easy to go back if Qt4 needs to work.

BR,
Ismo

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Andreas Holzammer
Sent: 30. elokuuta 2012 16:16
To: Haataja Ismo
Cc: [email protected]
Subject: Re: [Development] Qt5 Visual Studio Add-in 1.2.0 Beta

Hi Ismo,

we noticed that the "pretty printers" for  the debugger are not updated
to the Qt5 Datatypes. So its not possible to introspect eg QString. Will
this happen somewhen?

Thank you

Andy

Am 30.08.2012 15:04, schrieb Haataja Ismo:
> Hi,
> 
> Thank you Kevin!
> 
> There is now an updated installer where this problem should be solved.
> 
> http://origin.releases.qt-project.org/digia_vsaddin/
> 
> BR,
> Ismo
> 
> -----Original Message-----
> From: Kevin Funk [mailto:[email protected]] 
> Sent: 30. elokuuta 2012 10:22
> To: [email protected]
> Cc: Haataja Ismo
> Subject: Re: [Development] Qt5 Visual Studio Add-in 1.2.0 Beta
> 
> Hey,
> 
> while installing the add-in I get the following issue:
> 
> """
> Extract: qt5appwrapper.exe
> Output folder: C:\Program Files (x86)\Digia\Qt5VSAddin\help
> Registering C:\Program Files (x86)\Digia\Qt5VSAddin\q5makewrapper1.dll...
> Failed to load platform plugin "windows". Available platforms are: 
> 
> Registering of C:\Program Files (x86)\Digia\Qt5VSAddin\q5makewrapper1.dll 
> failed!
> (errorcode: 1)
> """
> 
> Installation continues, however.
> 
> I guess you are missing the platform plugin DLL?
> 


-- 
Andreas Holzammer | [email protected] | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to