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 Design Studio to Qt Creator.. and my Python code
Forum Updated to NodeBB v4.3 + New Features

Qt Design Studio to Qt Creator.. and my Python code

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 4 Posters 642 Views 2 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.
  • J Offline
    J Offline
    JUDE34823
    wrote on last edited by JUDE34823
    #1

    Hi, could someone perhaps give me an outline of what I need to look into.

    All my apps were done in Qt designer in the Pyside6 pip install with Vscode using Python for functions, Ai model stuff, Audio processing etc.

    I needed my UIs to be much prettier and Qt Design Studio is doing a tremendous job quickly, also using Blender models which is amazing. I heard someone say 'why would you even use it?' and not many seem to?

    Anyway, I have a Qt Design Studio project, opened it in Qt Creator, now not a clue what to do. I added a Python file. So I link to the xxx.ui.qml file of Qt Design Studio somehow? I need to bolt all my Python code onto the buttons and sliders that Qt Design Studio made.

    CristianMaureiraC 1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Good morning,

      this is a very general question. In all honesty: It reads a bit like an attempt to fast-track and bypass reading the extensive documentation available for Qt Design Studio. Even if that wasn't the intention: It's a high expectation towards this community, that someone writes a straight forward recipe, based on general information like.

      A good start would probably be to walk through a tutorial, get an example working, inspect the code, just to get familiar. Then you can start migrating your own code. Start reading here.

      Cheers
      Axel

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tinkerer42
        wrote on last edited by tinkerer42
        #3

        Sir, I respectfully disagree. I am not the original poster, but I, too, found very little online resources for a workflow that uses QT Design Studio and QT for Python. No tutorials, lots of unanswered forum questions, etc.

        While toy examples of using Pyside6 to load a small hand-crafted QML do work, as soon as I attempted to do so with a real design on QT Design Studio, a lot of infrastructure-type issues popped up. modules that cannot be found, unexplained inability to load the .ui.qml file in the python code, inability to use QT Creator to manage anything, etc. I tried to get it to work for days now.

        If the approach of programming in Python for designs done in QT Design Studio is a misguided approach and not a supported workflow, I'd like to know that, and would ask for suggestions for alternatives.

        If this combination is reasonable, then I'd love to hear about any online resources for that - tutorials and so on. Please note that tutorials for each part alone are readily available - either just for Python with QML or for QT Design Studio by itself. However tutorials that show how to use what you designed in the Studio with python are unavailable (or none that I found, anyway), and instead I found many posts of frustrated would-be-users like myself that ran into tons of problems. This is in contrast with a workflow that uses QT Design Studio designs with C++ coding, where the process is well documented, support for this seems to be well built into the Design Studio with pre-made CMakelists.txt and other files and whatnot. Any support for Python with Design Studio seems like an afterthought at best.

        thanks,
        Guy.

        1 Reply Last reply
        0
        • J JUDE34823

          Hi, could someone perhaps give me an outline of what I need to look into.

          All my apps were done in Qt designer in the Pyside6 pip install with Vscode using Python for functions, Ai model stuff, Audio processing etc.

          I needed my UIs to be much prettier and Qt Design Studio is doing a tremendous job quickly, also using Blender models which is amazing. I heard someone say 'why would you even use it?' and not many seem to?

          Anyway, I have a Qt Design Studio project, opened it in Qt Creator, now not a clue what to do. I added a Python file. So I link to the xxx.ui.qml file of Qt Design Studio somehow? I need to bolt all my Python code onto the buttons and sliders that Qt Design Studio made.

          CristianMaureiraC Offline
          CristianMaureiraC Offline
          CristianMaureira
          wrote on last edited by
          #4

          @JUDE34823 you can check out this answer: https://forum.qt.io/topic/157892/qt-design-studio-python-code/2
          In a nutshell you just need a python file to load the Quick-based project you created with QtDS
          and then if you want to add functionality to the graphical elements, you need to check the tutorials/examples on how to register a QmlElement python object in QML, so you can access that functionality. For example https://doc.qt.io/qtforpython-6/tutorials/qmlintegration/qmlintegration.html

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved