• 4218阅读
  • 1回复

求助...有点莫名其妙关于windowModified属性~~ [复制链接]

上一主题 下一主题
离线leezy
 
只看楼主 正序阅读 楼主  发表于: 2009-08-09
   Qt助手里面是这样说的吧:

    Note that if a widget is set as modified, all its ancestors will also be set as modified. However, if you call setWindowModified(false) on a widget, this will not propagate to its parent because other children of the parent might have been modified.

    看看我有无理解错误:  
    注: 如果一个窗口部件设置为被修改,那么它所有的祖先也会被设置为被修改. 不过,如果你在这个部件上调用setWindowModified(false),那么它不会影响它的父对象,因为它的父亲还有其他子对象已经被改变...
    按它的说法就是子对象call setWindowModified(true),那么父对象的windowModified属性也会改变吧??   还是要怎么理解???
离线yj_yulin

只看该作者 1楼 发表于: 2009-08-10
实践是检验真理的唯一标准。
快速回复
限100 字节
 
上一个 下一个