Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.3.1
-
None
-
Windows 10 x64, using Python 3.10.2.
Description
Hi there,
I have an issue with moving Tabs on a TabBar. When I insert two tabs and drag the first tab to the right on top or over the right tab, Python crashes with the following error message:
Process finished with exit code -1073741819 (0xC0000005)
Upon investigation, this also happens with dragging the second tab on top or over the left tab.
This happened as soon as I set setMovable to True on QTabWidget.
I created a test-case to make it reproducible:
import sys from PySide6.QtWidgets import QMainWindow, QApplication, QWidget, QHBoxLayout, QTabWidget, QTabBar class MainWindow(QMainWindow): def __init__(self): super().__init__() self.render_program() def render_program(self): tabs = QTabWidget() tab_bar = QTabBar() tab_bar.insertTab(0, "First Tab") tab_bar.insertTab(1, 'Second Tab') tabs.setTabBar(tab_bar) tabs.setMovable(True) layout = QHBoxLayout() layout.addWidget(tabs) widget = QWidget() widget.setLayout(layout) self.setCentralWidget(widget) self.setGeometry(300, 300, 650, 450) self.show() def main(): app = QApplication(sys.argv) ex = MainWindow() ex.show() sys.exit(app.exec()) if __name__ == '__main__': main()