Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-06

GTK2 Lazarus Project, but I want QT.

53 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Catalin Zamfir Alexandru
to Mattias Gaertner

Yes, and I get a "can't find unit qtint" error. Why that?

Mattias Gaertner wrote 20 lines
On Wed, 20 Jun 2007 18:58:31 +0300 Catalin Zamfir Alexandru wrote: > Hello, I've made this KCalculator for KDE: > http://kde-apps.org/content/show.php/KCalculator?content=60813 > > I want to compile the project in QT, not GTK2. How can I do that? > When I try it [switching from GTK2 to QT in the Compiler Options], > the project.lpr file opens up, instead of compiling. > > Help?! Did you read http://wiki.lazarus.freepascal.org/Qt_Interface ? Mattias _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

Yes, built LCL for the Qt Interface. Compilation went great.

Felipe Monteiro de Carvalho wrote 5 lines
On 6/20/07, Catalin Zamfir Alexandru wrote: > Yes, and I get a "can't find unit qtint" error. Why that? Did you rebuild LCL for the Qt interface? You need write access to your lazarus directory to do that.

Reply by email

Catalin Zamfir Alexandru
to Vincent Snijders: On Wed, 20 Jun 2007 23:58:15 +0300 A trick question: how did you do that exactly? Vincent

According to the instructions on the Qt_Interface Lazarus Wiki Page.

Vincent Snijders wrote 11 lines
On Wed, 20 Jun 2007 23:58:15 +0300 Catalin Zamfir Alexandru wrote: > Yes, built LCL for the Qt Interface. Compilation went great. A trick question: how did you do that exactly? Vincent _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to micahel schneider: Is your installed QT version the same as the version of the bindings (QT 4.3 in V1.37)?

I have Qt 3.6 [the last in the Gentoo package]. Do I really need Qt 4.3, V1.37?!

micahel schneider wrote 14 lines
Am Mittwoch 20 Juni 2007 schrieb Vincent Snijders: > On Wed, 20 Jun 2007 23:58:15 +0300 > > Catalin Zamfir Alexandru wrote: > > Yes, built LCL for the Qt Interface. Compilation went great. Is your installed QT version the same as the version of the bindings (QT 4.3 in V1.37)? _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: Can you put the source code somewhere so I can test? By using Qt opensource you will need…

I've attached them. I released KCalc in GPL. Sincerely, it was a program that made me learn Lazarus, with the knowledge from Delphi. I'd like to continue the project, but with the QT interface, because as you know, KDE is based on QT and the complained on the fact that I used GTK2 as a widget set.

Felipe Monteiro de Carvalho wrote 7 lines
On 6/20/07, Catalin Zamfir Alexandru wrote: > Yes, built LCL for the Qt Interface. Compilation went great. Can you put the source code somewhere so I can test? By using Qt opensource you will need to release your software under GPL anyway, so I suppose this is no problem.

Reply by email

Catalin Zamfir Alexandru
to Unknown author: ----- Original Message ----- From: Catalin Zamfir Alexandru That is what I assume you…

Went and compiled Clean + Build on LCL, while setting the rest to None. Selected Qt as interface and the went on with the normal compilation [Build Lazarus and all, acording to the info on the Wiki].

Show quoted text 20 lines
----- Original Message ----- From: Catalin Zamfir Alexandru > According to the instructions on the Qt_Interface Lazarus Wiki Page. That is what I assume you did. But to make sure you did all the required steps, I asked if you could outline them in your own words. > On Thursday 21 June 2007 00:49, Vincent Snijders wrote: > > On Wed, 20 Jun 2007 23:58:15 +0300 > > > > Catalin Zamfir Alexandru wrote: > > > Yes, built LCL for the Qt Interface. Compilation went great. > > > > A trick question: how did you do that exactly? Vincent _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Catalin Zamfir Alexandru

I re-re-recompiled. Now, when setting QT on my project I don't receive the "can't find unit qtint" error which is good, but I receive errors from:

/usr/lib/libqtintf.so: different errors here from QT classes/functions.

Which I asume is the fact that I don't have QT 4.3 installed. Do you guys agree or think it's something else.

