pythonguis / feedback

Corrections & suggestions for Python GUIs tutorials on pythonguis.com
1 stars 0 forks source link

"PyQt6 vs PySide6": Resources and uic version #21

Open MartinGebert opened 1 month ago

MartinGebert commented 1 month ago

Two remarks regarding PyQt6 vs PySide6. Many thanks for the article, that was very informative!

  1. For updating my project I was missing the pyrcc tool; this SO answer was very useful in solving this:

    https://stackoverflow.com/a/66104738/5794048

    This are the relevant changes in the makefile I'm using for this purpose:

    +rccTool := $(shell qmake6 -query QT_HOST_LIBEXECS)/rcc
    
    [...]
    
     res_%.py: %.qrc
    -       pyrcc5 -o $@ $<
    +       $(rccTool) --generator python -o $@ $<
    +       sed -i '0,/PySide6/s//PyQt6/' $@
  2. In section "Converting UI files to Python", pyuic5 is mentioned where it should probably read pyuic6.