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. Switching back from code to Qt Designer in PyQT
Forum Updated to NodeBB v4.3 + New Features

Switching back from code to Qt Designer in PyQT

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.4k 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.
  • H Offline
    H Offline
    hachbani
    wrote on last edited by
    #1

    Hello,

    I'm new to PyQt5, I got to design my GUI in QT designer and convert my .ui project to a .py file. I did handle the coding part with no problems. The problem I'm getting now is I need to work on the layout and add more buttons and other functionalities. I don't want to do this through the code, as you can imagine the struggle.

    Is there any way to switch back to Qt designer ?

    Thanks,

    JonBJ 1 Reply Last reply
    0
    • H hachbani

      Hello,

      I'm new to PyQt5, I got to design my GUI in QT designer and convert my .ui project to a .py file. I did handle the coding part with no problems. The problem I'm getting now is I need to work on the layout and add more buttons and other functionalities. I don't want to do this through the code, as you can imagine the struggle.

      Is there any way to switch back to Qt designer ?

      Thanks,

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @hachbani
      You can go back in the Designer on the .ui file any time, to make further changes, and regenerate the .py file. You are not supposed to further edit that .py file yourself, only import it.

      1 Reply Last reply
      2
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by Kent-Dorfman
        #3

        As stated above, if you are using designer correctly (and to a larger extend OOP) then you can make your changes in designer and update the class that you use to encapsulate the interface in. You should be either subclassing the generated UI class or instantiating it and using ui.setupUi(self) in another qwidget derived class.

        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