Qt - 这句话是什么意思 [英] Qt - What is meant by this sentence

查看:26
本文介绍了Qt - 这句话是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下网页:http://web.mit.edu/qt-dynamic/www/tutorials-tutorial-t3.html

提到了下面这句话:

一个小部件被它的父级和它前面的小部件剪裁.

这句话是什么意思?

谢谢.

推荐答案

Qt 有父/子部件的概念.父小部件是子小部件的容器,一直到主窗口小部件.所以这只是说小部件将被其父(容器)小部件剪裁.这意味着它不会超出其父级的边界,但如果超出则将被切断.同样,一个小部件会被它前面的任何小部件剪裁.

Qt has the concept of parent/child widgets. The parent widget is the container of the child widget, all the way up to the main window widget. So this is just saying that a widget will be clipped by its parent (container) widget. This means it won't extend past its parent's boundaries, but will be cut off if it goes beyond. Likewise, a widget is clipped by any widgets in front of it.

这篇关于Qt - 这句话是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