SuperQT

0.8.1 · active · verified Thu Apr 16

SuperQT is a collection of missing widgets and components that extend the capabilities of PyQt and PySide for building rich graphical user interfaces. It provides a variety of useful classes, from advanced sliders and combo boxes to utility functions for array conversion and signal blocking. The current version is 0.8.1, with frequent minor releases to add features and fix bugs, typically on a monthly basis.

Common errors

Warnings

Install

Imports

Quickstart

This example demonstrates a basic `QLabeledSlider` from `superqt`, which provides a slider with an integrated label showing its current value. It requires a Qt application context.

import sys
from superqt.sliders import QLabeledSlider
from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = QWidget()
    layout = QVBoxLayout()
    
    slider = QLabeledSlider()
    slider.setRange(0, 100)
    slider.setValue(50)
    
    layout.addWidget(slider)
    w.setLayout(layout)
    w.setWindowTitle("SuperQT Labeled Slider Example")
    w.show()
    sys.exit(app.exec())

view raw JSON →