Qt基类翻译_招募人员翻译.docx
notification.Notethatthenewchildmightnotbefullyconstructedwhenthisnotificationissent;callingpurevirtualfunctionsonthechildcanleadtoacrash.QGraphicsItem::ItemChildRemovedChange7Achildisremovedfromthisitem.Thevalueargumentisthechilditemthatisabouttoberemoved(i.e.zaQGrdphicsItempointer).Thereturnvalueisunused;yocannotadjustanythinginthisnotification.©numQGraphicsItem:GraphicsItemFlagflagsOGraphicsItem:GraphicsIteinFlagsThisenumdescribesdifferentflagsthatyoucansetonanitemtotoggledifferentfeaturesintheitem1sbehavior.Allflagsaredisabledbydefault.ConstantValueDescriptionQGraphicsItem:ItemIsMovableOxlTheitemsupportsinteractivemovementusingthemouse.Byclickingontheitemandthendragging,theitemwillmovetogetherwiththemousecursor.Iftheitemhaschildren/allchildrenarealsomoved.IftheitemISpartofaSelectionrallselecteditemsarealsomoved-Thisfeature1.sprovidedasaconveniencethroughthebaseimplementationofQGraphicsItem1Smouseeventhandlers-QGraphicsItem:IteniIsSelectable0x2Theitemsupportsselection.EnablingthisfeaturewillenablesetSelected()totoggleselectionfortheitem.ItwillalsolettheitembeselectedautomaticallyasaresultofcallingQGraphicsScene:JsetSelectionArea)rbyclickingonanitem,orbyusingrubberbandselectioninQGraphicsView.QGraphicsItem:ItemlsFocusable0x4Theitemsupportskeyboardinputfocus(i.e.jitisaninputitem).EnablingthisflagwillallowtheitemtoacceptfocusjwhichagainallowsthedeliveryofkeyeventstoQGraphicsItem:ReyPressEvent()andQGraphicsItem:ReyReleaseEvent().TheGraphicsItemFlagstypeisatypedefforQFlags<GraphicsItemFlag>.ItstoresanORc<nbinationofGraphicsItemFlagvalues.MemberFunctionDocumentationQGraphlcsltem:JQGraphicsltem(QGraphicsItem*parent-0,QGraphicsScenescene0)ConstructsaQGraphicsItemwithth©parentparentonscene.IfparentisOrtheitemwillbeatop-level.Ifsceneis0,th©itemwillnotbeassociatedwithascene.virtualitschildren.IfthisitemistheitemwillberemovedfromtheconstSeealsoQGraphicsScene:addltem).QGraphicsItem:-QGraphicsItem()?DestroystheQGraphicsItemandallcurrentlyassociatedwithascenezscenebeforeitisdeleted,boolQGraphicsItem:racceptDrops()