Sign in Join

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

Mailing lists / lazarus / 2009-09

Qt Codification [Qt, GTK2 and Win32]

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Osvaldo Filho

Someone can make a little explanation on how to work with QT? What is equal? What is different? Why the commands begin with the letter "Q"? Can I use the same code with GTK2 and Win32?

Thanks.

Reply by email

Osvaldo Filho
to zeljko

anybody else?

2009/9/18 zeljko :

Show quoted text 25 lines
On Friday 18 September 2009 18:37, Osvaldo Filho wrote: > Someone can make a little explanation on how to work with QT? > What is equal? What is different? Why the commands begin with the letter > "Q"? http://qt.nokia.com http://qt.nokia.com/developer/faqs http://qt.nokia.com/doc/4.5/index.html http://qt.nokia.com/developer/community-resources > Can I use the same code with GTK2 and Win32? yes, if U use LCL , and not directly call Qt. zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Giuliano Colla
to Osvaldo Filho: anybody else? 2009/9/18 zeljko :

Osvaldo Filho ha scritto:

anybody else?

Well, it depends on what you want to achieve.
If you just want to use the Qt widgetset in Lazarus projects, in place of GTK1/GTK2, you have nothing else to do than get the current Qt bindings, compile the LCL for Qt widgetset, and select the Qt widgetset when compiling your project.

See http://wiki.lazarus.freepascal.org/Qt_Interface for detailed instructions.

In theory your code will be unchanged, because the LCL takes care of all the magic.
In real life you may find some Qt bugs different from GTK bugs which may force you either to introduce some Qt specific workaround, or to suppress some GTK workaround, which turns out to be harmful for Qt. Some sort of IFDEF LCLqt or IFDEF LCLgtk may pop up, but it depends on your specific project.

If on the contrary you're planning to use directly the Qt library for a non Lazarus FPC project, then you'll need Qt bindings, and Trolltech documentation.

Hope that it helps

Giuliano

Reply by email

Osvaldo Filho
to Giuliano Colla

Thank you.

2009/9/19 Giuliano Colla :

Show quoted text 41 lines
Osvaldo Filho ha scritto: > > anybody else? > > > Well, it depends on what you want to achieve. If you just want to use the Qt widgetset in Lazarus projects, in place of GTK1/GTK2, you have nothing else to do than get the current Qt bindings, compile the LCL for Qt widgetset, and select the Qt widgetset when compiling your project. See http://wiki.lazarus.freepascal.org/Qt_Interface for detailed instructions. In theory your code will be unchanged, because the LCL takes care of all the magic. In real life you may find some Qt bugs different from GTK bugs which may force you either to introduce some Qt specific workaround, or to suppress some GTK workaround, which turns out to be harmful for Qt. Some sort of IFDEF LCLqt or IFDEF LCLgtk may pop up, but it depends on your specific project. If on the contrary you're planning to use directly the Qt library for a non Lazarus FPC project, then you'll need Qt bindings, and Trolltech documentation. Hope that it helps Giuliano -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email