PyQt5 QTabBar paintEvent with tabs that can move
问题 I would like to have a QTabBar with customised painting in the paintEvent(self,event) method, whilst maintaining the moving tabs animations / mechanics. I posted a question the other day about something similar, but it wasn't worded too well so I have heavily simplified the question with the following code: from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtTest import QTest import sys class MainWindow(QMainWindow): def __init__(self,parent=None,