Search code examples
pythonqtqt-designerdesignerpython-3.12

QT designer Layout margins are not editable


I have UI file generated in QT designer 6.5.1 using python 3.9. This was pushed into git. Now I have downloaded in new machine where I have installed python 3.12.3 with QT designer 6.7.1. Like to fix if there is any gap on newer version and make code cleaner.

Now I found that I could not edit any frame layout margins sizes. I tried changing layout style,etc., nothing worked. I have structure like below.

"MainWindow"
  |->QWidget (Layout margins are not editable)
       |-> QScrolArea
                 |->QWidget (Layout margins are not editable)
                      |-...and so on

The screenshot enter image description here

Please show some light on this to fix this issue.

List of items tried :

  • I tried updating frame style.
  • I tried creating new frame under my existing widget. Applied horizontal layout in new frames and tried editing layout left/right/top/bottom margins in property editor. I could not edit it.

Solution

  • Finally it worked by downgrading the package by running

    pip install --force-reinstall PySide6==6.7.0