ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

QWidget类解析

2019-06-03 14:55:38  阅读:247  来源: 互联网

标签:widget 解析 窗口 鼠标 sizeIncrement QWidget property mouse


  • windowModality : Qt::WindowModality
    This property holds which windows are blocked by the modal widget
    这个属性设置本窗口是否为模式对话框以及模式对话框的属性
    This property only makes sense for windows. A modal widget prevents widgets in other windows from getting input. The value of this property controls which windows are blocked when the widget is visible. Changing this property while the window is visible has no effect; you must hide() the widget first, then show() it again.
    此属性仅在Windows环境下生效,模式对话框提供了一个可以使其他窗口得到输入的窗口,这个属性的值决定这个窗口在生效的时候,这个窗口是否是固定的,在这个窗口显示的时候改变这个属性对此窗口是无效的,你必须先隐藏这个窗口,然后再把它展示出来
    By default, this property is Qt::NonModal.
    This property was introduced in Qt 4.1.

  • sizeIncrement : QSize
    This property holds the size increment of the widget
    这个属性控制窗口的尺寸增加参数
    When the user resizes the window, the size will move in steps of sizeIncrement().width() pixels horizontally and sizeIncrement.height() pixels vertically, with baseSize() as the basis. Preferred widget sizes are for non-negative integers i and j:
    当用户改变窗口的大小时,尺寸将会基于基础尺寸且按照sizeIncrement().width()来一步步的增加宽度,按照sizeIncrement.height() 来一步步增加高度,不要输入负值

  • mouseTracking : bool
    This property holds whether mouse tracking is enabled for the widget
    这个属性决定了是否在这个窗口中追踪鼠标的位置
    If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.
    如果不追踪,窗口仅在鼠标点下的时候获取鼠标的位置
    If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed.
    如果持续追踪鼠标的位置,窗口将会持续接收到鼠标的位置

标签:widget,解析,窗口,鼠标,sizeIncrement,QWidget,property,mouse
来源: https://blog.csdn.net/qq_18260845/article/details/90751823

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有