Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1985

PySide6 crashes on moving QTabBar tabs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.3.1
    • PySide
    • None
    • Windows 10 x64, using Python 3.10.2.
    • Windows

    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()
      

       

      Attachments

        1. pyside1985_stack.txt
          86 kB
        2. pyside1985.py
          1.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            nvarchar Alma Mater
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes