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
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…
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…
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…
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