Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. (Newbie) Qt GUI Application
Forum Updated to NodeBB v4.3 + New Features

(Newbie) Qt GUI Application

Scheduled Pinned Locked Moved General and Desktop
11 Posts 6 Posters 5.0k Views 1 Watching
  • 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.
  • JeroentjehomeJ Offline
    JeroentjehomeJ Offline
    Jeroentjehome
    wrote on last edited by
    #2

    Hi, When you really want to use QML you might want to post this message in the "mobile" section. Qt is pretty great to code in C++ (with some GUI additions). What is your end goal? Why did you choose Qt if you don't have any experience with it?
    greetz

    Greetz, Jeroen

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #3

      First of all, I need to use a Serial Porta ou USB and Java it's not good enouth to handle with that, then we choose to use Qt because appers to be the best option in the market at the moment.
      We don't need to use as a mobile app, will be a desktop app (Mac OS, Linux and Window).
      C++ and Java is almost like, It's not too hard to learn C++, but If this possible to use JavaScript, will be better for us. It's possible use JS without use QML?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DerManu
        wrote on last edited by
        #4

        Pure C++ with Qt sounds like the right tool in my opinion. Why do you want to use JS? C++ is far superior to JS/QML, in fact, I doubt it's even possible to code sophisticated things like USB/Serial interaction with JS/QML.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #5

          I will need the C++ to use USB/Serial.
          I just want to know if I could use JS to controle the UI using "Qt GUI Application”, and avoid to use files .qml, I want to use .ui... you know?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DerManu
            wrote on last edited by
            #6

            You can absolutely use .ui with pure C++. Fire up QtCreator, create a gui application (Qt-Widget-Project > Qt-Gui-Application), design your user interface with the built in designer and start coding the UI behaviour in C++. I'm not sure what JS could add to this...

            1 Reply Last reply
            0
            • D Offline
              D Offline
              David_Gil
              wrote on last edited by
              #7

              Hi!

              If you use "Qt GUI Application", the code must be in C++.

              JavaScript can be used only with QML applications (which, by the way, can be mixed with C++ and JavaScript, AFAIK).

              Take care,

              David Gil

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dcbasso
                wrote on last edited by
                #8

                Thanks David_Gil, It's all I need to know! I will need to use the "Gt GUI Application" to use C++!

                Thank you very much!

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clepto
                  wrote on last edited by
                  #9

                  you can use qtjambi (java bindings for qt) http://qt-jambi.org/

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #10

                    Qt jambi is just a bit out of date, as it's current support is Qt 4.7.1, not 4.8.1 :-)

                    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
                    • D Offline
                      D Offline
                      dcbasso
                      wrote on last edited by
                      #11

                      Another question... Can I make all UI in HTML5 and use C++ to communicate with USB/Serial?

                      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