Catalin Zamfir Alexandru wrote 29 lines
Went and compiled Clean + Build on LCL, while setting the rest to None. Selected Qt as interface and the went on with the normal compilation [Build Lazarus and all, acording to the info on the Wiki]. On Thursday 21 June 2007 10:21, wrote: > ----- Original Message ----- > From: Catalin Zamfir Alexandru > > > According to the instructions on the Qt_Interface Lazarus Wiki Page. > > That is what I assume you did. But to make sure you did all the required > steps, I asked if you could outline them in your own words. > > > On Thursday 21 June 2007 00:49, Vincent Snijders wrote: > > > On Wed, 20 Jun 2007 23:58:15 +0300 > > > > > > Catalin Zamfir Alexandru wrote: > > > > Yes, built LCL for the Qt Interface. Compilation went great. > > > > > > A trick question: how did you do that exactly? > > Vincent > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Catalin Zamfir Alexandru

I had qt 4.2 or something with qt3support. Well, I'm updating my system to qt4.3 so that these bindings will be compatible.

Once I do that, I'm going to get the Qt package again, recompile LCL and test the program.

Have any of you made it work on Qt?!

Catalin Zamfir Alexandru wrote 42 lines
I re-re-recompiled. Now, when setting QT on my project I don't receive the "can't find unit qtint" error which is good, but I receive errors from: /usr/lib/libqtintf.so: different errors here from QT classes/functions. Which I asume is the fact that I don't have QT 4.3 installed. Do you guys agree or think it's something else. On Thursday 21 June 2007 09:50, Catalin Zamfir Alexandru wrote: > Went and compiled Clean + Build on LCL, while setting the rest to None. > Selected Qt as interface and the went on with the normal compilation > [Build Lazarus and all, acording to the info on the Wiki]. > > On Thursday 21 June 2007 10:21, wrote: > > ----- Original Message ----- > > From: Catalin Zamfir Alexandru > > > > > According to the instructions on the Qt_Interface Lazarus Wiki Page. > > > > That is what I assume you did. But to make sure you did all the > > required steps, I asked if you could outline them in your own words. > > > > > On Thursday 21 June 2007 00:49, Vincent Snijders wrote: > > > > On Wed, 20 Jun 2007 23:58:15 +0300 > > > > > > > > Catalin Zamfir Alexandru wrote: > > > > > Yes, built LCL for the Qt Interface. Compilation went great. > > > > > > > > A trick question: how did you do that exactly? > > > > Vincent > > _______________________________________________ > > fpc-pascal maillist - > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Unknown author
to Catalin Zamfir Alexandru: According to the instructions on the Qt_Interface Lazarus Wiki Page.

----- Original Message -----
From: Catalin Zamfir Alexandru

According to the instructions on the Qt_Interface Lazarus Wiki Page.

That is what I assume you did. But to make sure you did all the required steps, I asked if you could outline them in your own words.

Show quoted text 9 lines
On Thursday 21 June 2007 00:49, Vincent Snijders wrote: > On Wed, 20 Jun 2007 23:58:15 +0300 > > Catalin Zamfir Alexandru wrote: > > Yes, built LCL for the Qt Interface. Compilation went great. > > A trick question: how did you do that exactly? >

Vincent

Reply by email

Den Jean
to Felipe Monteiro de Carvalho
am Felipe Monteiro de Carvalho wrote
I am trying here, but it's hard to install qt 4.3 on my Mandriva ... I found some pre-compiled packages, but they require that I update my glibc (and I am definetively not doing that, it's easier to reinstall the entire os)

Linux:
download from trolltech Qt 4.3 source.
compile and install. By far the easiest.
The compile options are important.
The default compile options do not even add Font AA.

mine was configured with:
./configure -prefix /usr -opengl -xrender -xcursor -xrandr

for Mandriva 2007 Spring do
urpmi libxrender1-devel libxcursor1-devel libxrandr2-devel libxinerama1 libxinerama1-devel libmesagl1-devel libmesaglu1-devel to have all the required files for compilation.

Windows:
download and install from trolltech.
do not forget to set environment variable of Qt

regards,

Den Jean

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: In the next few days I will add a conditional define to select if you want to work with…

I may have the easiest job of them all. I'm updating my Gentoo QT to 4.3 which compiles the source, installs it and makes all necesary adjustments.

Still compiling. 4 hours have passed and Qt is still compiling. Sincerely, don't know why I even bother, but once it's finished I just hope the errors in Lazarus will be gone and I can provide you guys with some feedback on what libqtintf.so and the Qt4.pas unit are saying.

I'll be happy if it will work "out-of-the-box", but I'm not that optimistic. I'll be back in a few hours. Oh, btw. Great mailing-list. I never thought feedback and help were so prompt.

Felipe Monteiro de Carvalho wrote 6 lines
In the next few days I will add a conditional define to select if you want to work with Qt 4.3 or Qt 4.2 This should allow for more flexibility when deploying the application. bye,

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

Ok, it works but I have problems:

1. MessageDlg function shows the text, but doesn't show the buttons [mbOK] and [mbCancel].
2. The menu in KCalculator doesn't show. It's there, but the EditResult TEdit component along with the butons just top it, instead of sitting right below it, they float over it.

As I remember, Qt 4.3 support is incomplete in Lazarus/FreePascal, ain't it?

Felipe Monteiro de Carvalho wrote 6 lines
In the next few days I will add a conditional define to select if you want to work with Qt 4.3 or Qt 4.2 This should allow for more flexibility when deploying the application. bye,

Reply by email

Daniël Mantione
to Catalin Zamfir Alexandru: I may have the easiest job of them all. I'm updating my Gentoo QT to 4.3 which compiles…

Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru:

I may have the easiest job of them all. I'm updating my Gentoo QT to 4.3 which compiles the source, installs it and makes all necesary adjustments. Still compiling. 4 hours have passed and Qt is still compiling.

QT takes a **very** long time to compile. Don't be surprised if it is 24 hours or so.

Daniël

Reply by email

Felipe Monteiro de Carvalho
to Den Jean

I just added here support for Qt 4.2

Only some ifdefs to switch between qt4 and the qt42 unit were necessary.

You can turn the Qt 4.2 mode using the define USE_QT_4_2. commited on revision 11352

Unfortunately it didn't work. Compiles and links fine, but crashes at startup. Not sure what is wrong, however. Anyway, I need to go now, I'll be back in manyy hours or in the weekend.

test]$ ./projecttest
Gleitkomma-Ausnahme

Lol! Maybe it wasn't a good idea to change my linux to german =) I have no idea what this means ... only that Ausnahme=exception

Possibilities:
1 - I need to upgrade my Qt 4.2.2 to 4.2.3
2 - The quick bindings that Dean made are broken.

Backtrace just for the record:

test]$ ./projecttest
Gleitkomma-Ausnahme

(gdb) break fpc_raiseexception
Breakpoint 1 at 0x805b00a
(gdb) run
Starting program: /home/felipe/Programas/test/projecttest Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xbfffe000

Program received signal SIGFPE, Arithmetic exception. 0xb7f0e95f in do_lookup_x (undef_name=0xb70427e0 "__cxa_finalize", hash=199910549, ref=0xb70426d4, result=0xbf830990, scope=0xb7f1f838, i=1, version=0xb7041f50, flags=0, skip=0x0, type_class=Variable "type_class" is not available.
) at do-lookup.h:72
72 do-lookup.h: Datei oder Verzeichnis nicht gefunden. in do-lookup.h
(gdb) bt
#0 0xb7f0e95f in do_lookup_x (undef_name=0xb70427e0 "__cxa_finalize", hash=199910549, ref=0xb70426d4, result=0xbf830990, scope=0xb7f1f838, i=1, version=0xb7041f50, flags=0, skip=0x0, type_class=Variable "type_class" is not available.
) at do-lookup.h:72
#1 0xb7f0ec77 in _dl_lookup_symbol_x (undef_name=0xb70427e0 "__cxa_finalize", undef_map=0xb7276af8, ref=0xbf830ab0, symbol_scope=0xb7276ca0, version=0xb7041f50, type_class=0, flags=0, skip_map=0x0) at dl-lookup.c:233 #2 0xb7f10253 in _dl_relocate_object (l=Variable "l" is not available. ) at ../sysdeps/i386/dl-machine.h:354
#3 0xb7f0931f in dl_main (phdr=0x8048034, phnum=160, user_entry=0xbf830ea0) at rtld.c:2235
#4 0xb7f1842e in _dl_sysdep_start (start_argptr=0xbf830f00, dl_main=0xb7f08050 <dl_main>) at ../elf/dl-sysdep.o:239 #5 0xb7f07709 in _dl_start (arg=0xbf830f00) at rtld.c:333 #6 0xb7f06847 in _start () at rtld.c:788
(gdb)

