子类化QGridLayout时出错

时间:2017-07-31 15:40:42

标签: c++ qt c++11 qdialog qgridlayout

我正在尝试将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>

0 个答案:

没有答案