nite
nite

Reputation: 783

How to convert .ui file to .jui file?

Does anybody know how to convert a .ui file generated by Qt creator into a .jui file? The documentation says use Qt Generator, but I can't find how to download Qt Generator. Any help would be greatly appreciated.

-nt

Upvotes: 2

Views: 3808

Answers (2)

Smar
Smar

Reputation: 8611

I don’t have good grasp about what is going on with the question, but Qt does not have generator (although Jambi does have one, but it does not have support for this conversion from what I know, please fix me if I’m wrong).

Jambi does have a designer plugin that must be loaded into designer so that it can output .jui files. There is a script to launch the designer.

For manual conversion of the file see Ryan’s answer.

Upvotes: 0

Ryan
Ryan

Reputation: 84

  1. Open the .ui file using a text editor (I used gedit)
  2. Remove the first line of the file which looks something like this:

    <?xml version="1.0" encoding="UTF-8"?>

  3. Delete the whitespace on the top of the file.

  4. Modify this line of code : <ui version="4.0"> to look like this <ui version="4.0" language="jambi"> This line should be at the top of the file.

  5. Modify the file extension to be .jui

I had to do this and then convert the .jui into a .java file, which took some time to figure out, but if you need to do that and are stuck, I can help.

Upvotes: 3

Related Questions