Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 months ago. Improve this question
Tag: qt
Is there a way to filter widgets in a ScrollArea with a QLineEdit based on specific attributes?
I’m doing an app in PyQt through Qt Designer and I’ve populated a (container widget inside a) Scroll Area with a list of cards (custom widgets that contains informations). I’ve put outside of the scroll area a QLineEdit and I want to use this QLineEdit to filter the cards based on specific attributes of each card (name, id, username). Is
PyQT: Storing multidimensional data and displaying as QTableView using model/view framework
EDIT: I’ve changed my approach since asking this question – see answer below. I’m building an application which displays data in a series of tables. I’m currently using PyQT’s item-based QTableWidget and manually updating the tables whenever data changes. I’d like to migrate to a model/view architecture using QAbstractItemModel and QTableView. My data has 3 dimensions: I’d like to store
Python Widget with SizePolicy
Why the sizePolicy doesn’t affect on widgets that aren’t in layout? here is an example: But that doesn’t work, if you changed the main window size the red box still has the same size. So how can I make that red box resizeable when the parent (main window) is changing. NOTE: I don’t want to use Layouts for some reason.
GRC QT GUI Range with slider presents error
Using GNU Radio Companion 3.9.4.0. My application has a “QT GUI Range” block. When the Widget is set to “Counter + Slider” I get the error The Python code for this condition is, With the Widget set to “Counter” there is no error. Now that same Python line is, How can I use the desired slider? = = = The
Frozen widgets in QScrollArea
I’m trying to create a grid of square buttons that is scrollable if the window is too small to show all of them. I’d like there to be labels on the left-most column and top-most row showing the button indices. Is there a way to create a QScrollArea with the widgets (labels) in the top-most row and left-most column “frozen”.
How to create .ts files for Qt Linguist with PySide6?
I have a python project written with PySide2 and now I want to migrate to PySide6. I used Qt Linguist to translate UI and created .ts files with help of this command: pylupdate5 utility from PyQt5 package (but it worked fine for my project with PySide2). Now I plan to get rid of PySide2 and PyQt5 packages. So, I need
Appending a row with widgets and text to a QStandardItemModel
I want to append a QWidget to a QStandardItemModel in a QTableView But when I try this the rows appear, event the it gets displayed, but never the Widgets I use in Answer Adding a widget to the data does not show the widget, it only stores it. If you want to display a widget then use the setIndexWidget method:
How to add QAction to QLineEdit in pyqt5?
I am making an application in pyqt5 in which I have to add QAction to QLineEdit. I have tried many times but failed. This is what I want Please help me. Thank you in advance Answer Here is a very basic example:
PySide2 Custom Signal Error: “AttributeError: ‘function’ object has no attribute ‘connect'”
This is my third project using PySide and I came across an unusual error when trying to use custom Signals and Slots. Below is a variation of what I am working on that is giving me the AttributeError. I have used a similar syntax for other projects with no issues, so any help is appreciated. I do understand per the