Top "Qwidget" questions

QWidget is key part of the Qt C++ classes.

How to set QWidget width?

How to set QWidget width? I know setGeometry(QRect& rect) function to do that, but in that case I …

c++ qt qwidget
How to assign callback when the user resizes a QMainWindow?

Neither I could find a tutorial-like scheme for a resize event on QMainWindow, nor I did see any option for …

qt qwidget
How to make an expandable/collapsable section widget in Qt

I would like to create a custom widget in Qt with the following features: It is a container It may …

c++ qt widget custom-controls qwidget
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout

I want to create some tabs, and I read this answer: How to add a tab in PySide I use …

python tabs pyside qwidget qlayout
Qt Designer how to change background

This is an repost. I am kind of new in QtDesigner and wanted to do something about the uglyness of …

python pyqt pyqt5 qwidget qt-designer
Is it possible to set the opacity of qt widgets?

I know that there is a function QWidget::setWindowOpacity(qreal level) but as written in the documentation this does only …

c++ qt opacity qwidget
Adding a QLabel to a QWidget

I am new to Qt and C++ and working on an application and I am trying to add QLabel in …

c++ qt qwidget qlabel qlayout
How to Clear all the Widgets in Parent Widgets?

I am using the constructor QWidget(QWidget *parent). This parent widget contains a lot of child widgets. I need to …

qt qwidget
PyQt5 - Add image in background of MainWindow layout

New to PyQt5... Here is a very basic question. I would like to add an image inside the layout of …

python-3.x qwidget pyqt5 qimage qlayout
Qt5. Embed QWidget object in QML

I am using Qt5 beta and trying to embed a QWidget-based object into QML. The goal is to use QML …

qml qwidget qt5