Skip to content

Please don't depend on *specific* Qt backend: napari[pyqt] #7

@psobolewskiPhD

Description

@psobolewskiPhD

napari supports a number of Qt backends which can be installed by the end user.
We strongly discourage plugins depending on a specific one, because then installing such a plugin in a napari environment that has a different backend will likely break the environment. For example, this means that anyone using the napari bundled app will have the application broken.
Instead, use qtpy (https://pypi.org/project/QtPy/) as an abstraction layer.
See our plugin best practices for more details.
https://napari.org/dev/plugins/building_a_plugin/best_practices.html
This guide is slightly outdated regarding the conda specifics, plus we now also fully support PyQT6, but the gist is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions