Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    How to convert a qtdesigner generated jui file to executable application?

    Qt WebKit
    2
    10
    4992
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gayathris last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        hi,
        which language bindings do you use?

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply Reply Quote 0
        • G
          gayathris last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            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?)

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply Reply Quote 0
            • G
              gayathris last edited by

              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>@

              1 Reply Last reply Reply Quote 0
              • G
                giesbert last edited by

                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...

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply Reply Quote 0
                • G
                  gayathris last edited by

                  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?

                  1 Reply Last reply Reply Quote 0
                  • G
                    giesbert last edited by

                    Normally, an executable

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply Reply Quote 0
                    • G
                      gayathris last edited by

                      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?

                      1 Reply Last reply Reply Quote 0
                      • G
                        giesbert last edited by

                        Depends, where I am then and what I do.
                        But start using the Qt tutorials or the QtCreator online help should help

                        Nokia Certified Qt Specialist.
                        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post