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

上传人:李司机 文档编号:7186907 上传时间:2024-06-29 格式: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()

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

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号