I am using a subclassed QItemDelegate to display and edit cells in a QTableView. The editing part works perfectly. The issue I have is that for every cell that is editable, the background stays white when the row is selected (I use a row selection behavior). I have tried playing with the paint() method but ..
I’m working in a simple gui with a QtoolBox can increase the item dynamically (with button "add item"). I need to add, for each item, a new widget like table (for example TableView class) but I can’t understand how can I do it. Could anybody help me? (follow the code I wrote until now) from ..
I want to access the coordinates outside the mousePress function. What I want is: call self.curve.scene().sigMouseClicked.connect(self.mousePress) when PushButton is pressed. But I am unable to return the values from mousePress function. Please help me. import sys import platform from PySide2.QtWidgets import QApplication, QWidget, QPushButton from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtCore import (QCoreApplication, QPropertyAnimation, ..
I made a class for updating widget appearance at myWindow, however I cant figure out why the ‘update’ button func is not connected / being triggered. Or is this a bad approach in handling these things? read the other threads in which the self.connect(btn_name, ‘signal’, func) is being suggested but still dont understand why the ..
I made a class for updating widget appearance at myWindow, however I can’t figure out why the ‘update’ button func is not connected / being triggered. Or is this a bad approach in handling these things? Read the other threads in which the self.connect (btn_name, ‘signal’, func) is being suggested but still don’t understand why ..
I have created a simple application using PyQt5. I have converted this to .exe file using pyinstaller. But when I open it, It opens Command Prompt first and then my application opens. How do I resolve that. Last time it was running perfectly without opening Command Prompt. But when I converted it to exe again ..
I’m having trouble with the layout of the following program. I want to insert a QHBoxLayout into the first row (or any row for that matter) of a QVBoxLayout. Goal is to achieve something like this: Here is what I have so far: import sys, os from PyQt5.QtWidgets import * from PyQt5.QtWebEngineWidgets import QWebEngineView from ..
Currently, I have some code that creates a QTableWidget. When you click on a QTableWidget cell, a label appears which shows the name of the item you clicked. Then, there is a menu button at the top which, when clicked, takes you back to the QTableWidget. I do this using QStackedWidgets, and everything works well ..
“` from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from datetime import * import sqlite3 import sys import time import datetime # ==== Creating Delegate TreeWidget (Start) class MyDelegateTreeWidget(QStyledItemDelegate): def __init__(self): QItemDelegate.__init__(self) def sizeHint(self, option, index): return QSize(50, 60) # ==== Creating Delegate TreeWidget (End) # ====== Creating Customized Tree Widget ..
Currently I am trying to make a fitness timetable which is interactive, as the user is able to add, remove and edit the timetable, I want the user to be able to pick the exercises from a list, the exercises are already stored in a sqlite database. How should I approach the problem, what pyqt5 ..