Top "Qwidget" questions

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

adding submenu in pyqt QWidget

I know its very basic question but I am little bit confused, probably I am forgetting something. I am trying …

pyqt4 pyside qwidget qmenu qmenubar
Qt: shadow around window

I can add shadow to widget: QGraphicsDropShadowEffect *bodyShadow = new QGraphicsDropShadowEffect; bodyShadow->setBlurRadius(9.0); bodyShadow->setColor(QColor(0, 0, 0, 160)); bodyShadow->setOffset(4.0); …

c++ qt window shadow qwidget
Removing QWidgets from a QGridLayout

I have a QGridLayout where I add my custom QWidgets. When I try to delete all of them they are …

c++ qt qwidget qgridlayout
How can I prevent a QWidget from painting, but still respond to events?

I have a QGLWidget that renders an OpenGL scene inside a Qt application. I would like to add some other …

qt opengl paint qwidget
Duplicate a QWidget

I need to be able to copy a Qwidget so I can duplicate a window because it will change during …

c++ qt copy-constructor qwidget
Resize QStackedWidget to the page which is opened

I want my QStackedWidget to resize to the page which is opened. I got a lot of widgets attached to …

qt size qwidget qstackedwidget
Qt - Draw a fully transparent window in Windows without using WA_TranslucentBackground

I need to draw transparent window (either QLabel or QFrame or QWidget), but without using WA_TranslucentBackground. The reason for …

c++ qt transparent qwidget qframe
How can I get the indices of QListWidget::selectedItems()?

I have QListWidget and I need to get the indices of selected items. (I could work with items in the …

c++ qt qwidget qlistwidgetitem
How to force QWidget to be shown in a separate window?

I have class MyWidget : public QWidget { Q_OBJECT public: explicit MyWidget (QWidget *parent); // ... }; // here is ALL the code in MyWidget …

qt4 qwidget
Customize QDial with stylesheet

There are comprehensive examples for style sheets of QWidgets here. Unfortunately QDial is missing from the examples. Can I change …

qt qwidget qtstylesheets qdial