Lazarus

Programming => Widgetset => QT => Topic started by: dscapuano on August 10, 2011, 10:48:07 pm

Title: Converting ui files from QT 4
Post by: dscapuano on August 10, 2011, 10:48:07 pm
I am new here and am just starting out with Lazarus and fpc.  I am running Linux Mint  11 on my old, cranky laptop.    %)

I have a bunch of .ui files created in QT4 designer.  How can I import these files into Lazarus. 

Thanks,
dc

Title: Re: Converting ui files from QT 4
Post by: JuhaManninen on August 10, 2011, 11:09:13 pm
I have a bunch of .ui files created in QT4 designer.  How can I import these files into Lazarus. 

You can't. You must make a new similar GUI using lazarus designer.

QT .ui XML file structure could easily be parsed and mapped to Lazarus .lfm and .pas files.
The problem would be the component types and their properties which don't easily map to Lazarus LCL components and properties.
The same problem is with any similar conversion, for example Visual Basic.

Still, such converters could be made even if they never reach a 100% conversion rate.
It only needs people to make them.
I have worked on the Delphi converter in Lazarus. Even that is very difficult when there is a missing component.

Juha
TinyPortal © 2005-2018