Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault with QLabeledRangeSlider #273

Open
patquem opened this issue Jan 23, 2025 · 0 comments
Open

Segmentation fault with QLabeledRangeSlider #273

patquem opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@patquem
Copy link

patquem commented Jan 23, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant