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. How about exporting adaptive related python code ?
Forum Updated to NodeBB v4.3 + New Features

How about exporting adaptive related python code ?

Scheduled Pinned Locked Moved Solved Qt for Python
5 Posts 2 Posters 387 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.
  • lionelML Offline
    lionelML Offline
    lionelM
    wrote on last edited by lionelM
    #1

    When I want the control to be resizable according to the window size,Qt designer python code and preview are not the same.When I run the exported python code in pycharm, I find that it doesn't look the same as the preview in designer.I tried to set the Qwidget horizontal layout, but in python they are crammed together(a42b3c50-6576-4f57-8d6d-dc1aeb7899a8-图片.png Previewing in designer does not have this problem

    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 is Form ? A QWidget or a QMainWindow ?
      How did you apply the layout ?

      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
      • lionelML Offline
        lionelML Offline
        lionelM
        wrote on last edited by
        #3

        It is a QWidget.Like thisf78b893b-f642-4f58-b3ed-58add3b1ae28-图片.png

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

          It looks like your spacer and label are not put into the grid layout.

          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
          1
          • lionelML Offline
            lionelML Offline
            lionelM
            wrote on last edited by
            #5

            Solved, thanks, it's my main program's problem :)

            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