Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Qt ui.qml application in Linux

Qt ui.qml application in Linux

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 2 Posters 1.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.
  • A Offline
    A Offline
    Alex936
    wrote on last edited by
    #1

    Hi everyone. I can be considered as noob in qt, but after a week-long battle with ever imagined cross-compilations, buildings and configurations I have a one simple question, and I rely on community very much for helping found an answer - why I can create flexible perfect design of gui application in Design studio based on python and using ui.qml files, and I cant just doing as same in Linux and even dramatically on Raspberry?
    May be I digged in wrong direction? Or what? Pls help, cos' after a week of endless and sleepless buildings, reinstallations and trying of more endless number of combinations of application structure organization it's seems more like madness than design.
    If someone know really working methods of painless creating applications based on python where I can use multiple screens (states) and further IT CAN WORK ON LINUX/RASPBERRY - please, say it loud, it would be a big deal.
    Thanks in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What exactly is your issue on the RaspberryPi ?

      How do you transfert your application from your desktop to your RPi ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What exactly is your issue on the RaspberryPi ?

        How do you transfert your application from your desktop to your RPi ?

        A Offline
        A Offline
        Alex936
        wrote on last edited by
        #3

        @SGaist honestly - for the first time i've just copied files to raspberry with installed qt (by apt-get qt5-default, qtcreator). It was .py file with backend, .qml with main construction, which loads to engine in python code, and .ui.qml with different screen construction, which implied to switch by states. also on rpi was installed pyside2.
        but what confused me most - application errors were concerned about qtquick imports - it just couldn't find it.
        yeah, somewhere in my mind i guess that i maybe doing something wrong, but i found zero info about what i need and mean exactly - is it even possible to use ui.qml-based applications on linux/rpi particularly
        because when i opened it in gui mode - i found that it uses (as example in new projects) older versions of qtquick, but when i set this versions - it didn't help. also i was confused that it doesn't have python projects templates at all, what made me like - "hm, does it even support python projects?"
        for now - i'm in process of building qt from source on rpi, but i'm not sure will it help or not.
        same story when i tried to install qt on my desktop ubuntu.
        i read about cross-compilation but didn't try it because all tutorials says that in need simultaneous build of qt on host and rpi with rsync of files, but in the same time they says that these builds is platform-dependent, so i didn't do it because i just wanted to try simple project on my rpi(3b) but what will be used in project what i need to do is rpi3b+/rpi4, what leads, as i understand, to rebuild of host qt. but for now i'm already just exhausted by endless rebuilds which takes over a day each time and all this time i can't make design and code because i don't understand will it work somehow someday or not, in this form (as mentioned in beginning of message), or i must turn the table and just hardcode gui in pyhon code by widgets? but even if hardcode or use just separate qml's - i can't find anywhere - how to switch between, for example, few qml files in python, instead of switching states like in ui.qml?
        or what?.. i'm really confused for now

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Are you using PySide2/6 or PyQt5/6 ?

          On did you install them ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Are you using PySide2/6 or PyQt5/6 ?

            On did you install them ?

            A Offline
            A Offline
            Alex936
            wrote on last edited by
            #5

            @SGaist i'm using pyside2(because it was in examples what suited me most) and it installed everywhere - on windows, on ubuntu and rpi too
            for now I'm trying at least to understand what tactic/architecture of app i need to use for this case...

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Are they all the same versions ?
              Did you install them the same way on all your devices ?

              What exact issue are you having ?

              Since you are using QtQuick, you should start really simple with a basic app and make it work on both sides.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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