Using silx widgets in Qt Designer¶
With PyQt, it is possible to use silx.gui
widgets (and widgets written with PyQt in general) from the Qt Designer.
The following silx.gui
widgets are available in the Qt Designer:
silx.gui.plot.Plot1D
silx.gui.plot.Plot2D
silx.gui.plot.PlotWidget
silx.gui.plot.PlotWindow
Pre-requisite¶
The following software must be installed:
- Qt with the Qt Designer.
- Python.
- PyQt with the designer plugin.
- The
silx
Python package and its dependencies.silx.gui.plot
widgets requires matplotlib.
Usage¶
The PYQTDESIGNERPATH environment variable defines the search paths for plugins enabling use of PyQt widgets in the designer.
To start the Qt Designer with silx.gui
widgets available, on Linux, run the following from the command line:
PYQTDESIGNERPATH=<silx_designer_plugin_dir> designer
See Using Qt Designer in PyQt documentation.