Y
Y
Yaroslav2014-03-14 16:04:53
Python
Yaroslav, 2014-03-14 16:04:53

What are some good books on PyQT5, where to start learning it?

Good afternoon, ladies and gentlemen.
I recently started learning python, participated in the development of a rather large project, I know the basics.
I wanted to try out Python in conjunction with QT, I settled on PyQT5. After reading the differences between the fifth version and the fourth and several manuals for beginners, I came across the lack of books on PyQT5.
Specifically, why I decided to ask a question - using QT Designer I made a test form, overtook it with the pyuic5 utility into code, there is a QDialogButtonBox on the form with the “Yes” and “No” buttons.
A piece of generated code for the handler:

self.buttonBox.clicked['QAbstractButton*'].connect(self.btnClose.hide)

The event on the btnClose button, as I understood from the differences between versions 4 and 5, must be hung in this way:
@pyqtSlot(name='on_btnClose_clicked')
def close_app(self):
    self.close()

What do you need to change QAbstractButton* to handle clicking on the "Yes" button, for example? Where is it better to do this - in the UI module or the main module? Where can I find good code examples so I don't go "Python-way"?
All of this begs the question: is there literature or articles like this one for PyQT5?
PS Concerning QAbstractButton* the answer and did not find.
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GromderCom, 2015-03-19
@iquantii

There are good tutorials on PyQt5 at
python-3.ru/category/pyqt
More relevant article:
https://python-scripts.com/pyqt5

M
Mikhail Kuligin, 2017-01-10
@budda

The best book in Russian: Prokhorenok N. A. Python 3 and PyQt. Application development
Bought for liters in email. in the form - there is a high-quality pdf with a working table of contents
, it has listings for the book (you need to download it separately), there are a lot of examples for PyQt5, and in the book for PyQt4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question