New edition of the Book python and QT6

Just started trying the code examples in the book Creating Gui applications with python and Qt6.

In the code example creating_a_window_end.py on page 16

  • import Qt is not necessary
  • the window can be resized.
    I tried it also with self.setMaximumSize(QSize(400, 300)) and self.setMinimumSize(QSize(400, 300)) , the window can be resized in both cases
    Any suggestions
    I am using Linux (Raspberry pi)

Fixed this, will be corrected in the next update. Thanks for reporting.

Respecting the size limits is up to the window manager, if the window manager chooses to ignore them there isn’t anything Qt can do about that unfortunately.

Do you know which window manager you are using? (distro/desktop).