Python Forum
[PyQt] Learn pyqt5 using pyqt4
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.
Reply
#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.
Reply
#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.
Reply
#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
Reply
#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.
Reply
#6
They're highly compatible. Shouldn't have any issue learning between the two.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] how to transform pyqt4 code to pyqt5 code atlass218 4 4,751 Jan-20-2020, 05:45 PM
Last Post: Axel_Erfurt
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,785 Apr-06-2019, 11:15 PM
Last Post: ZenWoR
  [PyQt] PyQt4 dynamic QComboBox littleGreenDude 4 5,605 Jan-02-2019, 07:22 PM
Last Post: littleGreenDude
  [PyQt] PyQt4 handle dynamic checkbox click littleGreenDude 1 6,538 Dec-27-2018, 09:17 PM
Last Post: littleGreenDude
  PyQt4 installation frustration littleGreenDude 4 4,497 Dec-27-2018, 04:29 PM
Last Post: littleGreenDude
  [PyQt4] Is it right python coding scheme between TCP Server Thread and GUI class ? KimTom 3 3,209 Sep-18-2018, 01:21 PM
Last Post: Alfalfa
  How to Integrate PyQt4 Custom Widget with Qt Designer Zukias 1 3,884 Aug-29-2018, 05:33 PM
Last Post: Zukias
  Updating Python version from command prompt and Conversion from PyQt4 to PyQt5 Vysero 4 4,887 Jul-19-2018, 03:15 PM
Last Post: Vysero
  Trouble displaying an image in PyQt4 Vysero 2 3,062 Jul-01-2018, 05:25 PM
Last Post: Alfalfa
  [PyQt] problem with PyQt4 jss15497 0 2,725 Jan-16-2018, 08:32 AM
Last Post: jss15497

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020