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.

Mailing lists / lazarus / 2009-09
6 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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.
Osvaldo Filho wroteSomeone 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
anybody else?
2009/9/18 zeljko :
2009/9/18 Osvaldo Filho :
anybody else?
What part of reading the domain do you not
understand? Qt has excellent documentation and tutorials available online.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
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
Thank you.
2009/9/19 Giuliano Colla :