Skip to content
Advertisement

Tag: pyqt5

How to use QSortFilterProxyModel to do data aggregation

I used QSortFilterProxyModel to filter the model data and display it in a tableView. Then I want to aggregate the filtered data, so I created a new tableView2 to display the filtered data aggregation. I created a new QSortFilterProxyModel to aggregate the data, but I don’t know how to get the source data, and then increase the data But with

Why my PyQt5 Webview Code is not working?

This is my code. Why its not working? Where is my problem? Answer Your code has 2 problems: The QWebEngineView is not a child of the window so it will not be displayed. Change to self.widget = QWebEngineView(Form) QUrl(“google.com”) is not a valid url so you have 2 options, change to: QUrl(“https://google.com”) OR QUrl.fromUserInput(“google.com”)

Connect to MS access database using PyQt5

I’m trying to connect to a MS access database using the following code: I have office 2019 installed. I cannot figure out what is wrong in the connection string or the driver. Answer I figured out that this problem happened because I have a 64-bit of python and a 32-bit of access database engine driver. After installing the 64-bit access

How to Detect collisions in PyQt5

Iam making a simple game using PyQt, but i don’t know how i can detect the collisions between enemy and bullets, there is a C++ implementation, but i dont know how i can do that in PyQt. and it should be done in Bullet.py file. these are the files. Window.py Player.py Enemy.py Bullet.py Score.py from PyQt6.QtWidgets import QGraphicsTextItem from PyQt6.QtCore

Advertisement