Questions tagged [qwidget]

QWidget is key part of the Qt C++ classes. QWidget is the base class of all the user interface elements in the Qt framework.

The widget is the atom of the user interface: it receives mouse, keyboard and other events from the window system, and paints a representation of itself on the screen. Every widget is rectangular, and they are sorted in a Z-order. A widget is clipped by its parent and by the widgets in front of it.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

1466 questions
-2
votes
2 answers

pyqt5 - update a dynamically created widget with its corresponding data

I have created a tool with help of a custom widget. This widget fits into the main window like so. User can create new instances of custom widget with a click of a button. custom widget : class RenderWidget(QWidget): def __init__(self,…
nish
  • 1,008
  • 4
  • 17
  • 34
-2
votes
1 answer

How to properly display a picture in PyQt5?

I am making a podcast application where I want to display channel icons. That's where I asked myself : How do I properly display a picture in PyQt5 ? I read about this: label = QLabel() pixmap = QPixmap('image.png') label.setPixmap(pixmap) It's…
TheEagle
  • 5,808
  • 3
  • 11
  • 39
-2
votes
2 answers

pyqt5 border apply only to parent widget problem

Everyone. I have strange issue in pyqt5. I tried to change border but failed, I have always headache when applying border style. Here comes my code. Pls help me from PyQt5.QtWidgets import QWidget,QApplication,QTextEdit from PyQt5.QtCore import…
dauren slambekov
  • 378
  • 3
  • 15
-2
votes
2 answers

QGraphicView doesn't show anything

I tried to show video using QGraphicView but my code doesn't show anything. What is the problem QGraphicsScene scene; QGraphicsVideoItem *item1 = new QGraphicsVideoItem; item1->setPos(0,100); QMediaPlayer * player1 = new…
Ali
  • 9
-2
votes
2 answers

Making Qwidget Transparent on VideoWidget

I have a QWidget which should take place over the central widget of my application which is a VideoWidget for playing video. The problem is that I can't set background of the QWidget to be transparent.
Ali
  • 9
-2
votes
1 answer

the page that I created opens and closes immediately

I want to open a second window when the button is pressed. The window opens and closes immediately. Does someone know what I'm doing wrong? This is my code: import sys from PyQt5 import QtGui from PyQt5.QtWidgets import QMainWindow, QPushButton,…
-2
votes
1 answer

Qt : setGeometry not resize at the launchning of the app

I'm working for a project in my degree and I have a problem with the GUI. I have tested the placement of the differents widgets on a separated project to simplify the code I try. Here is my problem: I have created an overloaded resizeEvent to…
-2
votes
1 answer

How to show output video of other application in Qt?

I am creating a GUI application in Qt. This application is to display output of a application X which is not related to Qt hence i cant integrate it. X will output a video . This video do not have a path since it is a real-time display of X…
Bavani
  • 329
  • 1
  • 3
  • 12
-3
votes
1 answer

name 'QTableWidgetItem' is not defined

I tried install all rquired libsI tried install all rquired libs and Im so sorry I am new here,Im trying to show datas in database on that widget and this problem occurs,I searched all others about that but could not find any issue import sys from…
-4
votes
1 answer

adding a qwidget into QMainWindow as central widget

I created a Qwidget in QtCreator and want to put it into my QMainWindow as central widget. Here is the line that I do it inside the constructor of QMainWindow. q = new QWidget(); setCentralWidget(q); ui->setupUi(q); In the photo below you can…
in4001
  • 656
  • 6
  • 24
-7
votes
1 answer

Maintaining Qt Application as Module and Library

How to Maintain 500 qt ui widget form in a single Application. Is it Possible to separate as form application as Module or library. If it is possible, how to links each modules.Is it possible to create separate folders for each modules.
1 2 3
97
98