DzScrollView help
djigneo
Posts: 283
What's the trick to getting the DzScrollView to show a (in this case vertical) slider?
var oDialog = new DzDialog();var oScrollView = new DzScrollView(oDialog);var oGrp = new DzVGroupBox(oScrollView);oGrp.columns = 1;for (var i = 0 ; i < 20; i++) { var oCheckBox = new DzCheckBox(oGrp);}oDialog.exec();Produces the attached image (after manually resizing dialog).
I suspect it's something on oScrollView.getWidget(), but I'm coming up with nothing. Any hints?
Edit: To clarify what I'm trying to accomplish, I'm attempting to display a list of items in a dialog which may be larger (vertically) than the dialog will support I would like to put them in a vertical scroll pane so that the user may scroll to see them all.
Post edited by djigneo on

Comments
According to the documentation DzScrollView is deprecated, and they suggest using DzScrollArea instead.
This will give you a scroll bar:
There is a related discussion here:
http://www.daz3d.com/forums/discussion/65059/how-to-display-the-scrollbars-of-a-dzscrollarea
Thanks! After a bit of fiddling I got it to function correctly. The
setWidget()line was indeed the majority of the culprit, though I can't say I completely understand what that line is supposed to do.DzScrollArea is a wrapper for QScrollArea. It is therefore safe to assume that DzScrollArea::setWidget() is simply a wrapper that provides access to QScrollArea::setWidget().
-Rob
Thanks, Rob. I'll read up on the QT script to get a better handle on UI code.