On Thursday, 1 August 2013 at 07:57:30 UTC, Russel Winder wrote:
On Wed, 2013-07-31 at 14:59 +0200, michaelc37 wrote:
for anyone still interested.

We're here :-)

after some itch scratching i finally got this to compile with dmd
2.063.2 on ubuntu 64bit -
https://bitbucket.org/michaelc37/qtd-experimental

here is what i did.

1) had to create auto_ref template for passing rvalues
     q: i remember some discussion on this, has a solution been
finalized?
2) modify generator so that it adds the "override" keyword where
necessary
3) modify generator so that structs are passed to cpp exported
functions as pointers.
q: i think that some d structs are objects in cpp (QRect?),
and when cpp read the data the alignment seem to be off(e.g.
height variable data, ended up in the x variable). Can somone
explain this?

Are you compiling against Qt4 or Qt5?

I don't have Ubuntu but do have Debian Unstable and Fedora 18 (will move to 19 when it is released). I'd be happy to be a test builder if that
would be helpful.

I have a PySide (Qt4) application that I would like to try
reimplementing in a native code language — I have to do some work on this anyway to switch back to PyQt since PyQt5 is about and PySide is stuck on Qt4). Options are C++, Go, D. Or possibly all of them. Now that Qt5 is out and about I am hesitant to do anything with Qt4, particularly
now there is a SCons tool for Qt5.

Thanks.

I compiled against Qt4, I want to try it on Qt5 soon but there is another annoying issue I discovered when trying to update and compile all of the qtd exmples: All slot functions must now be declared public.. I'm guessing something changed in traits recently.

I'll keep trying, but I'm not sure how much further I can go with this, as i don't have a solid c++ or qt background.

Reply via email to