Skip to content

Conversation

@keithel-qt
Copy link
Contributor

  • PySide6 was having issues referencing files in the Qt resources, so normalize all of these to use qrc:// prefix
  • Use sequences property instead of sequence property in Shortcuts, as the latter is removed in PySide6 due to sequence being redundant.
  • Work around QTBUG-98241 which I reported. This doesn't exhibit itself in PySide2 5.15.2, however the fix for PySide6 works fine in PySide2 as well, so make the change now so it doesn't have to be re-discovered later.
  • Replace a few new places where Text element was used with styleable Label element. A prior commit replaced all instances of Text with Label, however new changes that use this were added since.

* Label is Swift Material styled, Text is not.
* Label will pick up the Roboto font in the right size, and will also
  follow other customizations in the style.

Amended for PySide2 - Add QtQuick.Controls 2.15 import,
* This works around a bug in Qt that I reported this morning:
  https://bugreports.qt.io/browse/QTBUG-98241
* The bug only shows itself in very specific machine configurations it
  seems - Windows 10, with more than one monitor, secondary monitor at a
  fractional scale factor (or maybe just a different scale factor from
  the primary)
* In Qt6, sequence is no longer present in Shortcuts, so this migrates
  to setting the sequences property instead, which works just as well.
* This changes all static paths to files used in the application to be
  done as resources using qrc://
* With the switch to PySide6, there were some cases where it could not
  find where the files were because of differences of when to treat a
  path as a resource path or not, I believe.
@john-michaelburke john-michaelburke merged commit 7e0f57a into main Nov 17, 2021
@john-michaelburke john-michaelburke deleted the keithel-qt/pyside6-preparation branch November 17, 2021 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants