I need help with a py generated file that was made in QT. I use the following line
QtGui.QTabWidget.addTab(self.tabWidget, QtGui.qApp.tr("New Tab"))
and get this error
Traceback (most recent call last):
File "C:\python\mainwindow2.py", line 349, in createInvoice
QtGui.QTabWidget.addTab(self.tabWidget, QtGui.qApp.tr("New Tab"))
TypeError: arguments did not match any overloaded call:
QTabWidget.addTab(QWidget, QString): argument 2 has unexpected type 'QString'
QTabWidget.addTab(QWidget, QIcon, QString): argument 2 has unexpected type 'QString'
What am I doing wrong? I can't leave the field empty, it gives a different error.