Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to convert a qtdesigner generated jui file to executable application?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Qt WebKit
10 Posts 2 Posters 5.6k Views
  • 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 Offline
    G Offline
    gayathris
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      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
      0
      • G Offline
        G Offline
        gayathris
        wrote on last edited by
        #3

        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
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          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
          0
          • G Offline
            G Offline
            gayathris
            wrote on last edited by
            #5

            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
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              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
              0
              • G Offline
                G Offline
                gayathris
                wrote on last edited by
                #7

                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
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #8

                  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
                  0
                  • G Offline
                    G Offline
                    gayathris
                    wrote on last edited by
                    #9

                    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
                    0
                    • G Offline
                      G Offline
                      giesbert
                      wrote on last edited by
                      #10

                      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
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved