Questions tagged [qframe]

QFrame is a class from the Qt Toolkit which provides the base class for widgets that can have a frame.

Documentation can be found here (Qt4) and here (Qt5).

75 questions
2
votes
2 answers

QFrame border is not displayed

I am trying to create a bouding frame for a set of widgets using QFrame. Eventually, I failed to create a mere empty frame, like demonstrated in Qt documentation (see table in a middle of the page). The QFrame itself is created no problem, but…
GlebMorgan
  • 37
  • 1
  • 7
2
votes
1 answer

raise_() function ignored

I am new to python and I am trying to rewrite a GUI with PyQt5. The GUI I made was writen with Tkinter. I am using frames in order to bring up different pages. With Tkinter I succeeded to get pages to the front with tkraise() function. But with…
2
votes
1 answer

how to set color of frame of Qframe?

I want to set a color of the frame provide by QFrame in pyside2. Below document provide complete details, how to create a frame with the different style, like a box, panel, Hline,…
2
votes
0 answers

PYQT - Qframe - Show/Hide without shifting the rest of the window

I got the following Test-GUI. There is a left layout and a right layout where i want to put buttons and other things onto. The button on the right should make a QFrame unhide or hide and all the widgets in it. This works. But after the first two…
Paul
  • 252
  • 3
  • 12
2
votes
1 answer

Draw QFrame around QPushButton PyQt5

I am unable to get a QFrame to completely surround a QPushButton Like a Border. It only frames the top and left side of the button. I was wondering what I'm doing wrong with the frame. import sys from PyQt5.QtGui import * from PyQt5.QtWidgets…
Austin Russell
  • 417
  • 4
  • 17
2
votes
1 answer

QFrame round border transparent background

I'm creating a round context menu using QFrame. To make round corner, I used Qt style sheet : this->setStyleSheet("QFrame#ShareContextMenu{ background-color:rgb(255,255,255); border-width:1px; border-color :rgb(0,0,0); …
sng
  • 113
  • 3
  • 7
2
votes
2 answers

QFrame with background image and otherwise transparent background

I am making a desktop carousel app. There I need to show image widgets, which might contain other sub-widgets as well. For that I am using a QFrame with the required image as background. Here is the image I am trying to use: image link. What I want…
SexyBeast
  • 7,913
  • 28
  • 108
  • 196
1
vote
1 answer

pyqt: how to put a border frame around a widget

I'm making some changes to an existing PyQt project. The UI was created with Qt Designer. The relevant part is a QWidget that displays text. I'm trying to put margins around the text. I'd think the simplest way to do this would be to put a border…
foosion
  • 7,619
  • 25
  • 65
  • 102
1
vote
1 answer

Trigger a function on clicking QFrame

I am working on a project with PyQt5 which has QFrames. I am using mouse press event to trigger a function on clicking frame as below : frame.mousePressEvent = lambda x: print_name(x, name) Above line is not executed at the start, It is executed…
Charlie
  • 33
  • 4
1
vote
1 answer

How to control the proportions of a QFrame in a layout?

It's My Code. My Requirement: if the Window Grows the frame also expands as per ratio in both directions. I am trying with SetSize Policy, but nothing will happen. How to achieve it? import sys from PyQt5.QtWidgets import * from PyQt5.QtCore…
Bala
  • 648
  • 5
  • 15
1
vote
1 answer

Overflow Widgets in that rounded corners QFrame

I have a problem with QFrame, when i setStyleSheet of QFrame like this; frame = QFrame(self.window) frame.setObjectName('Custom_Widget') frame.setStyleSheet(""" #Custom_Widget { background: #002025; border-radius: 20px; opacity:…
1
vote
0 answers

Using Dataframe with qframe and NULL values

I am trying to load a SELECT database statement into a qframe DataFrame. Unfortunetely, I am getting errors due to NULL values in the database. Does anyone know a workaround for this? My code: package main import ( "database/sql" "fmt" …
MRodrigues
  • 29
  • 3
1
vote
1 answer

How to make a QTextDocument as a widget?

I need to build a widget, which bases on QTextDocument. MyWidget.h class MyWidget: public QFrame { public: explicit MyWidget( QWidget *p_parent ); private: QTextDocument m_textDocument; }; MyWidget.cpp MyWidget::MyWidget( QWidget *p_parent )…
songvan
  • 369
  • 5
  • 21
1
vote
1 answer

Customized Widget like QFrame in Qt

I have written my own class in Qt creator (C++). I want to achieve something similar to the picture given below (see the Label "Options" at the top left of the border) (Even if well-known classes exist, you can mention those classes name but I still…
abhiarora
  • 9,743
  • 5
  • 32
  • 57
1
vote
1 answer

QFrame is not adjusting its size as per the size adjustment of parent widget

I created a widget class. This class will be maintaining child_1 of type QFrame(which is of type QWidget) and also a child_2 of type QGridLayout . child_2 will be adding child_1 to itself. The child_1 will be having a child of type QGridLayout and…
VivekVar
  • 69
  • 5