我正在尝试将QGridLayout子类化以构建一个小部件,以设置为QDialog的布局。当我尝试做“setLayout(view);”在View_currentSpec构造函数中,我有一个来自编译器的错误,该错误表示“未为此范围声明视图”。我做错了吗?
<div ng-controller="EventCtrl">
<div ng-hide="eventComplete">
<h2>Example that doesn't disappear on button click</h2>
</div>
<div ng-hide="eventComplete">
<div>
<h2>Example</h2>
<md-button ng-click="eventFinish();">Finish</md-button>
</div>
</div>
<div ng-show="eventComplete">
<h2>Complete!</h2>
</div>
</div>