Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. PyQT5 kernel getting dead while launching a simple programme..
Forum Updated to NodeBB v4.3 + New Features

PyQT5 kernel getting dead while launching a simple programme..

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 354 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hartry
    wrote on last edited by hartry
    #1

    Hiiii everyone, I am new using lib PyQT5.

    I wondering why my computer crash when try this code ?

    from PyQt5 import QtGui
    from PyQt5.QtWidgets import QApplication, QMainWindow
    import sys
    
    class Window(QMainWindow):
        
        def __init__(self):
            super().__init__()
            
            self.title = "PyQt5 Window"
            self.top = 100
            self.left = 100
            self.width = 680 
            self.height = 500
            self.InitWindow()
            
      def InitWindow(self):
            self.setWindowTitle(self.title)
            self.setGeometry(self.top,self.left,self.width,self.height)
            self.show()
    
    App = QApplication(sys.argv)
    window = Window()
    sys.exit(App.exec())
    

    the kernel is getting dead...

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of PyQt5 are you using ?
      What version of Qt is it built on ?
      How did you install both of them ?
      What Linux flavour are you running ?
      What graphics card do you have ?
      What driver are you using for it ?
      What do your kernel logs tell you ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved