Skip to content

Studio/Interface/CustomSlider.h

Classes

Name
class CustomSlider

Source code

#pragma once

#include <QSlider>

// adapted from:
// https://stackoverflow.com/questions/69890284/qslider-in-qt-misbehaves-in-new-macos-monterey-v12-0-1-any-workaround/69890285#69890285
class CustomSlider : public QSlider {
 public:
  explicit CustomSlider(Qt::Orientation orientation, QWidget* parent = nullptr) : QSlider(orientation, parent){};
  explicit CustomSlider(QWidget* parent = nullptr);

 protected:
  virtual void paintEvent(QPaintEvent* ev);
};

Updated on 2024-03-17 at 12:58:44 -0600