Skip to content

Drawing example rendering wrong on pyside6 #1278

@nstelter-slac

Description

@nstelter-slac

Describe the bug

example file in question is examples/drawing/drawing_demo.ui

it should look like this (how it looks on pyqt5 atm):
Image

but on pyside6 looks like this:
Image

(penStyle is wrong pyside6 perhaps??)

i think this is related to qt property declarations not working on pyside6 b/c they are not implemented in the new way (fixing #1275 might fix).

but my memory on exactly why i think this is the cause is fuzzy, i can investigate more later if needed

Steps to reproduce

  1. create conda env with python 3.13 and pyside6:
  $ conda create -n pydm-environment-pyside python pip numpy scipy six psutil pyqtgraph pydm -c conda-forge
  $ source activate pydm-environment
  $ pip install PySide6 # or can install with conda in earlier cmd
  1. activate conda pyside6 env and export QT_API=pyside6

  2. run the example with pydm examples/drawing/drawing_demo.ui, and can also then activate your pyqt5 env and run the example there to compare.

Expected behavior

examples/drawing/drawing_demo.ui renders the same on both pyqt5 and pyside6

Operating System.

Linux

OS Version Details.

No response

Python Version

3.13.5

Packages Version

Image

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpyside6for adding pyside6 (qt6) support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions