Recent

Author Topic: Converting ui files from QT 4  (Read 5037 times)

dscapuano

  • Newbie
  • Posts: 1
Converting ui files from QT 4
« 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


JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3647
  • I like bugs.
Re: Converting ui files from QT 4
« Reply #1 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