Bottom Page

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [PyQt] Learn pyqt5 using pyqt4
#1
I've been studing python for a year and I'm now trying to learn pyqt5. I have found some videos and online pyqt5 tutorials, but when learning something like pyqt I find it most helpful to have a book tht lays everthing out systematically. I cannot find such a book on pyqt5.

There are several books on pyqt4. It's my understanding that pyqt4 and pyqt5 are somewhat incompatible, but maybe not completely so. Here's my question: Will studying a book on pyqt4 help me to understand pyqt5 or just confuse me? Just how big are the differences between the two?

The book I have in mind is:
Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming by Mark Summerfield.
Quote
#2
It should, new features will become aparent to you as you progress.
There should also be a 'what's new'  doc somewhere in the qt5 install
readme file.
Quote
#3
I have looked over the what's new file for pyqt5, and to my eyes there seems to be big diferences. And that makes me reluctant to learn pyqt5 using a pyqt4 book. But I'm not sure. I don't have enough experience to know. It could be all the new stuff in pyqt5 are minor compared to what has not changed. If what I could learn in the pyqt4 book can transfer easily to pyqt5, I will eagerly jump into the book.
Quote
#4
With regard to the book I mentioned, Rapid GUI Programming with python and Qt, I found this link that translates the pyqt4 into pyqt5 code, which helps a great deal. I did the first example alarm.pyw and it did work using pyqt5, although I had to comment out the first four lines with "from __future__ ...". So i think this will work for me. Here's the link:

https://github.com/suzp1984/pyqt5-book-code
digitalmatic7 likes this post
Quote
#5
I came on this Youtube video series. Start here if you know nothing about pyqt5:

https://www.youtube.com/playlist?list=PL...OvxuPUVBDp

Videos are by Mark Winfield. I'm now up to video 12. They are very helpful and go at just the right pace.
digitalmatic7 likes this post
Quote
#6
They're highly compatible. Shouldn't have any issue learning between the two.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 318 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  Updating Python version from command prompt and Conversion from PyQt4 to PyQt5 Vysero 4 1,195 Jul-19-2018, 03:15 PM
Last Post: Vysero

Forum Jump:


Users browsing this thread: 1 Guest(s)