In case anyone is wondering by this bizarre error, the app does work fine with Gtk 2

Reply by email

Alain Michaud
to Daniël Mantione: Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru: QT takes a **very** long time to…

Hi,

I am currently running in KDE-3.4. I am going to ruin my system if I try to compile QT-4 ?

thanks

Alain

Daniël Mantione wrote 13 lines
Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru: > I may have the easiest job of them all. I'm updating my Gentoo QT to 4.3 > which compiles the source, installs it and makes all necesary adjustments. > > Still compiling. 4 hours have passed and Qt is still compiling. QT takes a **very** long time to compile. Don't be surprised if it is 24 hours or so. Daniël _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Alain Michaud

If you're on Gentoo and enable the qt3support flag, no, you will not.

Alain Michaud wrote 28 lines
Hi, I am currently running in KDE-3.4. I am going to ruin my system if I try to compile QT-4 ? thanks Alain On Thu, 2007-06-21 at 14:30 +0200, Daniël Mantione wrote: > Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru: > > I may have the easiest job of them all. I'm updating my Gentoo QT to > > 4.3 which compiles the source, installs it and makes all necesary > > adjustments. > > > > Still compiling. 4 hours have passed and Qt is still compiling. > > QT takes a **very** long time to compile. Don't be surprised if it is 24 > hours or so. > > Daniël > _______________________________________________ fpc-pascal maillist - > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: Please submit bug reports for these issues. I didn't really understand the second one, so…

Please point me to the FreePascal/Lazarus BugZilla. :P

Felipe Monteiro de Carvalho wrote 16 lines
On 6/21/07, Catalin Zamfir Alexandru wrote: > 1. MessageDlg function shows the text, but doesn't show the buttons > [mbOK] and [mbCancel]. > 2. The menu in KCalculator doesn't show. It's there, but the EditResult > TEdit component along with the butons just top it, instead of sitting > right below it, they float over it. Please submit bug reports for these issues. I didn't really understand the second one, so attaching a screenshot on the bug report will be a good idea. On both cases a test app is a great thing. I also hope to get Qt 4.2 support working in 1 or 2 weeks. bye,

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: Ok, it works but I have problems: 1. MessageDlg function shows the text, but doesn't show…
Catalin Zamfir Alexandru wrote 5 lines
1. MessageDlg function shows the text, but doesn't show the buttons [mbOK] and [mbCancel]. 2. The menu in KCalculator doesn't show. It's there, but the EditResult TEdit component along with the butons just top it, instead of sitting right below it, they float over it.

Please submit bug reports for these issues.

I didn't really understand the second one, so attaching a screenshot on the bug report will be a good idea. On both cases a test app is a great thing.

I also hope to get Qt 4.2 support working in 1 or 2 weeks.

bye,

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: On 6/23/07, Felipe Monteiro de Carvalho Ok, I found out, at least on my Mac. Mac programs…

Yes, I use Linux, 2.6.18 kernel, but I really don't think that something has to do with this. Don't really think that the Mac problem repeats itself in Linux.

I could try to change the "About" and "Close" captions, but really, don't think it would do any good. In any case, I'll reply if it worked.

You can download KCalculator from an attachement early in this thread and compile it on a QT 4.3 Interface. If you can't find the attachement I'll make a screenshot. I'm kind of tied-up with work for the moment but I'll try to give you feedback.

Felipe Monteiro de Carvalho wrote 21 lines
On 6/23/07, Felipe Monteiro de Carvalho wrote: > The menu problem is really wierd. > > On a small test app the menus show correctly, I still haven't found > what makes one work and the other not. Ok, I found out, at least on my Mac. Mac programs have a different menu structure. So, when Qt sees a menu with the caption 'Close' it moves it to another position. The same with 'About', and then it refuses to show the part menu because it is empty. If you add more items to the menus, they are shown correctly. But since you are using Linux, I don't really know what is happening =) (a screenshot would be nice) I haven't noted problems with the menus, except for this "Qt feature"

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
The menu problem is really wierd. On a small test app the menus show correctly, I still haven't found what makes one work and the other not.

Ok, I found out, at least on my Mac.

Mac programs have a different menu structure. So, when Qt sees a menu with the caption 'Close' it moves it to another position. The same with 'About', and then it refuses to show the part menu because it is empty.

If you add more items to the menus, they are shown correctly.

But since you are using Linux, I don't really know what is happening =) (a screenshot would be nice)

I haven't noted problems with the menus, except for this "Qt feature"

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: Yes, I use Linux, 2.6.18 kernel, but I really don't think that something has to do with…
Catalin Zamfir Alexandru wrote
You can download KCalculator from an attachement early in this thread and compile it on a QT 4.3 Interface. If you can't find the attachement I'll make a screenshot.

I have found the attachment, but I still want a screenshot because I didn't understand the problem with the menus.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

I've attached the two screenshots:

1. Showing the original form in Lazarus with the menu. Compiles excellent on the GTK2 Interface.
2. Showing the Compiled version on QT, where the menu doesn't show but if you click where it should have been, it opens, while the EditResult Field and the buttons overflow the menu.

Also, menu-left icons/pictures that I inserted don't show on QT, but they show in the GTK2 version. [I've added an icon to every menu entry, and they don't show in QT in other words].

Hope this helps.

Felipe Monteiro de Carvalho wrote 9 lines
On 6/23/07, Catalin Zamfir Alexandru wrote: > You can download KCalculator from an attachement early in this > thread and compile it on a QT 4.3 Interface. If you can't find the > attachement I'll make a screenshot. I have found the attachment, but I still want a screenshot because I didn't understand the problem with the menus. thanks,

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru
Catalin Zamfir Alexandru wrote
2. Showing the Compiled version on QT, where the menu doesn't show but if you click where it should have been, it opens, while the EditResult Field and the buttons overflow the menu.

Ah, now I know what happens. Qt doesn´t move the other controls down when there is a menu present ... I need to investigate how to implement this. There must be some way to get Qt to do this automatically....

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

You're of the Lazarus/FreePascal developers? As far as this thread went, I believe you are :D.

Besides this Qt error, what does a developer have to know to enter the FreePascal/Lazarus developer team? I'd like to learn and help you guys back.

Felipe Monteiro de Carvalho wrote 9 lines
On 6/23/07, Catalin Zamfir Alexandru wrote: > 2. Showing the Compiled version on QT, where the menu doesn't show but if > you click where it should have been, it opens, while the EditResult Field > and the buttons overflow the menu. Ah, now I know what happens. Qt doesn´t move the other controls down when there is a menu present ... I need to investigate how to implement this. There must be some way to get Qt to do this automatically....

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: I just fixed the menu bug =) I had to put a central widget, on top of which the other…

Ok, so how do I do to update my QT/Lazarus for the fix you just made?

Oh, and by the way, when using MessageDlg (..., ...., [mbOK, mbCancel], ...) or any other combination, the buttons don't show, the alert box is as wide as the screen [it should be small, relative to the text as in the GTK2 mode] and no action can be taken on the box, because of the two missing buttons.

I've used MessageDlg in KCalculator so if you want, you can test it on the Qt Interface, when you push File -> Quit or the Off button, the procedure is invoked, but the buttons are missing.

Felipe Monteiro de Carvalho wrote 17 lines
Hi, I just fixed the menu bug =) I had to put a central widget, on top of which the other ones will be placed. The same thing the Gtk interface made. On 6/23/07, Catalin Zamfir Alexandru wrote: > Besides this Qt error, what does a developer have to know to > enter the FreePascal/Lazarus developer team? I'd like to learn and help > you guys back. Well, just by sending patches which fix bugs and/or implement new features you already participate on the developing process. There is a wiki page which explains this here: http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: You're of the Lazarus/FreePascal developers? As far as this thread went, I believe you…

Hi,

I just fixed the menu bug =)

I had to put a central widget, on top of which the other ones will be placed. The same thing the Gtk interface made.

Catalin Zamfir Alexandru wrote
Besides this Qt error, what does a developer have to know to enter the FreePascal/Lazarus developer team? I'd like to learn and help you guys back.

Well, just by sending patches which fix bugs and/or implement new features you already participate on the developing process.

There is a wiki page which explains this here:
http://wiki.lazarus.freepascal.org/How_To_Help_Developing_Lazarus

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: Ok, so how do I do to update my QT/Lazarus for the fix you just made? Oh, and by the way,…
Catalin Zamfir Alexandru wrote
Ok, so how do I do to update my QT/Lazarus for the fix you just made?

To update you need to use a subversion Lazarus.

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Via_SVN

