Thomas, Sure that would be as simple as adding a line to the widgetOpenedHandler function in the QueryWidget.mxmlmap.getLayer("yourlayerlabelintheconfig").visible = true;
Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).Follow the steps as shown in the below graphic: