PyQt4 to PyQt5 -> mainFrame() deprecated, need fix to load web pages

后端 未结 2 1791
说谎
说谎 2020-11-29 07:47

I\'m doing Sentdex\'s PyQt4 YouTube tutorial right here. I\'m trying to follow along but use PyQt5 instead. It\'s a simple web scraping app. I followed along with Sentdex\'s

2条回答
  •  醉梦人生
    2020-11-29 08:39

    Never too late... I got the same issue and found description of it here: http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#crashes-on-exit

    I followed the advice of puting the QApplication in a global variable (I know it is dirty... and I will be punished for that) and it works "fine". I can loop without any crash.

    Hope this will help.

提交回复
热议问题