Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordable_list_widget_example does not run with qtpy5 #167

Open
DanicaSTFC opened this issue Dec 11, 2024 · 0 comments
Open

Reordable_list_widget_example does not run with qtpy5 #167

DanicaSTFC opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DanicaSTFC
Copy link
Collaborator

DanicaSTFC commented Dec 11, 2024

While testing #146 with qtpy5, and running the example file /eqt/examples/reorderable_list_widget_example.py, the following error appears

\eqt\examples\reorderable_list_widget_example.py", line 40, in <module>
  window = MainUI(title="ReOrderableListWidget")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\examples\reorderable_list_widget_example.py", line 17, in __init__
  qlist.addItems(["Transmission to Absorption", "Centre of Rotation Correction"])
File "\envs\eqt_env\Lib\site-packages\eqt\ui\ReOrderableListWidget.py", line 73, in addItems
  self.addItem(name)
File "\eqt_env\Lib\site-packages\eqt\ui\ReOrderableListWidget.py", line 39, in addItem
  verticalLayout.setContentsMargins(1, -0.9, 1, -0.9)
TypeError: arguments did not match any overloaded call:
setContentsMargins(self, left: int, top: int, right: int, bottom: int): argument 2 has unexpected type 'float'
setContentsMargins(self, margins: QMargins): argument 1 has unexpected type 'int'

Check that the class itself works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant