Function desc:resize(w,h) is only available for drawing port descriptor returned by function qtwidget.newwindow. It resizes the underlying widget.