Skip to content

Incompatibility with PySide2 #9

Description

@joanise

I am testing on Windows, with PySide2 as the Qt shim.

In cmd:

python3 -m venv venv
.\venv\Scripts\Activate.bat
pip install qtpy
pip install readalongs
pip install pyside2

If you have other Qt shim installed, you might need to force the use of pyside2 by setting the QT_API environment variable to pyside2

set QT_API=pyside2

When I try to run the desktop app, I get this trace dump:

> python desktopApp.py
Traceback (most recent call last):
  File "desktopApp.py", line 376, in <module>
    main()
  File "desktopApp.py", line 365, in main
    view = readalongsUI()
  File "desktopApp.py", line 94, in __init__
    self._createButtons()
  File "desktopApp.py", line 179, in _createButtons
    self.NextButton.setSizePolicy(100, 120)
TypeError: 'PySide2.QtWidgets.QWidget.setSizePolicy' called with wrong argument types:
  PySide2.QtWidgets.QWidget.setSizePolicy(int, int)
Supported signatures:
  PySide2.QtWidgets.QWidget.setSizePolicy(PySide2.QtWidgets.QSizePolicy)
  PySide2.QtWidgets.QWidget.setSizePolicy(PySide2.QtWidgets.QSizePolicy.Policy, PySide2.QtWidgets.QSizePolicy.Policy)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions