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 do I make a QDockWidget's size immutable? (`QtWidgets.QSizePolicy.Policy.Fixed` doesn't do anything.)
Forum Updated to NodeBB v4.3 + New Features

How do I make a QDockWidget's size immutable? (`QtWidgets.QSizePolicy.Policy.Fixed` doesn't do anything.)

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 161 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.
  • RokeJulianLockhartR Offline
    RokeJulianLockhartR Offline
    RokeJulianLockhart
    wrote on last edited by RokeJulianLockhart
    #1
    Example

    My code is undermentioned:

    #!/usr/bin/env python3.12
    PyQt6.QtWidgets.QDockWidget().setSizePolicy(
        PyQt6.QtWidgets.QSizePolicy.Policy.Fixed,
        PyQt6.QtWidgets.QSizePolicy.Policy.Fixed
    )
    

    The videos (youtube.com/watch?v=Rr5vkRM3eRw) linked in my comment at QTBUG-108675 demonstrate this. This also applies when they're docked, so I believe that that bug, which appears to be entirely dependent upon the compositor, WM, and display server, shouldn't be relevant.

    Diagnosis

    Per ru.stackoverflow.com/revisions/1606712/1, I tried setting solely one parameter, but that excepted.

    When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

    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