Felipe Monteiro de Carvalho schreef:
On 10/10/06, Vincent Snijders <[EMAIL PROTECTED]> wrote:
I tried to compile the qt interface on windows and first ran into the problem that
type
   PEvent = Pointer;
   Region = Pointer;

are not in the types unit for windows. For the moment I added these declaration in
line 95  of qt.pas.

I think this won´t work. There are some functions that only exist for
qt-x11. qt4 unit on interfaces/qt directory is a qt4 unit for X11. You
can download a qt4 unit for win32 here:

http://users.pandora.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

Den Jean will merge the win32, mac os and linux units (and possibly
qtopia too) in the near future, then this will be solved.


OK. I got the qt4.pas for windows and used that to compile the qt interface.

Then I compiled the hello application. No problem.

I made sure the interfaces dll and the qt dll's are on the path and ran the hello world. I only saw some flashes. Then I recompiled the application as a console application (so without -WG) and the hello world worked on windows too.

I saw the following text on the console: "Freeing resources". Maybe you can use debugln instead of writeln for showing this information.

All in all complements. This works better than gtk2.

I hope Den Jean can unify his qt4 unit.

What are the possibilities for adding the unit to the fpc repository?

I wonder what would be the best way to distribute the libqtintf.dll / so.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to