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 & Python

QT Design Studio & Python

Scheduled Pinned Locked Moved Unsolved Qt for Python
6 Posts 4 Posters 1.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.
  • C Offline
    C Offline
    Captain Haddock
    wrote on 3 Apr 2023, 17:18 last edited by
    #1

    New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?

    J J 2 Replies Last reply 3 Apr 2023, 17:32
    0
    • C Captain Haddock
      3 Apr 2023, 17:18

      New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?

      J Offline
      J Offline
      JonB
      wrote on 3 Apr 2023, 17:32 last edited by
      #2

      @Captain-Haddock
      Do you indeed mean Qt Design Studio, not Designer built into Creator? This reddit thread indicates the difficulties. Or maybe https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio would work for you?

      C 1 Reply Last reply 3 Apr 2023, 17:34
      0
      • J JonB
        3 Apr 2023, 17:32

        @Captain-Haddock
        Do you indeed mean Qt Design Studio, not Designer built into Creator? This reddit thread indicates the difficulties. Or maybe https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio would work for you?

        C Offline
        C Offline
        Captain Haddock
        wrote on 3 Apr 2023, 17:34 last edited by
        #3

        @JonB I do mean Design Studio. Ill look at the thread you pointed to .. thx

        1 Reply Last reply
        0
        • C Captain Haddock
          3 Apr 2023, 17:18

          New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 4 Apr 2023, 02:19 last edited by JKSH 4 Apr 2023, 02:25
          #4

          @Captain-Haddock said in QT Design Studio & Python:

          is QT Design Studio designed for C++ development?

          Qt Design Studio is for visually designing GUIs (*.ui.qml files). It is not for writing application logic.

          Once you have created your *.ui.qml files using Qt Design Studio, you use a different IDE to add JavaScript and C++/Python logic that uses these *.ui.qml files.

          can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++).

          I'm not aware of such tutorials, but the main thing you need is any tutorial that shows you how to use QML files from Python.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          J 1 Reply Last reply 5 Apr 2023, 14:46
          1
          • J JKSH
            4 Apr 2023, 02:19

            @Captain-Haddock said in QT Design Studio & Python:

            is QT Design Studio designed for C++ development?

            Qt Design Studio is for visually designing GUIs (*.ui.qml files). It is not for writing application logic.

            Once you have created your *.ui.qml files using Qt Design Studio, you use a different IDE to add JavaScript and C++/Python logic that uses these *.ui.qml files.

            can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++).

            I'm not aware of such tutorials, but the main thing you need is any tutorial that shows you how to use QML files from Python.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 5 Apr 2023, 14:46 last edited by
            #5

            @JKSH said in QT Design Studio & Python:

            the main thing you need is any tutorial that shows you how to use QML files from Python.

            Perfect timing: See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:

            • https://doc-snapshots.qt.io/qtforpython-dev/examples/example_quickcontrols_filesystemexplorer.html
            • https://doc-snapshots.qt.io/qtforpython-dev/tutorials/extendedexplorer/extendedexplorer.html

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            P 1 Reply Last reply 8 Jan 2024, 21:06
            1
            • J JonB referenced this topic on 27 Apr 2023, 13:24
            • J JKSH
              5 Apr 2023, 14:46

              @JKSH said in QT Design Studio & Python:

              the main thing you need is any tutorial that shows you how to use QML files from Python.

              Perfect timing: See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:

              • https://doc-snapshots.qt.io/qtforpython-dev/examples/example_quickcontrols_filesystemexplorer.html
              • https://doc-snapshots.qt.io/qtforpython-dev/tutorials/extendedexplorer/extendedexplorer.html
              P Offline
              P Offline
              PyRookie
              wrote on 8 Jan 2024, 21:06 last edited by
              #6

              @JKSH said in QT Design Studio & Python:

              See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:

              https://doc-snapshots.qt.io/qtforpython-dev/examples/example_quickcontrols_filesystemexplorer.html

              This link provides a number of files and folders as a ZIP file, including filesystemexplorer.py. When I run filesystemexplorer.py, the application window appears and all features work. That's great.

              But how can I generate all these files, including the corresponding Python script, if I want to run my own Design Studio project from Python? Is there a tutorial or documentation for this workflow?

              1 Reply Last reply
              2

              4/6

              4 Apr 2023, 02:19

              • Login

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