Oh, and by the way, when using MessageDlg (..., ...., [mbOK, mbCancel], ...) or any other combination, the buttons don't show, the alert box is as wide as the screen [it should be small, relative to the text as in the GTK2 mode] and no action can be taken on the box, because of the two missing buttons.

What version of Lazarus are you using?

Here it works perfectly. Was probably fixed some time ago.

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

Ok. I'll grab a SVN Lazarus and recompile. I'm still using the FPC 2.0.4 and corespondent Lazarus. Updating sure makes wonders ...

Felipe Monteiro de Carvalho wrote 16 lines
On 6/24/07, Catalin Zamfir Alexandru wrote: > Ok, so how do I do to update my QT/Lazarus for the fix you just made? To update you need to use a subversion Lazarus. http://wiki.lazarus.freepascal.org/Getting_Lazarus#Via_SVN > Oh, and by the way, when using MessageDlg (..., ...., [mbOK, > mbCancel], ...) or any other combination, the buttons don't show, the > alert box is as wide as the screen [it should be small, relative to the > text as in the GTK2 mode] and no action can be taken on the box, because > of the two missing buttons. What version of Lazarus are you using? Here it works perfectly. Was probably fixed some time ago.

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru
Catalin Zamfir Alexandru wrote
Ok. I'll grab a SVN Lazarus and recompile. I'm still using the FPC 2.0.4 and corespondent Lazarus.

Lazarus and FPC don't make releases at the same time. There is usually more then 1 Lazarus version for each FPC version.

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

I'm constantly getting this error when trying to compile the SVN Lazarus:

/usr/bin/ld: cannot find -lgdk_pixbuf

Ideas on how to fix it? What package am I missing? I've searched the .net, no answer ...

Felipe Monteiro de Carvalho wrote 6 lines
On 6/24/07, Catalin Zamfir Alexandru wrote: > Ok. I'll grab a SVN Lazarus and recompile. I'm still using the FPC 2.0.4 > and corespondent Lazarus. Lazarus and FPC don't make releases at the same time. There is usually more then 1 Lazarus version for each FPC version.

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: Can't find it in the Gentoo package maintainer. Damn ...
Catalin Zamfir Alexandru wrote
Can't find it in the Gentoo package maintainer. Damn ...

It is a development package required to build gtk 1 applications. It must be there.

If you find the gtk2 development packages but don´t find the gtk1 ones you can build your IDE with Gtk 2. Has some bugs, but works ok until you find the gtk 1 packages.

make clean all LCL_PLATFORM=gtk2

Felipe Monteiro de Carvalho

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho

Perfect. It compiled for GTK1 and that had big menus with big fonts, totally inesthetic.

Anyway, now I have 0.9.23-beta with a SVN Revision: 11365. Is this the latest one that you modified with the Qt patch? Hope so ... :).

Felipe Monteiro de Carvalho wrote 11 lines
On 6/24/07, Catalin Zamfir Alexandru wrote: > Can't find it in the Gentoo package maintainer. Damn ... It is a development package required to build gtk 1 applications. It must be there. If you find the gtk2 development packages but don´t find the gtk1 ones you can build your IDE with Gtk 2. Has some bugs, but works ok until you find the gtk 1 packages. make clean all LCL_PLATFORM=gtk2

Reply by email

Catalin Zamfir Alexandru
to Catalin Zamfir Alexandru

Great. I've recompiled KCalculator for Qt and the menu bug is gone. Although, we have some more problems, that I'll enumerate here and hope that this feedback helps you guys fix them:

1. The menu icons don't show. In GTK2, custom [a.k.a. inserted by me .ico files] submenu icons show on every entry, but in the Qt version submenu icons don't 't know if that's the same with menu icons, but still.

2. The menu is higher than the normal Qt menus in all my KDE/Qt-based software. I'm comparing the menu from KMail with the one from Qt-KCalculator and KCalculator's menu is higher. The GTK2 Menu keeps the normal proportions as all the other apps on my system, due to the fact that I have a compatibility engine between GTK and KDE so as to make GTK2 look like QT. But that's not the problem. The problem is that generated Lazarus programs based on the Qt interface have higher menus [a few pixels more] than what it should be.

3. It doesn't respect the Font I use system-wide. I use Tahoma 8 system-wide and all my QT-KDE/GTK applications respect this rule, but Qt-KCalculator doesn't respect the rule, while GTK-KCalculator respects it.

Any ideas?!

Catalin Zamfir Alexandru wrote 22 lines
Perfect. It compiled for GTK1 and that had big menus with big fonts, totally inesthetic. Anyway, now I have 0.9.23-beta with a SVN Revision: 11365. Is this the latest one that you modified with the Qt patch? Hope so ... :). On Sunday 24 June 2007 13:32, Felipe Monteiro de Carvalho wrote: > On 6/24/07, Catalin Zamfir Alexandru wrote: > > Can't find it in the Gentoo package maintainer. Damn ... > > It is a development package required to build gtk 1 applications. It > must be there. > > If you find the gtk2 development packages but don´t find the gtk1 ones > you can build your IDE with Gtk 2. Has some bugs, but works ok until > you find the gtk 1 packages. > > make clean all LCL_PLATFORM=gtk2 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Catalin Zamfir Alexandru
to Felipe Monteiro de Carvalho: I would say this is the perfect oportunity if you wish to help lazarus =) Those bugs…

One little question:

- how do I read the Qt docs? Do I read the official one and hope that the C/C++ Qt functions have the same name in FPC? Or is there a deposit for this?
- do I import the Qt units in FPC to make that program or do I use the Lazarus Source code editor without a form [visual design IDE] as it would be easier?
- Any other info you could tell me that may be usefull? Of course, I'll tackle these cosmetic bugs as soon as my GED is over. [General Education Development Test. :P I just finished high-school and taking my big exams now in hope that I'll end at the Politechnic Faculty in Bucharest :D so time is of the esence right now].

Sorry to ask you such questions, but information is quite sparse.

Felipe Monteiro de Carvalho wrote 58 lines
On 6/24/07, Catalin Zamfir Alexandru wrote: > Great. I've recompiled KCalculator for Qt and the menu bug is gone. > Although, we have some more problems, that I'll enumerate here and hope > that this feedback helps you guys fix them: I would say this is the perfect oportunity if you wish to help lazarus =) Those bugs aren't too hard to solve. They will consume some time, but Qt is easy to use, and this helps a lot. I think I eliminated the worse show-stopper bugs already, and that was my objective. The remaining are mostly cosmetics. If you wish to try for yourself read the hints bellow. If not, post bug reports on the bug tracker. I will put them somewhere on my ToDo list, but be warned that this list is imense. By the way, you should be aware that there is a mailling list dedicated only to Lazarus-Qt: http://wiki.lazarus.freepascal.org/Qt_Interface#Mailling_List > 1. The menu icons don't show. In GTK2, custom [a.k.a. inserted by me .ico > files] submenu icons show on every entry, but in the Qt version submenu > icons don't 't know if that's the same with menu icons, > but still. This shouldn't be hard to implement. First write a simple pascal qt application without lcl that creates a main window, a menu and adds a icon to the menu to understand how to do that with Qt. Next go to the lcl qt interface, locate where the menus are implemented and see where this feature should be implemented. > 2. The menu is higher than the normal Qt menus in all my KDE/Qt-based > software. I'm comparing the menu from KMail with the one from > Qt-KCalculator and KCalculator's menu is higher. The GTK2 Menu keeps the > normal proportions as all the other apps on my system, due to the fact > that I have a compatibility engine between GTK and KDE so as to make GTK2 > look like QT. But that's not the problem. The problem is that generated > Lazarus programs based on the Qt interface have higher menus [a few > pixels more] than what it should be. I have no idea about this one. Generate a simple pascal qt application without lcl and see if the problem is there too. > 3. It doesn't respect the Font I use system-wide. I use Tahoma 8 > system-wide and all my QT-KDE/GTK applications respect this rule, but > Qt-KCalculator doesn't respect the rule, while GTK-KCalculator respects > it. I don't know about this one too. AFAIK lcl qt won't try to force any fonts, it should just use the default system ones. Again, write a pascal qt app without lcl and see if this also happens on this application. If yes, read qt docs and find out how to do what you want. bye,

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: Great. I've recompiled KCalculator for Qt and the menu bug is gone. Although, we have…
Catalin Zamfir Alexandru wrote
Great. I've recompiled KCalculator for Qt and the menu bug is gone. Although, we have some more problems, that I'll enumerate here and hope that this feedback helps you guys fix them:

