Skip to content

Segmentation fault with QLabeledRangeSlider #273

@patquem

Description

@patquem

When I run the code below with QLabeledRangeSlider, most of the time, when I close the widget (clicking on 'x'), I get the following memory error:

Process finished with exit code -1073741819 (0xC0000005)

This memory error disappears when the MyClass2 class is commented out (strange !) or when I replace QLabeledRangeSlider with QRangeSlider.

import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout
import superqt


class MyClass1(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        # range_slider = superqt.QRangeSlider(self)
        labeled_range_slider = superqt.QLabeledRangeSlider(self)


class MyClass2(MyClass1):
    ...


app = QApplication(sys.argv)
main = QMainWindow()
obj = MyClass1(main)
main.setCentralWidget(obj)
main.show()
sys.exit(app.exec())
  • Windows 11
  • PySide6
  • Python 3.10.11
  • superqt 0.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions