Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Python for QT design studio
Forum Updated to NodeBB v4.3 + New Features

Python for QT design studio

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 4.7k Views
  • 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.
  • M Offline
    M Offline
    mckenzy99
    wrote on 16 Apr 2023, 11:23 last edited by
    #1

    Hello, sorry if this is a stupid question but I am learning QT currently and I am a bit confused by all the different programs. For my design I want a quite simply GUI with an image and a few buttons that change that image. Since it is a prototype this could have been done in Figma for instance. However, in the GUI there needs to be a few text boxes where the displayed text is based on data send from a sensor, using MQTT. Therefore I need to have the final GUI in Python/C++ to enable this connection.
    What is completely unclear to me now, is how I can port my design from QT design studio to a python script? From what I understand this should be possible, but I cannot find any documentation on this.

    J 1 Reply Last reply 16 Apr 2023, 12:09
    0
    • M mckenzy99
      16 Apr 2023, 11:23

      Hello, sorry if this is a stupid question but I am learning QT currently and I am a bit confused by all the different programs. For my design I want a quite simply GUI with an image and a few buttons that change that image. Since it is a prototype this could have been done in Figma for instance. However, in the GUI there needs to be a few text boxes where the displayed text is based on data send from a sensor, using MQTT. Therefore I need to have the final GUI in Python/C++ to enable this connection.
      What is completely unclear to me now, is how I can port my design from QT design studio to a python script? From what I understand this should be possible, but I cannot find any documentation on this.

      J Offline
      J Offline
      JonB
      wrote on 16 Apr 2023, 12:09 last edited by JonB
      #2

      @mckenzy99
      Somebody asked about this recently. The upshot was: assuming you do mean Design Studio it basically has no support for Python/PySide. You are supposed to export from Design Studio to .qml, then to make a .ui file which you can read into Qt Designer (part of Qt Creator, not the same thing as Design Studio). There you have a Qt project which you can code in Python. If you never meant Design Studio in the first place then you can do your editing in a project in Creator/Designer.

      Something like https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio mentions this, though there are other references which I cannot find at the moment.

      1 Reply Last reply
      1
      • J JonB referenced this topic on 27 Apr 2023, 13:24

      1/2

      16 Apr 2023, 11:23

      • Login

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