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
2 answers
How to avoid repaint on QFrame?
I have a QFrame that is used to paint some rectangles to represent some periods of the day, for example, the period when the user was sleeping.
To do so I overwrite the paintEvent(QPaintEvent *) function and I'm using a QPainter to paint the…

KelvinS
- 2,870
- 8
- 34
- 67
0
votes
1 answer
QScrollArea with custom QFrame
I'm using Qt 5.8. I have my custom QFrame (call it MyQFrame), which consists of several other QWidgets and can (and will) contain other instance of my custom MyQFrame. I set minimum size for MyQFrame. MyQFrame uses QGridLayout as layout.
This…

Pyro2266
- 310
- 2
- 5
- 18
0
votes
1 answer
Add a QScrollArea to a QFrame
I am developing my own widget which is a kind of tree view, and I am facing a little problem : my items are QPushButtons, they are in a QFrame, which is in a scrollArea. When I deploy my items, scroll bars don't appear and I can't use my scroll…

Amott
- 191
- 9
0
votes
1 answer
Enable own widget for stylesheet
I want to enable my own widget class for stylesheets, whereat I am not talking about setStyleSheet(qss), but selectors in a qss stylesheet. It is understood that I have to replace the "::" with "--" in namespaces.
Here ( Qt Stylesheet for custom…

Horst Walter
- 13,663
- 32
- 126
- 228
0
votes
1 answer
Subclassed QFrame not adjusting to it's layout
I'm trying to include a horizontal frame containing a label inside a vertical frame, but even though the label is displayed it's not in the right position and it's limited to a size of a standard QLabel
This is the main class:
class…

dawkot
- 35
- 4
0
votes
1 answer
How to customize the QTextEdit boundaries?
I'm very new to the designer mode of Qt.
I want QTextEdit to have a look exactly as shown in this . "High Score" should be part of the boundary. How is it possible to customize the qtextedit like this? Is it through QStylesheet I have to do that or…

the_naive
- 2,936
- 6
- 39
- 68
0
votes
1 answer
Add parent to UI Object in Qt
I have QWebView object located on my UI in Designer Tab, I want to add a parent to him which will be QFrame, reason I am doing this is because I cannot use border QSS property on QWebView.
user5585984
0
votes
1 answer
PySide Frame doesn't appear on Grid Layout
I'm trying to add a simple square to a grid layout, but it doesn't seem to work.
Here is the code:
self.resultFrame = QFrame()
self.resultFrame.setGeometry(100, 200, 0, 0)
self.resultFrame.setStyleSheet("QWidget { background-color: #000…

Gustavo Amgarten
- 396
- 4
- 20
0
votes
2 answers
Qt Balloon Window from QFrame
I would like to create my own Balloon window for tips in Qt. I'm starting by creating a window with round corners.
I'm using a class inherited from QFrame. The class's constructor contains:
this->setWindowFlags(Qt::Window |…

The Quantum Physicist
- 24,987
- 19
- 103
- 189
0
votes
1 answer
Windows becomes dim when button press takes longer time
How could I prevent the mainwindow goes to dim, even the button click event take long time to response.
For example:
file myframe.h
class MyFrame : public QFrame
{
Q_OBJECT
public:
explicit MyFrame(QWidget *parent=0);
~MyFrame();
void…

user2430607
- 25
- 6
0
votes
1 answer
Qt Scaling/zooming contents of a QFrame (widgets, etc)
Is there a way in which I can rescale a QFrame and all of its child widgets? The child widgets are all custom widgets of mine and I'm always interacting with them, but I need them all to scale, even their relative coordinate positions

Yattabyte
- 1,280
- 14
- 28
0
votes
1 answer
How to load a QtDesigner ui form into a QFrame of another ui form?
I have designed a QWidget based QtDesigner ui form. Lets call it Form1. I added few pushbuttons and labels in it. Now I designed another QWidget based qt ui designer form.Lets call it Form2. I have a QFrame in Form 2 in which I would like to load…

gfernandes
- 1,156
- 3
- 12
- 29
-1
votes
1 answer
How to edit the name of a dynamically added pushbutton inside a qframe
I have added few pushbuttons dynamically inside a qframe,but I want to edit the names of the pushbuttons.
QPushButton* newButton = new QPushButton("new button " +…

Neocoder_1
- 49
- 1
- 13
-1
votes
1 answer
PyQt5 - QFrame size is ignored in window
I was creating an application with a QFrame on the left side and a control panel on the right. However, I cannot get the QFrame on the left to be sized properly. I created the following example to demonstrate the problem:
import sys
from…

Roberto
- 958
- 13
- 33
-1
votes
1 answer
How to add QFrame or QWidget as QWizardPage on QWidzard
I tried adding a frame/widget subclass on QWizard subclass but a wizard page is blank. I added QMainWindow subclass and it works fine.
QuickSetupWizard::QuickSetupWizard(QWidget *parent) :
QWizard(parent),
ui(new Ui::QuickSetupWizard)
{
…

V. Purbia
- 57
- 5