Widget Catalog
This page has names and images of the most useful widgets provided by qt and pydm and all the widgets provided by pcdswidgets.
It is intended to be used as a first-pass reference for users trying to understand which widgets should be used in a screen.
It will contain links to each widget’s dedicated documentation page.
Frequently Used Widget Classes:
Display / read-only output
Widget Name |
Class |
Function |
Example |
|---|---|---|---|
QLabel |
Static text/image label such as captions, titles, field names,
and other non-interactive display text.
|
|
|
PyDMLabel |
Live read-only display of an EPICS PV value (numbers, strings,
enums), optionally formatted with units/precision
|
|
|
PyDMLabel |
Displays individual bits of an integer PV as colored indicators
useful as status/alarm bit flags.
|
|
Input / control (write to PV)
Widget Name |
Class |
Function |
Example |
|---|---|---|---|
PyDMPushButton |
Button that writes a fixed/preset value to a PV when clicked
(e.g. open, close, set, reset).
|
|
|
PyDMLineEdit |
Editable text field for reading and writing a PV value. A user types a setpoint and it’s written to the PV. |
|
|
PyDMShellCommand |
Button that executes a linked bash shell command. |
|
Plots
Widget Name |
Class |
Function |
Example |
|---|---|---|---|
PyDMTimePlot |
Plot a PV as a function of time. |
|
|
PyDMScatterPlot |
Plot a PV as a function of another PV in a scatter plot. |
|
Layout / structure
Widget Name |
Class |
Function |
Example |
|---|---|---|---|
QVBoxLayout |
Vertical layout manager — arranges child widgets top-to-bottom. |
|
|
QHBoxLayout |
Horizontal layout manager — arranges child widgets left-to-right. |
|
|
QGridLayout |
Grid layout manager — arranges child widgets in rows and columns. |
|
Containers
Widget Name |
Class |
Function |
Example |
|---|---|---|---|
PyDMEmbeddedDisplay |
Embeds another
.ui screen inside the current one, typicallywith macros — enables reusable sub-panels and templated rows.
|
N/a |
Composite Widget Templates:
Common
Dock: pcdswidgets/common/dock
Widget |
Function |
Example |
Standalone implementation of the classic “lucid” grid. |
|
|
Standalone implementation of the “lucid” tabbed dock. |
|
|
Opens a screen in the TabDock. |
|
|
Displays a beamline schematic component, and opens a screen in
the TabDock
|
|
Toolbar: pcdswidgets/common/toolbar
Widget |
Function |
Example |
Standalone implementation of the classic “lucid” toolbar.
Loads related display, script, and dock buttons from a yaml
config.
|
|
Tools: pcdswidgets/common/tools
Widget |
Function |
Example |
Generic “scanner” application to optimize signal. |
|
|
A Tool for adding persistence to screens (the view state is
saved to a file, and recovered on reload). Add this widget
container to your project and any widget that is supported
will automatically be saved. In designer you can opt-out
specific widgets and set a dir/file path for the save file.
NOTE: widget is invisible at runtime (border goes away).
|
|
Imaging
Common: pcdswidgets/ui/imaging/common
Widget |
Function |
Example |
A panel for controlling camera acquisition, including
starting/stopping acquisition and setting the capture mode.
|
N/a |
|
Top-level camera viewer that displays the live image alongside a
sidebar of collapsible control panels. Acts as a container: any
widget dropped here is automatically adopted into the sidebar on
first show. Note that most imaging widgets will automatically
connect to the camera preview.
|
|
|
N/a |
N/a |
|
A panel for selecting the colormap and adjusting image intensity
levels via a histogram.
|
N/a |
|
A panel for drawing, moving, and locking a region-of-interest box that syncs its geometry to EPICS PVs. |
|
|
A panel for adjusting exposure time and acquisition timing/rate. |
N/a |
|
A widget for placing and configuring up to four crosshair markers
(position, color, style, visibility) on the camera viewer image.
|
|
Motion
Common: pcdswidgets/ui/motion/common
Widget |
Function |
Example |
Motor control for Beckhoff slits to control slit center position
and gap.
|
|
|
Classic full layout for IMS, Beckhoff, or SmarAct motor control.
Define “motor_type” for full functionality.
|
|
|
Classic row layout for IMS, Beckhoff, or SmarAct motor control.
Define “motor_type” for full functionality.
|
|
|
Classic vertical layout for IMS, Beckhoff, or SmarAct motor
control.
Define “motor_type” for full functionality.
|
|
|
State mover motor control |
|
|
N/a |
N/a |
|
N/a |
N/a |
|
Classic row layout for IMS, Beckhoff, or SmarAct motor control
including motor temperature interlock
|
|
|
Tip/tilt motion control for two motors. Set “motor_style” to
drive standard motor record or SmarAct step fields.
|
|
|
Full tip/tilt motion control layout. Set “motor_style” to
drive standard motor record or SmarAct step fields.
|
|
|
N/a |
N/a |
Expert: pcdswidgets/ui/motion/expert
Widget |
Function |
Example |
Expert configuration options for Beckhoff motors. |
|
SmarAct: pcdswidgets/ui/motion/smaract
Widget |
Function |
Example |
N/a |
N/a |
|
SmarAct detailed motion control |
|