#pyqt desktop simulator icons won't display properly

3 messages · Page 1 of 1 (latest)

marsh bloom
#

the screenshot will go much further in explaining what I mean

#

that little weird box on the upper left....that's supposed to be the icon for the browser

#
import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtGui import QPixmap, QIcon
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QPushButton, QLabel
from PyQt5.QtWebEngineWidgets import QWebEngineView

class DesktopSimulatorApplication(QApplication):
    def __init__(self, sys_argv):
        super(DesktopSimulatorApplication, self).__init__(sys_argv)
        self.desktop_simulator_window = DesktopSimulatorWindow()
        self.desktop_simulator_window.show()

class DesktopSimulatorWindow(QMainWindow):
    def __init__(self):
        super(DesktopSimulatorWindow, self).__init__()

        self.setWindowTitle("Desktop Simulator")
        self.setGeometry(100, 100, 800, 600)

        # Create a central widget to hold the desktop simulator components
        central_widget = QWidget(self)
        self.setCentralWidget(central_widget)