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.

    Regards,
    Gayathri.



  • hi,
    which language bindings do you use?



  • Hi Gerolf,
    I downloaded QtDesigner and opened it and started working on the layout this way, and I have got this:
    !http://i51.tinypic.com/20iubmp.png(QTDesignerScreen)!
    Link: http://i51.tinypic.com/20iubmp.png

    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">
    <class>MainWindow</class>
    <widget class="QMainWindow" name="MainWindow">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>800</width>
    <height>600</height>
    </rect>
    </property>
    <property name="windowTitle">
    <string>MainWindow</string>
    </property>
    <widget class="QWidget" name="centralwidget">
    <widget class="QWebView" name="webView">
    <property name="geometry">
    <rect>
    <x>0</x>
    <y>0</y>
    <width>800</width>
    <height>600</height>
    </rect>
    </property>
    <property name="url">
    <url>
    <string>http://127.0.0.1:8088/index.php</string>
    </url>
    </property>
    </widget>
    </widget>
    </widget>
    <customwidgets>
    <customwidget>
    <class>QWebView</class>
    <extends>QWidget</extends>
    <header>com.trolltech.qt.webkit</header>
    </customwidget>
    </customwidgets>
    <resources/>
    <connections/>
    </ui>@



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.