Qt Creator for Unity8 developing?



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



  • 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



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



  • @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.)



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



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



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



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


Log in to reply