Remove default numbers from QHeaderView when using a custom label in the header

I am attempting to customize a QHeaderView in order to create custom labels that span two or more columns. In the code below, I have done this by placing a QLabel over the appropriate sections of the overall header. However, the default header numbering of the individual columns still appears as shown below. How can… Read More Remove default numbers from QHeaderView when using a custom label in the header

ImportError: dlopen when running pyside6 app | Python

I am trying to run my app on mac, I got my whole code to an IMac;then, I installed all my libraries, but when I run it, it throws this error: Traceback (most recent call last): File "~/main.py", line 8, in <module> from PySide6.QtWidgets import QApplication, QWidget ImportError: dlopen(/Users/user/Desktop/~/venv/lib/python3.10/site-packages/PySide6/QtWidgets.abi3.so, 2): Symbol not found: _NSAppearanceNameDarkAqua Referenced… Read More ImportError: dlopen when running pyside6 app | Python

Why is my QPushButton overlapping the QMenuBar

I have this QMenuBar and I wanted to put a button on the screen and for some reason it just overlaps the menubar…? Here is my code: class LeagueHelperWindow(QMainWindow): def __init__(self) -> None: super().__init__() self.setWindowTitle(‘League Helper’) self.load_saved_settings() self.setup_menu_bar() self.vbox = QVBoxLayout(self) self.setLayout(self.vbox) self.button = QPushButton(‘Test’, self) self.vbox.addWidget(self.button) self.vbox.addStretch() self.setLayout(self.vbox) def setup_menu_bar(self): menu_bar = QMenuBar(self) file_menu… Read More Why is my QPushButton overlapping the QMenuBar

Pysides6 columnSpan backwards from setting

I’m trying to create an app with a file browser that is 1/5 the width of a tab pane. Why is the layout columnSpan backwards from what I set it? class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.setWindowTitle("My App") layout = QGridLayout() layout.addWidget(FileTree(), 0, 0, 1, 1) layout.addWidget(Tabs(), 0, 1, 1, 5) widget = QWidget() widget.setLayout(layout)… Read More Pysides6 columnSpan backwards from setting