About 51 results
Open links in new tab
  1. c++ - Qt - What exactly is QWidget - Stack Overflow

    One way to think about it is any object that knows how to display itself on the screen is a QWidget (in particular, some subclass of QWidget). There are some objects like QPicture that represent an …

  2. What's the difference between QMainWindow, QWidget and QDialog?

    Jul 21, 2010 · A QWidget is the base class for all drawable classes in Qt. Any QWidget -based class can be shown as a window by showing it when it has no parent. A QDialog is based on QWidget, but …

  3. python - Refreshing a QWidget - Stack Overflow

    Jun 9, 2015 · I've been having this issue a lot of times. When I modify some properties of a QWidget after the widget.show(), the widget won't update. Most of the time, a mouse click or when the mouse …

  4. qwidget - How to properly size Qt widgets? - Stack Overflow

    You can also add spacers when you need empty spaces. Extending a QWidget to override the QWidget::sizeHint method does not sound ridiculous to me, as you change the widget behaviour by …

  5. How to detect that the close button of QWidget is pressed?

    Nov 6, 2018 · Cause QWidget does not have a triggered signal. Solution I would suggest you to: Subclass QWidget and reimplement QWidget::closeEvent Check QEvent::spontaneous to …

  6. c++ - How to create QToolBar in QWidget? - Stack Overflow

    Jul 15, 2016 · I am trying to add a QToolBar in a QWidget. But I want its functionality to work as if it was a QMainWindow. Apparently I can not create QToolBar in a QWidget, and using setAllowedAreas …

  7. layout - How to make a Qt widget invisible without changing the ...

    May 29, 2012 · 1) Subclass your QWidget and use a special/own setVisible () replacement method witch turns on/off the painting of the widget (if the widget should be invisible simply ignore the painting with …

  8. What is the difference between a QWindow and QWidget

    Jul 25, 2013 · QWidget now lives in its own library (QtWidgets); it was necessary to provide the abstraction of a "toplevel window" for non-widgets based applications, and thus QWindow was …

  9. c++ - How to set QWidget width? - Stack Overflow

    How to set QWidget width? I know setGeometry(QRect& rect) function to do that, but in that case I should use geometry() function to get former parameters of my QWidget, then I should increment the …

  10. QWidget::setLayout: Attempting to set QLayout - Stack Overflow

    May 18, 2016 · You can't set a QLayout directly on the QMainWindow. You need to create a QWidget and set it as the central widget on the QMainWindow and assign the QLayout to that.