Hi Nicholas,
QScrollArea manages a single widget. It provides a default, or you can
override it - look at the docs.
So in this case, you could apply the layout and pushbutton to
scroll.widget, instead of scroll itself.
Also take out the self.setLayout(vbox) - the layout can only belong to
Hi,
The QPushButton I added does not stay inside of a scroll area, where am I
calling the API wrongly ?
import sys
from PySide2 import QtWidgets, QtCore
class Example(QtWidgets.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
scroll = QtWidgets.QScr
On Sunday, 11 July 2021 11:45:37 PDT David M. Cotter wrote:
> > How did you create this project?
>
> it's just a qmake (.pro) file. i compile and run from within Qt Creator.
Can you provide it? Or the stderr of "qmake -d -d" when run on that project?
--
Thiago Macieira - thiago.macieira (AT) in