233 | | scrollarea.setWidget(self.outputmatrix) |
---|
234 | | layout.addWidget(scrollarea) |
---|
| 234 | |
---|
| 235 | # This is a bit of a hack, but it works to ensure this single-row |
---|
| 236 | # matrix mixer doesn't fill the entire screen but also doesn't end |
---|
| 237 | # up with a pointless scrollbar. The matrix mixer's minimum height |
---|
| 238 | # is 0 according to minimumHeight(), which is probably the |
---|
| 239 | # fundamental issue here; however, I've already wasted too much time |
---|
| 240 | # trying to get this to work so if the hack is effective we'll run |
---|
| 241 | # with it. |
---|
| 242 | scrollarea.setMinimumHeight(150) |
---|
| 243 | layout.addWidget(scrollarea, 0, Qt.AlignTop) |
---|