UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Qt Creator for Unity8 developing?

    Scheduled Pinned Locked Moved Lomiri (was Unity8)
    8 Posts 4 Posters 1.1k Views 2 Watching
    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.
      • F Offline
        fossMan
        last edited by

        After snooping around a little, it seems that Qt Creator has Wayland support. I guess & hope that means e.g auto-completing from the Wayland library. For someone venturing into Mir / Wayland territory, will using Qt Creator ease up a bit of the learning curve?

        alan_gA 1 Reply Last reply Reply Quote 0
        • alan_gA Offline
          alan_g @fossMan
          last edited by

          I don't know what source you have for "Qt Creator has Wayland support", so you may know something I don't. But I imagine that this means it runs on the Qt "wayland" backend.

          That isn't exactly new, I've been using it as a test program for Mir's Wayland support for a couple of years. There's a glimpse of it on the egmde snap store page:

          egmde_qtcreator.jpg

          F 1 Reply Last reply Reply Quote 1
          • K Offline
            kugiigi
            last edited by

            It's created with Qt so it also works on mir, right?
            I remember trying it out on my Nexus 5 and the main issue is the scaling.

            alan_gA 1 Reply Last reply Reply Quote 0
            • alan_gA Offline
              alan_g @kugiigi
              last edited by

              @kugiigi said in Qt Creator for Unity8 developing?:

              It's created with Qt so it also works on mir, right?

              Yes, if you use the Wayland backend: QT_QPA_PLATFORM=wayland. (Warning: that's pretty flaky with the Qt version in the 16.04 archives.)

              On 16.04, it probably works with the mirclient backend : QT_QPA_PLATFORM=ubuntumirclient.

              I remember trying it out on my Nexus 5 and the main issue is the scaling.

              That was probably using the X11 backend: QT_QPA_PLATFORM=xcb and Xmir. (Which is also flaky.)

              1 Reply Last reply Reply Quote 0
              • F Offline
                fossMan @alan_g
                last edited by fossMan

                @alan_g said in Qt Creator for Unity8 developing?:

                I don't know what source you have for "Qt Creator has Wayland support", so you may know something I don't. But I imagine that this means it runs on the Qt "wayland" backend.

                I honestly don´t know what I' m talking about, I have just installed Qt Creator and scrolled around in the documentation 🙂

                What are the examples in the screen shot referring to actually?

                Screenshot from 2019-04-26 16-57-18.png

                dobeyD 1 Reply Last reply Reply Quote 0
                • dobeyD Offline
                  dobey @fossMan
                  last edited by

                  @fossMan said in Qt Creator for Unity8 developing?:

                  What are the examples in the screen shot referring to actually?

                  That is documentation for the Wayland compositor APIs provided in newer versions of Qt, to support being able to write a shell in Qt that is a Wayland compositor, for example.

                  These APIs are not used by Mir or Unity8, so not especially useful to be wading through if you want to work on those two projects.

                  F 1 Reply Last reply Reply Quote 2
                  • F Offline
                    fossMan @dobey
                    last edited by

                    @dobey said in Qt Creator for Unity8 developing?:

                    These APIs are not used by Mir or Unity8, so not especially useful to be wading through if you want to work on those two projects.

                    Noted, thanks for clearing that up. Do you know any snippets or auto-complete libraries for mir/wayland? I hope not to appear overly lazy, just thinking that a pair of side wheels can save a few face plants when learning to ride.

                    dobeyD 1 Reply Last reply Reply Quote 0
                    • dobeyD Offline
                      dobey @fossMan
                      last edited by

                      @fossMan Firstly, Wayland itself is not a library, so there will be no "autocomplete" for it. It's a protocol definition, which Mir implements. So you'd need just the Mir APIs to be completed.

                      I don't know much about what all the fancy IDEs need for that, but it should be pretty easy to generate ctags definitions for Mir, which should work with several editors (like emacs or vim). I would expect some IDEs should be able to handle them as well, but I don't know.

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