Skip to content
Discussion options

You must be logged in to vote

Anything fancier than the interaction methods requires using PySide2, how easy it is depends on your experience with QT, but there's a lot of code samples on the internet so it's really straight-forward.

Here's a quick one I tested out using the Snippets plugin so I didn't have to make a full-blown plugin:

from PySide2 import QtWidgets, QtCore

class demoSlider(QtWidgets.QDialog):
	def __init__(self, parent = None):
		super(demoSlider, self).__init__(parent)
		self.layout = QtWidgets.QHBoxLayout(self)
		self.label= QtWidgets.QLabel()
		self.slider = QtWidgets.QSlider(QtCore.Qt.Horizontal)
		self.slider.valueChanged.connect(self.updateSlider)
		self.layout.addWidget(self.label)
		self.layout.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants