Qt基类翻译_招募人员翻译.docx

上传人:王** 文档编号:1403806 上传时间:2024-07-06 格式:DOCX 页数:1 大小:9.30KB
下载 相关 举报
Qt基类翻译_招募人员翻译.docx_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

《Qt基类翻译_招募人员翻译.docx》由会员分享,可在线阅读,更多相关《Qt基类翻译_招募人员翻译.docx(1页珍藏版)》请在优知文库上搜索。

1、notification.Notethatthenewchildmightnotbefullyconstructedwhenthisnotificationissent;callingpurevirtualfunctionsonthechildcanleadtoacrash.QGraphicsItem::ItemChildRemovedChange7Achildisremovedfromthisitem.Thevalueargumentisthechilditemthatisabouttoberemoved(i.e.zaQGrdphicsItempointer).Thereturnvaluei

2、sunused;yocannotadjustanythinginthisnotification.numQGraphicsItem:GraphicsItemFlagflagsOGraphicsItem:GraphicsIteinFlagsThisenumdescribesdifferentflagsthatyoucansetonanitemtotoggledifferentfeaturesintheitem1sbehavior.Allflagsaredisabledbydefault.ConstantValueDescriptionQGraphicsItem:ItemIsMovableOxlT

3、heitemsupportsinteractivemovementusingthemouse.Byclickingontheitemandthendragging,theitemwillmovetogetherwiththemousecursor.Iftheitemhaschildren/allchildrenarealsomoved.IftheitemISpartofaSelectionrallselecteditemsarealsomoved-Thisfeature1.sprovidedasaconveniencethroughthebaseimplementationofQGraphic

4、sItem1Smouseeventhandlers-QGraphicsItem:IteniIsSelectable0x2Theitemsupportsselection.EnablingthisfeaturewillenablesetSelected()totoggleselectionfortheitem.ItwillalsolettheitembeselectedautomaticallyasaresultofcallingQGraphicsScene:JsetSelectionArea)rbyclickingonanitem,orbyusingrubberbandselectioninQ

5、GraphicsView.QGraphicsItem:ItemlsFocusable0x4Theitemsupportskeyboardinputfocus(i.e.jitisaninputitem).EnablingthisflagwillallowtheitemtoacceptfocusjwhichagainallowsthedeliveryofkeyeventstoQGraphicsItem:ReyPressEvent()andQGraphicsItem:ReyReleaseEvent().TheGraphicsItemFlagstypeisatypedefforQFlags.Itsto

6、resanORcnbinationofGraphicsItemFlagvalues.MemberFunctionDocumentationQGraphlcsltem:JQGraphicsltem(QGraphicsItem*parent-0,QGraphicsScenescene0)ConstructsaQGraphicsItemwiththparentparentonscene.IfparentisOrtheitemwillbeatop-level.Ifsceneis0,thitemwillnotbeassociatedwithascene.virtualitschildren.IfthisitemistheitemwillberemovedfromtheconstSeealsoQGraphicsScene:addltem).QGraphicsItem:-QGraphicsItem()?DestroystheQGraphicsItemandallcurrentlyassociatedwithascenezscenebeforeitisdeleted,boolQGraphicsItem:racceptDrops()

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > IT计算机 > C/C++资料

copyright@ 2008-2023 yzwku网站版权所有

经营许可证编号:宁ICP备2022001189号-2

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!