How to convert a qtdesigner generated jui file to executable application?
I wanted to embed WebKit inside Java Application. I came to know about Qt Designer and used it to embed webkit and it was working fine. I used QWebView. I got a JUI file generated. Now how do I convert it or export it to an Executable JAR file or an application?
Please help me out with this.
which language bindings do you use?
I downloaded QtDesigner and opened it and started working on the layout this way, and I have got this:
Now its working perfectly when I click on Form » Preview in QtDesigner. But how should I export this as a standalone executable application? I haven't written a single piece of code yet. Thanks in advance.
Then you have to start writing code :-)
Designer only creates an XML file which can be moved to code then.
I propose using QtCreator and create a new Qt Project there. Then you can use your ui file there (why jui?)
It has an option only to save as a jui file. The jui file generated has only this:
@<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" language="jambi">
<widget class="QMainWindow" name="MainWindow">
<widget class="QWidget" name="centralwidget">
<widget class="QWebView" name="webView">
in fact, it is ui, :-)
you need do code the exe around, sorry.
Try to Install QtCreator (or better Qt SDK) and create a project, build etc...
Yes I am downloading QtSDK, thanx for your help Gerolf. And after installing QtSDK, how can I export? What will be the executable output? JAR/EXE?
Normally, an executable
Sure, thanks. I guess I will get the SDK installed by tomorrow evening (IST). Will you be able to guide me tomorrow if I have any queries? Tomorrow the same time, an hour or two before?
Depends, where I am then and what I do.
But start using the Qt tutorials or the QtCreator online help should help