I would say this is the perfect oportunity if you wish to help lazarus =) Those bugs aren't too hard to solve. They will consume some time, but Qt is easy to use, and this helps a lot.

I think I eliminated the worse show-stopper bugs already, and that was my objective. The remaining are mostly cosmetics.

If you wish to try for yourself read the hints bellow. If not, post bug reports on the bug tracker. I will put them somewhere on my ToDo list, but be warned that this list is imense.

By the way, you should be aware that there is a mailling list dedicated only to Lazarus-Qt:

http://wiki.lazarus.freepascal.org/Qt_Interface#Mailling_List

1. The menu icons don't show. In GTK2, custom [a.k.a. inserted by me .ico files] submenu icons show on every entry, but in the Qt version submenu icons don't 't know if that's the same with menu icons, but still.

This shouldn't be hard to implement. First write a simple pascal qt application without lcl that creates a main window, a menu and adds a icon to the menu to understand how to do that with Qt.

Next go to the lcl qt interface, locate where the menus are implemented and see where this feature should be implemented.

Show quoted text 8 lines
2. The menu is higher than the normal Qt menus in all my KDE/Qt-based software. I'm comparing the menu from KMail with the one from Qt-KCalculator and KCalculator's menu is higher. The GTK2 Menu keeps the normal proportions as all the other apps on my system, due to the fact that I have a compatibility engine between GTK and KDE so as to make GTK2 look like QT. But that's not the problem. The problem is that generated Lazarus programs based on the Qt interface have higher menus [a few pixels more] than what it should be.

I have no idea about this one. Generate a simple pascal qt application without lcl and see if the problem is there too.

3. It doesn't respect the Font I use system-wide. I use Tahoma 8 system-wide and all my QT-KDE/GTK applications respect this rule, but Qt-KCalculator doesn't respect the rule, while GTK-KCalculator respects it.

I don't know about this one too. AFAIK lcl qt won't try to force any fonts, it should just use the default system ones.

Again, write a pascal qt app without lcl and see if this also happens on this application. If yes, read qt docs and find out how to do what you want.

bye,

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Catalin Zamfir Alexandru: One little question: - how do I read the Qt docs? Do I read the official one and hope…
Catalin Zamfir Alexandru wrote
- how do I read the Qt docs?

http://doc.trolltech.com/

Do I read the official one and hope that the C/C++ Qt functions have the same name in FPC?

Sure they do

- do I import the Qt units in FPC to make that program or do I use the Lazarus Source code editor without a form [visual design IDE] as it would be easier?

You can use lazarus without the form editor, this should work fine. Just add the qt4.pas unit to your uses clause (it comes in your lazarus sources, in the lazarus/lcl/interfaces/qt directory) and start coding. You can copy this file to the same dir as your test projects to make it easier for fpc to find it.

There are pascal qt examples on the website of the bindings:

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

Show quoted text 5 lines
- Any other info you could tell me that may be usefull? Of course, I'll tackle these cosmetic bugs as soon as my GED is over. [General Education Development Test. :P I just finished high-school and taking my big exams now in hope that I'll end at the Politechnic Faculty in Bucharest :D so time is of the esence right now].

Sure, take you time.

bye,

Felipe Monteiro de Carvalho

Reply by email

micahel schneider
to Catalin Zamfir Alexandru: Great. I've recompiled KCalculator for Qt and the menu bug is gone. Although, we have…
Catalin Zamfir Alexandru wrote
Great. I've recompiled KCalculator for Qt and the menu bug is gone.
Show quoted text 15 lines
2. The menu is higher than the normal Qt menus in all my KDE/Qt-based software. I'm comparing the menu from KMail with the one from Qt-KCalculator and KCalculator's menu is higher. The GTK2 Menu keeps the normal proportions as all the other apps on my system, due to the fact that I have a compatibility engine between GTK and KDE so as to make GTK2 look like QT. But that's not the problem. The problem is that generated Lazarus programs based on the Qt interface have higher menus [a few pixels more] than what it should be. 3. It doesn't respect the Font I use system-wide. I use Tahoma 8 system-wide and all my QT-KDE/GTK applications respect this rule, but Qt-KCalculator doesn't respect the rule, while GTK-KCalculator respects it. Any ideas?!

I think your KDE (KMail etc) is using QT3
KCalculator is compiled with QT4 so the settings are others.

Reply by email