QFrame is a class from the Qt Toolkit which provides the base class for widgets that can have a frame.
Questions tagged [qframe]
75 questions
0
votes
0 answers
Drawing on specific events inside QFrame
I want to create some 2D game, using PyQt5. So far I have created map (16x16) matrix.
I am drawing inside QFrame element, which is inside of QMainWindow, as central widget.
Now as I understand, inside QFrame, I have paintEvent method, which have…

Gvex95
- 11
- 3
0
votes
0 answers
pyqt: create a Qwidget through a function
I want to insert a QLabel in a frame of my GUI.
If i do it directly in the init function it works:
class MyApp(QMainWindow):
def __init__(self):
super().__init__()
uic.loadUi('MyGui.ui',self) # <<< this is the GUI made with…

Michele V
- 1
- 1
- 1
0
votes
2 answers
Add a QWidget inside a QFrame
I'm developing a desktop software using Python3 and QtDesigner for the Graphic User Interface.
My problem is the seguent: i'm trying to automate the creation of many QRadioButtons over a QFrame (The RadioButtons must stay inside the frame…

Michele V
- 1
- 1
- 1
0
votes
0 answers
How to draw/animate transparent images/objects over a video in PyQt5?
I created a media player application using python-vlc and PyQt5, quite similar to this qtvlc code.
A minimal reproducible code is shown as follows:
class Player(QMainWindow):
"""A simple Media Player using VLC and Qt
"""
def…

Ashwani Kumar
- 141
- 4
0
votes
1 answer
QtCreator stopped working when a widget added
I alleady have 2 buttons on my frame but when I try to add 3rd button QtCreator stops working. When I try to add another frame same thing happend. Here is the sample of my code.
QFrame *buttonFrame = new…

trytobedeveloper
- 67
- 10
0
votes
1 answer
How to set QFrame color in an eventFilter?
I have a simple QWidget that contains a frame and two labels. I want to use eventFilter to change QFrame background color on label hover. Can someone please check the below code and tell me why I can't change the QFrame background and if it is the…

user3840530
- 290
- 1
- 4
- 14
0
votes
1 answer
Overlay grid onto QFrame
So, I have a QFrame with its layout set as a QGridLayout.
Within this layout I have tiles in rows of 16 which represent something of a palette.
I want this grid of tiles to be separated by lines, like a grid should be. I can do this easily with the…

Connor Spangler
- 805
- 2
- 12
- 29
0
votes
1 answer
Composite Widget containig buttons, labels, etc. How to build such and how to use it
I am looking for most proper solution for creating composite widgets that I would be able to reuse in few places across application (graphical control interface with several submenus where some complex widgets would be reused).
Mainly I was trying…

Maciej Rurarz
- 3
- 1
0
votes
0 answers
How to ensure the QFrame title is scaled automatically with the Window 10's "Make text bigger" scaling?
I have a custom panel implementation that is inherited from QFrame. I can set the title by using the setWindowTitle() function. I noticed that I can not set the font size of this title, but I was expecting that this title will be scaled based on…

John Yang
- 547
- 1
- 8
- 21
0
votes
0 answers
How can I have a QFrame update its contents without having to mouse-click on the QFrame area?
I am creating a GUI with PyQt5, in the main window I have a QFrame, after some calculations, a mesh is added to this object, however, not until I mouse-click while hovering on the QFrame area does the plotted mesh appear on the screen.
I am trying…

jLordMey
- 9
- 3
0
votes
0 answers
How do I add the default glowing selection border to a custom QWidget?
I have a custom widget comprised of a QFrame housing a QWebEngineView, which displays a in its HTML.
In the following picture, the top widget is a QComboBox, the middle widget is my custom widget, and the bottom widget is a QPushButton.…

midrare
- 2,371
- 28
- 48
0
votes
1 answer
QLabel border visible within QGridLayout
I'm facing a problem with UI design.
I'm using QT 4.6.2 with QTCreator 1.3.1
I have a QFrame with a background image that "draw" the grid see image below
When i add a QLabel within the layout, when i run the app i see top left border. For test, i…

Leonardo Zambonelli
- 13
- 2
0
votes
1 answer
Can QFrame be triggered by its childs elements
When an item (spinBox, LineEdit etc) changes its value in GUI (via designer) I set a certain button's enable status. For…

shafuq
- 465
- 6
- 20
0
votes
1 answer
Drawing on a main class's subclass in Qt
I have created a main class called widget.cpp, which inherits QFrame. And from widget.cpp I create a subclass called frame.cpp in which I reimplement paintEvent() method for drawing image. The problem is that, when I try to draw image directly…

Som
- 185
- 15
0
votes
1 answer
PySide / PyQt: How to create custom classes?
I'm trying to create checkbox, frame, and grid layout objects and store them in their own list.
The output from Qt Designer looks like:
Essentially, I want to create Checkbox1, then create a frame and grid layout to store Checkbox2 and Checkbox3.…

Arda Arslan
- 1,331
- 13
- 24