I create applications using **QtDesigner **by loading .ui files.
Everything works but why there are no suggestions when writing code for clicked.connect(some_def)
e.g.:
I have python 3.11.3 and PyCharm IDE installed.
code example:
`from PyQt5 import QtWidgets, uic from PyQt5.QtWidgets import QMainWindow, QAbstractButton import sys
class Ui(QMainWindow): def init(self): super(Ui, self).init() uic.loadUi('gui.ui', self)
#self.button = QtWidgets.QPushButton("&Print", self)
self.button = self.findChild(QtWidgets.QPushButton, 'printButton')
self.button.clicked.connect(self.printButtonPressed)
self.show()
def printButtonPressed(self):
print('printButtonPressed')
app = QtWidgets.QApplication(sys.argv) window = Ui() app.exec_()`
I tested on python 3.10.11 and python 3.8.10 but the suggestions still don't work.