Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Moved] Qt Quick Components for Desktop
Forum Updated to NodeBB v4.3 + New Features

[Moved] Qt Quick Components for Desktop

Scheduled Pinned Locked Moved QML and Qt Quick
9 Posts 6 Posters 3.3k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Hi, guys. Could you explain me, how does this code works? I downloaded it. I compiled it. It has just qmldesktopviewer.exe. How to run my application in this viewer?

    "Qml components for Desktop?":http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      Hi,

      there are examples. Just pass path to files as argument to qmldesktopviewer.exe

      On my computer it looks like this:
      @
      nikolay@task-struct:~/Development/Download/desktop/qmldesktopviewer$ ./qmldesktopviewer ../examples/TopLevel.qml
      @

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #3

        Is there any possibility to create it as one executable file, without viewer?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          task_struct
          wrote on last edited by
          #4

          I`m not sure but I think that if qt components for desktop can run without qmldesktopviewer. qmldesktopviewer would not be writen.

          qmldesktopviewer is opensource, so you can use it`s code, add your qml code and create a single application.

          "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

          • Linu...
          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            You can of course also integrate the components into your stand-alone application.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jens
              wrote on last edited by
              #6

              I am the lead developer so I might be able to help you out. The QMLDesktopViewer is simply an alternative to the qmlviewer. The way you run normal Qt Quick applications is to do:
              "qmlviewer qmlfile.qml" and it will launch in it's own window. qmldesktopviewer works the same way.

              The reason you get qmldesktopviewer with the desktop components is that you might not want the default QMLViewer window with it's own menubar to be part of your desktop application so the only difference between qmlviewer and qmldesktop viewer is that it will not show a Window by default. Note that this means that you have to wrap your application inside a Window element for anything to show at all. To try it out, you simply run "qmldesktopviewer examples/TopLevel.qml"

              And of course you do not need to use the qmldesktopviewer when you compile your own application. You can just use a normal QDeclarativeView then, like any other Qt Quick application. There is no other magic involved to use desktop components. But if you use your own QDeclarativeWindow with your root item, you will not be able to control it's window properties.

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Might be a good idea to add a short Readme to desktop component's sources on gitorious. Last time I've checked, there was none, and I remember it took me a while to figure out how to run it, too.

                (Z(:^

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Jens
                  wrote on last edited by
                  #8

                  sierdzio: will do :)

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    obnusgnurz
                    wrote on last edited by
                    #9

                    We've put together a little tutorial and some startup code to build the "QML Desktop Components":http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/ on Windows with Visual Studio 2010 and our favorite build support tool "CMake":http://www.cmake.org/.

                    See our blog entry with the "detailed description":http://sharedrealitynews.blogspot.com/2012/02/building-qml-desktop-components-with.html

                    Have fun,

                    Michael

                    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