Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2974

QVBoxLayout使用setStretch无法正确设置控件大小

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.1
    • PySide
    • None
    • Windows

    Description

      main.py Ui.ui

      如图所示在使用QVBoxLayout进行布局时,setStretch无法正确工作
      在设置后原始大小没有发生任何变化
      但QHBoxLayout的表现是正常的

      Attachments

        1. image-2024-12-26-19-28-17-746.png
          image-2024-12-26-19-28-17-746.png
          44 kB
        2. main.py
          0.8 kB
        3. Ui_ui.py
          3 kB
        4. Ui.ui
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            dudu Li Haoxuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes