Recent

Author Topic: Can LCL classes use Qt or Gtk2 as their back-end?  (Read 5675 times)

vicot

  • Full Member
  • ***
  • Posts: 114
Can LCL classes use Qt or Gtk2 as their back-end?
« on: May 23, 2013, 05:41:25 pm »
I am a total newbie, so this might be a silly question.

Can LCL classes use Qt or Gtk2 as their back-end?
What I have in mind is TMemo. I would like to use Qt as its back-end. Is it possible?


JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Can LCL classes use Qt or Gtk2 as their back-end?
« Reply #1 on: May 23, 2013, 06:23:05 pm »
Can LCL classes use Qt or Gtk2 as their back-end?
What I have in mind is TMemo. I would like to use Qt as its back-end. Is it possible?

Yes, both are supported. For QT you also need a wrapper library. See:
 http://wiki.freepascal.org/Qt4_binding
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can LCL classes use Qt or Gtk2 as their back-end?
« Reply #2 on: May 24, 2013, 08:38:01 am »
Hmm... could you be any clearer? I'm afraid is not a simple backend change that you mean. Do you want to mix the backend? If yes, then the answer is no (except for Custom Drawn Interface). LCL project must choose one backend for the whole project. Say, either GTK2 or Qt, but not both mixed under the same compilation.

vicot

  • Full Member
  • ***
  • Posts: 114
Re: Can LCL classes use Qt or Gtk2 as their back-end?
« Reply #3 on: May 25, 2013, 06:43:02 am »
No, I did not mean mixing the back-ends. I just wanted to know about which back-ends are supported, and I am happy to learn that both Qt and Gtk are supported.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can LCL classes use Qt or Gtk2 as their back-end?
« Reply #4 on: May 25, 2013, 08:32:15 am »
Quote
No, I did not mean mixing the back-ends. I just wanted to know about which back-ends are supported, and I am happy to learn that both Qt and Gtk are supported.
Both our wiki and wikipedia already state the status of each widgetsets:
http://wiki.lazarus.freepascal.org/Roadmap
http://en.wikipedia.org/wiki/Lazarus_(IDE)#Lazarus_Component_Library

 

TinyPortal © 2005-2018