QtGui.pyi 384 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415
  1. # The PEP 484 type hints stub file for the QtGui module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. # Support for QDate, QDateTime and QTime.
  29. import datetime
  30. # Convenient type aliases.
  31. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  32. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  33. class QAbstractFileIconProvider(PyQt6.sip.simplewrapper):
  34. class Option(enum.Flag):
  35. DontUseCustomDirectoryIcons = ... # type: QAbstractFileIconProvider.Option
  36. class IconType(enum.Enum):
  37. Computer = ... # type: QAbstractFileIconProvider.IconType
  38. Desktop = ... # type: QAbstractFileIconProvider.IconType
  39. Trashcan = ... # type: QAbstractFileIconProvider.IconType
  40. Network = ... # type: QAbstractFileIconProvider.IconType
  41. Drive = ... # type: QAbstractFileIconProvider.IconType
  42. Folder = ... # type: QAbstractFileIconProvider.IconType
  43. File = ... # type: QAbstractFileIconProvider.IconType
  44. def __init__(self) -> None: ...
  45. def options(self) -> 'QAbstractFileIconProvider.Option': ...
  46. def setOptions(self, a0: 'QAbstractFileIconProvider.Option') -> None: ...
  47. def type(self, a0: QtCore.QFileInfo) -> str: ...
  48. @typing.overload
  49. def icon(self, a0: 'QAbstractFileIconProvider.IconType') -> 'QIcon': ...
  50. @typing.overload
  51. def icon(self, a0: QtCore.QFileInfo) -> 'QIcon': ...
  52. class QAbstractTextDocumentLayout(QtCore.QObject):
  53. class Selection(PyQt6.sip.simplewrapper):
  54. cursor = ... # type: 'QTextCursor'
  55. format = ... # type: 'QTextCharFormat'
  56. @typing.overload
  57. def __init__(self) -> None: ...
  58. @typing.overload
  59. def __init__(self, a0: 'QAbstractTextDocumentLayout.Selection') -> None: ...
  60. class PaintContext(PyQt6.sip.simplewrapper):
  61. clip = ... # type: QtCore.QRectF
  62. cursorPosition = ... # type: int
  63. palette = ... # type: 'QPalette'
  64. selections = ... # type: collections.abc.Iterable['QAbstractTextDocumentLayout.Selection']
  65. @typing.overload
  66. def __init__(self) -> None: ...
  67. @typing.overload
  68. def __init__(self, a0: 'QAbstractTextDocumentLayout.PaintContext') -> None: ...
  69. def __init__(self, doc: 'QTextDocument|None') -> None: ...
  70. def blockWithMarkerAt(self, pos: QtCore.QPointF) -> 'QTextBlock': ...
  71. def formatAt(self, pos: QtCore.QPointF) -> 'QTextFormat': ...
  72. def imageAt(self, pos: QtCore.QPointF) -> str: ...
  73. def format(self, pos: int) -> 'QTextCharFormat': ...
  74. def drawInlineObject(self, painter: 'QPainter|None', rect: QtCore.QRectF, object: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ...
  75. def positionInlineObject(self, item: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ...
  76. def resizeInlineObject(self, item: 'QTextInlineObject', posInDocument: int, format: 'QTextFormat') -> None: ...
  77. def documentChanged(self, from_: int, charsRemoved: int, charsAdded: int) -> None: ...
  78. updateBlock: typing.ClassVar[QtCore.pyqtSignal]
  79. pageCountChanged: typing.ClassVar[QtCore.pyqtSignal]
  80. documentSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  81. update: typing.ClassVar[QtCore.pyqtSignal]
  82. def handlerForObject(self, objectType: int) -> 'QTextObjectInterface|None': ...
  83. def unregisterHandler(self, objectType: int, component: QtCore.QObject|None = ...) -> None: ...
  84. def registerHandler(self, objectType: int, component: QtCore.QObject|None) -> None: ...
  85. def document(self) -> 'QTextDocument|None': ...
  86. def paintDevice(self) -> 'QPaintDevice|None': ...
  87. def setPaintDevice(self, device: 'QPaintDevice|None') -> None: ...
  88. def blockBoundingRect(self, block: 'QTextBlock') -> QtCore.QRectF: ...
  89. def frameBoundingRect(self, frame: 'QTextFrame|None') -> QtCore.QRectF: ...
  90. def documentSize(self) -> QtCore.QSizeF: ...
  91. def pageCount(self) -> int: ...
  92. def anchorAt(self, pos: QtCore.QPointF) -> str: ...
  93. def hitTest(self, point: QtCore.QPointF, accuracy: QtCore.Qt.HitTestAccuracy) -> int: ...
  94. def draw(self, painter: 'QPainter|None', context: 'QAbstractTextDocumentLayout.PaintContext') -> None: ...
  95. class QTextObjectInterface(PyQt6.sip.simplewrapper):
  96. @typing.overload
  97. def __init__(self) -> None: ...
  98. @typing.overload
  99. def __init__(self, a0: 'QTextObjectInterface') -> None: ...
  100. def drawObject(self, painter: 'QPainter|None', rect: QtCore.QRectF, doc: 'QTextDocument|None', posInDocument: int, format: 'QTextFormat') -> None: ...
  101. def intrinsicSize(self, doc: 'QTextDocument|None', posInDocument: int, format: 'QTextFormat') -> QtCore.QSizeF: ...
  102. class QAccessibilityHints(QtCore.QObject):
  103. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  104. def event(self, event: QtCore.QEvent|None) -> bool: ...
  105. def contrastPreferenceChanged(self, contrastPreference: QtCore.Qt.ContrastPreference) -> None: ...
  106. def contrastPreference(self) -> QtCore.Qt.ContrastPreference: ...
  107. class QAction(QtCore.QObject):
  108. class Priority(enum.Enum):
  109. LowPriority = ... # type: QAction.Priority
  110. NormalPriority = ... # type: QAction.Priority
  111. HighPriority = ... # type: QAction.Priority
  112. class MenuRole(enum.Enum):
  113. NoRole = ... # type: QAction.MenuRole
  114. TextHeuristicRole = ... # type: QAction.MenuRole
  115. ApplicationSpecificRole = ... # type: QAction.MenuRole
  116. AboutQtRole = ... # type: QAction.MenuRole
  117. AboutRole = ... # type: QAction.MenuRole
  118. PreferencesRole = ... # type: QAction.MenuRole
  119. QuitRole = ... # type: QAction.MenuRole
  120. class ActionEvent(enum.Enum):
  121. Trigger = ... # type: QAction.ActionEvent
  122. Hover = ... # type: QAction.ActionEvent
  123. @typing.overload
  124. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  125. @typing.overload
  126. def __init__(self, text: str|None, parent: QtCore.QObject|None = ...) -> None: ...
  127. @typing.overload
  128. def __init__(self, icon: 'QIcon', text: str|None, parent: QtCore.QObject|None = ...) -> None: ...
  129. visibleChanged: typing.ClassVar[QtCore.pyqtSignal]
  130. checkableChanged: typing.ClassVar[QtCore.pyqtSignal]
  131. enabledChanged: typing.ClassVar[QtCore.pyqtSignal]
  132. def resetEnabled(self) -> None: ...
  133. def associatedObjects(self) -> list[QtCore.QObject]: ...
  134. def isShortcutVisibleInContextMenu(self) -> bool: ...
  135. def setShortcutVisibleInContextMenu(self, show: bool) -> None: ...
  136. def priority(self) -> 'QAction.Priority': ...
  137. def setPriority(self, priority: 'QAction.Priority') -> None: ...
  138. def isIconVisibleInMenu(self) -> bool: ...
  139. def setIconVisibleInMenu(self, visible: bool) -> None: ...
  140. def setMenu(self, menu: QMenu|None) -> None: ...
  141. def menu(self) -> QMenu|None: ...
  142. def menuRole(self) -> 'QAction.MenuRole': ...
  143. def setMenuRole(self, menuRole: 'QAction.MenuRole') -> None: ...
  144. def autoRepeat(self) -> bool: ...
  145. def setAutoRepeat(self, a0: bool) -> None: ...
  146. def shortcuts(self) -> list['QKeySequence']: ...
  147. @typing.overload
  148. def setShortcuts(self, shortcuts: collections.abc.Iterable['QKeySequence'|'QKeySequence.StandardKey'|str|None|int]) -> None: ...
  149. @typing.overload
  150. def setShortcuts(self, a0: 'QKeySequence.StandardKey') -> None: ...
  151. toggled: typing.ClassVar[QtCore.pyqtSignal]
  152. hovered: typing.ClassVar[QtCore.pyqtSignal]
  153. triggered: typing.ClassVar[QtCore.pyqtSignal]
  154. changed: typing.ClassVar[QtCore.pyqtSignal]
  155. def setVisible(self, a0: bool) -> None: ...
  156. def setDisabled(self, b: bool) -> None: ...
  157. def setEnabled(self, a0: bool) -> None: ...
  158. def toggle(self) -> None: ...
  159. def setChecked(self, a0: bool) -> None: ...
  160. def hover(self) -> None: ...
  161. def trigger(self) -> None: ...
  162. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  163. def showStatusText(self, object: QtCore.QObject|None = ...) -> bool: ...
  164. def activate(self, event: 'QAction.ActionEvent') -> None: ...
  165. def isVisible(self) -> bool: ...
  166. def isEnabled(self) -> bool: ...
  167. def isChecked(self) -> bool: ...
  168. def setData(self, var: typing.Any) -> None: ...
  169. def data(self) -> typing.Any: ...
  170. def isCheckable(self) -> bool: ...
  171. def setCheckable(self, a0: bool) -> None: ...
  172. def font(self) -> 'QFont': ...
  173. def setFont(self, font: 'QFont') -> None: ...
  174. def shortcutContext(self) -> QtCore.Qt.ShortcutContext: ...
  175. def setShortcutContext(self, context: QtCore.Qt.ShortcutContext) -> None: ...
  176. def shortcut(self) -> 'QKeySequence': ...
  177. def setShortcut(self, shortcut: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> None: ...
  178. def isSeparator(self) -> bool: ...
  179. def setSeparator(self, b: bool) -> None: ...
  180. def whatsThis(self) -> str: ...
  181. def setWhatsThis(self, what: str|None) -> None: ...
  182. def statusTip(self) -> str: ...
  183. def setStatusTip(self, statusTip: str|None) -> None: ...
  184. def toolTip(self) -> str: ...
  185. def setToolTip(self, tip: str|None) -> None: ...
  186. def iconText(self) -> str: ...
  187. def setIconText(self, text: str|None) -> None: ...
  188. def text(self) -> str: ...
  189. def setText(self, text: str|None) -> None: ...
  190. def icon(self) -> 'QIcon': ...
  191. def setIcon(self, icon: 'QIcon') -> None: ...
  192. def actionGroup(self) -> 'QActionGroup|None': ...
  193. def setActionGroup(self, group: 'QActionGroup|None') -> None: ...
  194. class QActionGroup(QtCore.QObject):
  195. class ExclusionPolicy(enum.Enum):
  196. None_ = ... # type: QActionGroup.ExclusionPolicy
  197. Exclusive = ... # type: QActionGroup.ExclusionPolicy
  198. ExclusiveOptional = ... # type: QActionGroup.ExclusionPolicy
  199. def __init__(self, parent: QtCore.QObject|None) -> None: ...
  200. hovered: typing.ClassVar[QtCore.pyqtSignal]
  201. triggered: typing.ClassVar[QtCore.pyqtSignal]
  202. def setExclusionPolicy(self, policy: 'QActionGroup.ExclusionPolicy') -> None: ...
  203. def setExclusive(self, a0: bool) -> None: ...
  204. def setVisible(self, a0: bool) -> None: ...
  205. def setDisabled(self, b: bool) -> None: ...
  206. def setEnabled(self, a0: bool) -> None: ...
  207. def exclusionPolicy(self) -> 'QActionGroup.ExclusionPolicy': ...
  208. def isVisible(self) -> bool: ...
  209. def isEnabled(self) -> bool: ...
  210. def isExclusive(self) -> bool: ...
  211. def checkedAction(self) -> QAction|None: ...
  212. def actions(self) -> list[QAction]: ...
  213. def removeAction(self, a: QAction|None) -> None: ...
  214. @typing.overload
  215. def addAction(self, a: QAction|None) -> QAction|None: ...
  216. @typing.overload
  217. def addAction(self, text: str|None) -> QAction|None: ...
  218. @typing.overload
  219. def addAction(self, icon: 'QIcon', text: str|None) -> QAction|None: ...
  220. class QBackingStore(PyQt6.sip.simplewrapper):
  221. def __init__(self, window: 'QWindow|None') -> None: ...
  222. def hasStaticContents(self) -> bool: ...
  223. def staticContents(self) -> 'QRegion': ...
  224. def setStaticContents(self, region: 'QRegion') -> None: ...
  225. def endPaint(self) -> None: ...
  226. def beginPaint(self, a0: 'QRegion') -> None: ...
  227. def scroll(self, area: 'QRegion', dx: int, dy: int) -> bool: ...
  228. def size(self) -> QtCore.QSize: ...
  229. def resize(self, size: QtCore.QSize) -> None: ...
  230. def flush(self, region: 'QRegion', window: 'QWindow|None' = ..., offset: QtCore.QPoint = ...) -> None: ...
  231. def paintDevice(self) -> 'QPaintDevice|None': ...
  232. def window(self) -> 'QWindow|None': ...
  233. class QPaintDevice(PyQt6.sip.simplewrapper):
  234. class PaintDeviceMetric(enum.Enum):
  235. PdmWidth = ... # type: QPaintDevice.PaintDeviceMetric
  236. PdmHeight = ... # type: QPaintDevice.PaintDeviceMetric
  237. PdmWidthMM = ... # type: QPaintDevice.PaintDeviceMetric
  238. PdmHeightMM = ... # type: QPaintDevice.PaintDeviceMetric
  239. PdmNumColors = ... # type: QPaintDevice.PaintDeviceMetric
  240. PdmDepth = ... # type: QPaintDevice.PaintDeviceMetric
  241. PdmDpiX = ... # type: QPaintDevice.PaintDeviceMetric
  242. PdmDpiY = ... # type: QPaintDevice.PaintDeviceMetric
  243. PdmPhysicalDpiX = ... # type: QPaintDevice.PaintDeviceMetric
  244. PdmPhysicalDpiY = ... # type: QPaintDevice.PaintDeviceMetric
  245. PdmDevicePixelRatio = ... # type: QPaintDevice.PaintDeviceMetric
  246. PdmDevicePixelRatioScaled = ... # type: QPaintDevice.PaintDeviceMetric
  247. PdmDevicePixelRatioF_EncodedA = ... # type: QPaintDevice.PaintDeviceMetric
  248. PdmDevicePixelRatioF_EncodedB = ... # type: QPaintDevice.PaintDeviceMetric
  249. def __init__(self) -> None: ...
  250. @staticmethod
  251. def devicePixelRatioFScale() -> float: ...
  252. def devicePixelRatioF(self) -> float: ...
  253. def metric(self, metric: 'QPaintDevice.PaintDeviceMetric') -> int: ...
  254. def devicePixelRatio(self) -> float: ...
  255. def colorCount(self) -> int: ...
  256. def paintingActive(self) -> bool: ...
  257. def depth(self) -> int: ...
  258. def physicalDpiY(self) -> int: ...
  259. def physicalDpiX(self) -> int: ...
  260. def logicalDpiY(self) -> int: ...
  261. def logicalDpiX(self) -> int: ...
  262. def heightMM(self) -> int: ...
  263. def widthMM(self) -> int: ...
  264. def height(self) -> int: ...
  265. def width(self) -> int: ...
  266. def paintEngine(self) -> 'QPaintEngine|None': ...
  267. class QPixmap(QPaintDevice):
  268. @typing.overload
  269. def __init__(self) -> None: ...
  270. @typing.overload
  271. def __init__(self, w: int, h: int) -> None: ...
  272. @typing.overload
  273. def __init__(self, a0: QtCore.QSize) -> None: ...
  274. @typing.overload
  275. def __init__(self, fileName: str|None, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  276. @typing.overload
  277. def __init__(self, xpm: list[str]) -> None: ...
  278. @typing.overload
  279. def __init__(self, a0: 'QPixmap') -> None: ...
  280. @typing.overload
  281. def __init__(self, variant: typing.Any) -> None: ...
  282. def deviceIndependentSize(self) -> QtCore.QSizeF: ...
  283. def setDevicePixelRatio(self, scaleFactor: float) -> None: ...
  284. def devicePixelRatio(self) -> float: ...
  285. def swap(self, other: 'QPixmap') -> None: ...
  286. @typing.overload
  287. def scroll(self, dx: int, dy: int, rect: QtCore.QRect) -> 'QRegion|None': ...
  288. @typing.overload
  289. def scroll(self, dx: int, dy: int, x: int, y: int, width: int, height: int) -> 'QRegion|None': ...
  290. def cacheKey(self) -> int: ...
  291. @staticmethod
  292. def trueMatrix(m: 'QTransform', w: int, h: int) -> 'QTransform': ...
  293. def transformed(self, transform: 'QTransform', mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
  294. def metric(self, a0: QPaintDevice.PaintDeviceMetric) -> int: ...
  295. def paintEngine(self) -> 'QPaintEngine|None': ...
  296. def isQBitmap(self) -> bool: ...
  297. def detach(self) -> None: ...
  298. @typing.overload
  299. def copy(self, rect: QtCore.QRect = ...) -> 'QPixmap': ...
  300. @typing.overload
  301. def copy(self, ax: int, ay: int, awidth: int, aheight: int) -> 'QPixmap': ...
  302. @typing.overload
  303. def save(self, fileName: str|None, format: str = ..., quality: int = ...) -> bool: ...
  304. @typing.overload
  305. def save(self, device: QtCore.QIODevice|None, format: str = ..., quality: int = ...) -> bool: ...
  306. @typing.overload
  307. def loadFromData(self, buf: PyQt6.sip.array[bytes], format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ...
  308. @typing.overload
  309. def loadFromData(self, buf: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ...
  310. def load(self, fileName: str|None, format: str = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ...
  311. def convertFromImage(self, img: 'QImage', flags: QtCore.Qt.ImageConversionFlag = ...) -> bool: ...
  312. @staticmethod
  313. def fromImageReader(imageReader: 'QImageReader|None', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QPixmap': ...
  314. @staticmethod
  315. def fromImage(image: 'QImage', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QPixmap': ...
  316. def toImage(self) -> 'QImage': ...
  317. def scaledToHeight(self, height: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
  318. def scaledToWidth(self, width: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
  319. @typing.overload
  320. def scaled(self, width: int, height: int, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
  321. @typing.overload
  322. def scaled(self, size: QtCore.QSize, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QPixmap': ...
  323. def createMaskFromColor(self, maskColor: 'QColor'|QtCore.Qt.GlobalColor|int, mode: QtCore.Qt.MaskMode = ...) -> 'QBitmap': ...
  324. def createHeuristicMask(self, clipTight: bool = ...) -> 'QBitmap': ...
  325. def hasAlphaChannel(self) -> bool: ...
  326. def hasAlpha(self) -> bool: ...
  327. def setMask(self, a0: 'QBitmap') -> None: ...
  328. def mask(self) -> 'QBitmap': ...
  329. def fill(self, color: 'QColor'|QtCore.Qt.GlobalColor|int = ...) -> None: ...
  330. @staticmethod
  331. def defaultDepth() -> int: ...
  332. def depth(self) -> int: ...
  333. def rect(self) -> QtCore.QRect: ...
  334. def size(self) -> QtCore.QSize: ...
  335. def height(self) -> int: ...
  336. def width(self) -> int: ...
  337. def devType(self) -> int: ...
  338. def isNull(self) -> bool: ...
  339. class QBitmap(QPixmap):
  340. @typing.overload
  341. def __init__(self) -> None: ...
  342. @typing.overload
  343. def __init__(self, w: int, h: int) -> None: ...
  344. @typing.overload
  345. def __init__(self, a0: QtCore.QSize) -> None: ...
  346. @typing.overload
  347. def __init__(self, fileName: str|None, format: str = ...) -> None: ...
  348. @typing.overload
  349. def __init__(self, variant: typing.Any) -> None: ...
  350. @typing.overload
  351. def __init__(self, a0: 'QBitmap') -> None: ...
  352. def swap(self, other: 'QBitmap') -> None: ...
  353. def transformed(self, matrix: 'QTransform') -> 'QBitmap': ...
  354. @staticmethod
  355. def fromData(size: QtCore.QSize, bits: bytes, format: 'QImage.Format' = ...) -> 'QBitmap': ...
  356. @staticmethod
  357. def fromPixmap(pixmap: QPixmap) -> 'QBitmap': ...
  358. @staticmethod
  359. def fromImage(image: 'QImage', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QBitmap': ...
  360. def clear(self) -> None: ...
  361. class QColor(PyQt6.sip.simplewrapper):
  362. class NameFormat(enum.Enum):
  363. HexRgb = ... # type: QColor.NameFormat
  364. HexArgb = ... # type: QColor.NameFormat
  365. class Spec(enum.Enum):
  366. Invalid = ... # type: QColor.Spec
  367. Rgb = ... # type: QColor.Spec
  368. Hsv = ... # type: QColor.Spec
  369. Cmyk = ... # type: QColor.Spec
  370. Hsl = ... # type: QColor.Spec
  371. ExtendedRgb = ... # type: QColor.Spec
  372. @typing.overload
  373. def __init__(self, color: QtCore.Qt.GlobalColor) -> None: ...
  374. @typing.overload
  375. def __init__(self, rgb: int) -> None: ...
  376. @typing.overload
  377. def __init__(self, rgba64: 'QRgba64') -> None: ...
  378. @typing.overload
  379. def __init__(self, variant: typing.Any) -> None: ...
  380. @typing.overload
  381. def __init__(self) -> None: ...
  382. @typing.overload
  383. def __init__(self, r: int, g: int, b: int, alpha: int = ...) -> None: ...
  384. @typing.overload
  385. def __init__(self, name: str) -> None: ...
  386. @typing.overload
  387. def __init__(self, a0: 'QColor') -> None: ...
  388. @staticmethod
  389. def isValidColorName(a0: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> bool: ...
  390. @staticmethod
  391. def fromString(name: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 'QColor': ...
  392. def toExtendedRgb(self) -> 'QColor': ...
  393. @typing.overload
  394. @staticmethod
  395. def fromRgba64(r: int, g: int, b: int, alpha: int = ...) -> 'QColor': ...
  396. @typing.overload
  397. @staticmethod
  398. def fromRgba64(rgba: 'QRgba64') -> 'QColor': ...
  399. def setRgba64(self, rgba: 'QRgba64') -> None: ...
  400. def rgba64(self) -> 'QRgba64': ...
  401. @staticmethod
  402. def isValidColor(name: str|None) -> bool: ...
  403. @staticmethod
  404. def fromHslF(h: float, s: float, l: float, alpha: float = ...) -> 'QColor': ...
  405. @staticmethod
  406. def fromHsl(h: int, s: int, l: int, alpha: int = ...) -> 'QColor': ...
  407. def toHsl(self) -> 'QColor': ...
  408. def setHslF(self, h: float, s: float, l: float, alpha: float = ...) -> None: ...
  409. def getHslF(self) -> typing.Tuple[float, float, float, float]: ...
  410. def setHsl(self, h: int, s: int, l: int, alpha: int = ...) -> None: ...
  411. def getHsl(self) -> typing.Tuple[int, int, int, int]: ...
  412. def lightnessF(self) -> float: ...
  413. def hslSaturationF(self) -> float: ...
  414. def hslHueF(self) -> float: ...
  415. def lightness(self) -> int: ...
  416. def hslSaturation(self) -> int: ...
  417. def hslHue(self) -> int: ...
  418. def hsvSaturationF(self) -> float: ...
  419. def hsvHueF(self) -> float: ...
  420. def hsvSaturation(self) -> int: ...
  421. def hsvHue(self) -> int: ...
  422. def darker(self, factor: int = ...) -> 'QColor': ...
  423. def lighter(self, factor: int = ...) -> 'QColor': ...
  424. def isValid(self) -> bool: ...
  425. def __ne__(self, other: object): ...
  426. def __eq__(self, other: object): ...
  427. @staticmethod
  428. def fromCmykF(c: float, m: float, y: float, k: float, alpha: float = ...) -> 'QColor': ...
  429. @staticmethod
  430. def fromCmyk(c: int, m: int, y: int, k: int, alpha: int = ...) -> 'QColor': ...
  431. @staticmethod
  432. def fromHsvF(h: float, s: float, v: float, alpha: float = ...) -> 'QColor': ...
  433. @staticmethod
  434. def fromHsv(h: int, s: int, v: int, alpha: int = ...) -> 'QColor': ...
  435. @staticmethod
  436. def fromRgbF(r: float, g: float, b: float, alpha: float = ...) -> 'QColor': ...
  437. @staticmethod
  438. def fromRgba(rgba: int) -> 'QColor': ...
  439. @typing.overload
  440. @staticmethod
  441. def fromRgb(rgb: int) -> 'QColor': ...
  442. @typing.overload
  443. @staticmethod
  444. def fromRgb(r: int, g: int, b: int, alpha: int = ...) -> 'QColor': ...
  445. def convertTo(self, colorSpec: 'QColor.Spec') -> 'QColor': ...
  446. def toCmyk(self) -> 'QColor': ...
  447. def toHsv(self) -> 'QColor': ...
  448. def toRgb(self) -> 'QColor': ...
  449. def setCmykF(self, c: float, m: float, y: float, k: float, alpha: float = ...) -> None: ...
  450. def getCmykF(self) -> typing.Tuple[float, float, float, float, float]: ...
  451. def setCmyk(self, c: int, m: int, y: int, k: int, alpha: int = ...) -> None: ...
  452. def getCmyk(self) -> typing.Tuple[int, int, int, int, int]: ...
  453. def blackF(self) -> float: ...
  454. def yellowF(self) -> float: ...
  455. def magentaF(self) -> float: ...
  456. def cyanF(self) -> float: ...
  457. def black(self) -> int: ...
  458. def yellow(self) -> int: ...
  459. def magenta(self) -> int: ...
  460. def cyan(self) -> int: ...
  461. def setHsvF(self, h: float, s: float, v: float, alpha: float = ...) -> None: ...
  462. def getHsvF(self) -> typing.Tuple[float, float, float, float]: ...
  463. def setHsv(self, h: int, s: int, v: int, alpha: int = ...) -> None: ...
  464. def getHsv(self) -> typing.Tuple[int, int, int, int]: ...
  465. def valueF(self) -> float: ...
  466. def saturationF(self) -> float: ...
  467. def hueF(self) -> float: ...
  468. def value(self) -> int: ...
  469. def saturation(self) -> int: ...
  470. def hue(self) -> int: ...
  471. def rgb(self) -> int: ...
  472. def setRgba(self, rgba: int) -> None: ...
  473. def rgba(self) -> int: ...
  474. def setRgbF(self, r: float, g: float, b: float, alpha: float = ...) -> None: ...
  475. def getRgbF(self) -> typing.Tuple[float, float, float, float]: ...
  476. @typing.overload
  477. def setRgb(self, r: int, g: int, b: int, alpha: int = ...) -> None: ...
  478. @typing.overload
  479. def setRgb(self, rgb: int) -> None: ...
  480. def getRgb(self) -> typing.Tuple[int, int, int, int]: ...
  481. def setBlueF(self, blue: float) -> None: ...
  482. def setGreenF(self, green: float) -> None: ...
  483. def setRedF(self, red: float) -> None: ...
  484. def blueF(self) -> float: ...
  485. def greenF(self) -> float: ...
  486. def redF(self) -> float: ...
  487. def setBlue(self, blue: int) -> None: ...
  488. def setGreen(self, green: int) -> None: ...
  489. def setRed(self, red: int) -> None: ...
  490. def blue(self) -> int: ...
  491. def green(self) -> int: ...
  492. def red(self) -> int: ...
  493. def setAlphaF(self, alpha: float) -> None: ...
  494. def alphaF(self) -> float: ...
  495. def setAlpha(self, alpha: int) -> None: ...
  496. def alpha(self) -> int: ...
  497. def spec(self) -> 'QColor.Spec': ...
  498. @staticmethod
  499. def colorNames() -> list[str]: ...
  500. def setNamedColor(self, name: str) -> None: ...
  501. def name(self, format: 'QColor.NameFormat' = ...) -> str: ...
  502. class QColorConstants(PyQt6.sip.simplewrapper):
  503. class Svg(PyQt6.sip.simplewrapper):
  504. aliceblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  505. antiquewhite = ... # type: QColor|QtCore.Qt.GlobalColor|int
  506. aqua = ... # type: QColor|QtCore.Qt.GlobalColor|int
  507. aquamarine = ... # type: QColor|QtCore.Qt.GlobalColor|int
  508. azure = ... # type: QColor|QtCore.Qt.GlobalColor|int
  509. beige = ... # type: QColor|QtCore.Qt.GlobalColor|int
  510. bisque = ... # type: QColor|QtCore.Qt.GlobalColor|int
  511. black = ... # type: QColor|QtCore.Qt.GlobalColor|int
  512. blanchedalmond = ... # type: QColor|QtCore.Qt.GlobalColor|int
  513. blue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  514. blueviolet = ... # type: QColor|QtCore.Qt.GlobalColor|int
  515. brown = ... # type: QColor|QtCore.Qt.GlobalColor|int
  516. burlywood = ... # type: QColor|QtCore.Qt.GlobalColor|int
  517. cadetblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  518. chartreuse = ... # type: QColor|QtCore.Qt.GlobalColor|int
  519. chocolate = ... # type: QColor|QtCore.Qt.GlobalColor|int
  520. coral = ... # type: QColor|QtCore.Qt.GlobalColor|int
  521. cornflowerblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  522. cornsilk = ... # type: QColor|QtCore.Qt.GlobalColor|int
  523. crimson = ... # type: QColor|QtCore.Qt.GlobalColor|int
  524. cyan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  525. darkblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  526. darkcyan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  527. darkgoldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int
  528. darkgray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  529. darkgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  530. darkgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  531. darkkhaki = ... # type: QColor|QtCore.Qt.GlobalColor|int
  532. darkmagenta = ... # type: QColor|QtCore.Qt.GlobalColor|int
  533. darkolivegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  534. darkorange = ... # type: QColor|QtCore.Qt.GlobalColor|int
  535. darkorchid = ... # type: QColor|QtCore.Qt.GlobalColor|int
  536. darkred = ... # type: QColor|QtCore.Qt.GlobalColor|int
  537. darksalmon = ... # type: QColor|QtCore.Qt.GlobalColor|int
  538. darkseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  539. darkslateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  540. darkslategray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  541. darkslategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  542. darkturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int
  543. darkviolet = ... # type: QColor|QtCore.Qt.GlobalColor|int
  544. deeppink = ... # type: QColor|QtCore.Qt.GlobalColor|int
  545. deepskyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  546. dimgray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  547. dimgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  548. dodgerblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  549. firebrick = ... # type: QColor|QtCore.Qt.GlobalColor|int
  550. floralwhite = ... # type: QColor|QtCore.Qt.GlobalColor|int
  551. forestgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  552. fuchsia = ... # type: QColor|QtCore.Qt.GlobalColor|int
  553. gainsboro = ... # type: QColor|QtCore.Qt.GlobalColor|int
  554. ghostwhite = ... # type: QColor|QtCore.Qt.GlobalColor|int
  555. gold = ... # type: QColor|QtCore.Qt.GlobalColor|int
  556. goldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int
  557. gray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  558. green = ... # type: QColor|QtCore.Qt.GlobalColor|int
  559. greenyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  560. grey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  561. honeydew = ... # type: QColor|QtCore.Qt.GlobalColor|int
  562. hotpink = ... # type: QColor|QtCore.Qt.GlobalColor|int
  563. indianred = ... # type: QColor|QtCore.Qt.GlobalColor|int
  564. indigo = ... # type: QColor|QtCore.Qt.GlobalColor|int
  565. ivory = ... # type: QColor|QtCore.Qt.GlobalColor|int
  566. khaki = ... # type: QColor|QtCore.Qt.GlobalColor|int
  567. lavender = ... # type: QColor|QtCore.Qt.GlobalColor|int
  568. lavenderblush = ... # type: QColor|QtCore.Qt.GlobalColor|int
  569. lawngreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  570. lemonchiffon = ... # type: QColor|QtCore.Qt.GlobalColor|int
  571. lightblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  572. lightcoral = ... # type: QColor|QtCore.Qt.GlobalColor|int
  573. lightcyan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  574. lightgoldenrodyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  575. lightgray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  576. lightgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  577. lightgrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  578. lightpink = ... # type: QColor|QtCore.Qt.GlobalColor|int
  579. lightsalmon = ... # type: QColor|QtCore.Qt.GlobalColor|int
  580. lightseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  581. lightskyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  582. lightslategray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  583. lightslategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  584. lightsteelblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  585. lightyellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  586. lime = ... # type: QColor|QtCore.Qt.GlobalColor|int
  587. limegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  588. linen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  589. magenta = ... # type: QColor|QtCore.Qt.GlobalColor|int
  590. maroon = ... # type: QColor|QtCore.Qt.GlobalColor|int
  591. mediumaquamarine = ... # type: QColor|QtCore.Qt.GlobalColor|int
  592. mediumblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  593. mediumorchid = ... # type: QColor|QtCore.Qt.GlobalColor|int
  594. mediumpurple = ... # type: QColor|QtCore.Qt.GlobalColor|int
  595. mediumseagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  596. mediumslateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  597. mediumspringgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  598. mediumturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int
  599. mediumvioletred = ... # type: QColor|QtCore.Qt.GlobalColor|int
  600. midnightblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  601. mintcream = ... # type: QColor|QtCore.Qt.GlobalColor|int
  602. mistyrose = ... # type: QColor|QtCore.Qt.GlobalColor|int
  603. moccasin = ... # type: QColor|QtCore.Qt.GlobalColor|int
  604. navajowhite = ... # type: QColor|QtCore.Qt.GlobalColor|int
  605. navy = ... # type: QColor|QtCore.Qt.GlobalColor|int
  606. oldlace = ... # type: QColor|QtCore.Qt.GlobalColor|int
  607. olive = ... # type: QColor|QtCore.Qt.GlobalColor|int
  608. olivedrab = ... # type: QColor|QtCore.Qt.GlobalColor|int
  609. orange = ... # type: QColor|QtCore.Qt.GlobalColor|int
  610. orangered = ... # type: QColor|QtCore.Qt.GlobalColor|int
  611. orchid = ... # type: QColor|QtCore.Qt.GlobalColor|int
  612. palegoldenrod = ... # type: QColor|QtCore.Qt.GlobalColor|int
  613. palegreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  614. paleturquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int
  615. palevioletred = ... # type: QColor|QtCore.Qt.GlobalColor|int
  616. papayawhip = ... # type: QColor|QtCore.Qt.GlobalColor|int
  617. peachpuff = ... # type: QColor|QtCore.Qt.GlobalColor|int
  618. peru = ... # type: QColor|QtCore.Qt.GlobalColor|int
  619. pink = ... # type: QColor|QtCore.Qt.GlobalColor|int
  620. plum = ... # type: QColor|QtCore.Qt.GlobalColor|int
  621. powderblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  622. purple = ... # type: QColor|QtCore.Qt.GlobalColor|int
  623. red = ... # type: QColor|QtCore.Qt.GlobalColor|int
  624. rosybrown = ... # type: QColor|QtCore.Qt.GlobalColor|int
  625. royalblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  626. saddlebrown = ... # type: QColor|QtCore.Qt.GlobalColor|int
  627. salmon = ... # type: QColor|QtCore.Qt.GlobalColor|int
  628. sandybrown = ... # type: QColor|QtCore.Qt.GlobalColor|int
  629. seagreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  630. seashell = ... # type: QColor|QtCore.Qt.GlobalColor|int
  631. sienna = ... # type: QColor|QtCore.Qt.GlobalColor|int
  632. silver = ... # type: QColor|QtCore.Qt.GlobalColor|int
  633. skyblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  634. slateblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  635. slategray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  636. slategrey = ... # type: QColor|QtCore.Qt.GlobalColor|int
  637. snow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  638. springgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  639. steelblue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  640. tan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  641. teal = ... # type: QColor|QtCore.Qt.GlobalColor|int
  642. thistle = ... # type: QColor|QtCore.Qt.GlobalColor|int
  643. tomato = ... # type: QColor|QtCore.Qt.GlobalColor|int
  644. turquoise = ... # type: QColor|QtCore.Qt.GlobalColor|int
  645. violet = ... # type: QColor|QtCore.Qt.GlobalColor|int
  646. wheat = ... # type: QColor|QtCore.Qt.GlobalColor|int
  647. white = ... # type: QColor|QtCore.Qt.GlobalColor|int
  648. whitesmoke = ... # type: QColor|QtCore.Qt.GlobalColor|int
  649. yellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  650. yellowgreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  651. Black = ... # type: QColor|QtCore.Qt.GlobalColor|int
  652. Blue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  653. Color0 = ... # type: QColor|QtCore.Qt.GlobalColor|int
  654. Color1 = ... # type: QColor|QtCore.Qt.GlobalColor|int
  655. Cyan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  656. DarkBlue = ... # type: QColor|QtCore.Qt.GlobalColor|int
  657. DarkCyan = ... # type: QColor|QtCore.Qt.GlobalColor|int
  658. DarkGray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  659. DarkGreen = ... # type: QColor|QtCore.Qt.GlobalColor|int
  660. DarkMagenta = ... # type: QColor|QtCore.Qt.GlobalColor|int
  661. DarkRed = ... # type: QColor|QtCore.Qt.GlobalColor|int
  662. DarkYellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  663. Gray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  664. Green = ... # type: QColor|QtCore.Qt.GlobalColor|int
  665. LightGray = ... # type: QColor|QtCore.Qt.GlobalColor|int
  666. Magenta = ... # type: QColor|QtCore.Qt.GlobalColor|int
  667. Red = ... # type: QColor|QtCore.Qt.GlobalColor|int
  668. Transparent = ... # type: QColor|QtCore.Qt.GlobalColor|int
  669. White = ... # type: QColor|QtCore.Qt.GlobalColor|int
  670. Yellow = ... # type: QColor|QtCore.Qt.GlobalColor|int
  671. class QBrush(PyQt6.sip.simplewrapper):
  672. @typing.overload
  673. def __init__(self) -> None: ...
  674. @typing.overload
  675. def __init__(self, bs: QtCore.Qt.BrushStyle) -> None: ...
  676. @typing.overload
  677. def __init__(self, color: QColor|QtCore.Qt.GlobalColor|int, style: QtCore.Qt.BrushStyle = ...) -> None: ...
  678. @typing.overload
  679. def __init__(self, color: QColor|QtCore.Qt.GlobalColor|int, pixmap: QPixmap) -> None: ...
  680. @typing.overload
  681. def __init__(self, pixmap: QPixmap) -> None: ...
  682. @typing.overload
  683. def __init__(self, image: 'QImage') -> None: ...
  684. @typing.overload
  685. def __init__(self, brush: 'QBrush'|QColor|QtCore.Qt.GlobalColor|int|'QGradient') -> None: ...
  686. @typing.overload
  687. def __init__(self, variant: typing.Any) -> None: ...
  688. def swap(self, other: 'QBrush') -> None: ...
  689. def transform(self) -> 'QTransform': ...
  690. def setTransform(self, a0: 'QTransform') -> None: ...
  691. def textureImage(self) -> 'QImage': ...
  692. def setTextureImage(self, image: 'QImage') -> None: ...
  693. def color(self) -> QColor: ...
  694. def style(self) -> QtCore.Qt.BrushStyle: ...
  695. def __ne__(self, other: object): ...
  696. def __eq__(self, other: object): ...
  697. def isOpaque(self) -> bool: ...
  698. def gradient(self) -> 'QGradient|None': ...
  699. @typing.overload
  700. def setColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  701. @typing.overload
  702. def setColor(self, acolor: QtCore.Qt.GlobalColor) -> None: ...
  703. def setTexture(self, pixmap: QPixmap) -> None: ...
  704. def texture(self) -> QPixmap: ...
  705. def setStyle(self, a0: QtCore.Qt.BrushStyle) -> None: ...
  706. class QGradient(PyQt6.sip.simplewrapper):
  707. class Preset(enum.Enum):
  708. WarmFlame = ... # type: QGradient.Preset
  709. NightFade = ... # type: QGradient.Preset
  710. SpringWarmth = ... # type: QGradient.Preset
  711. JuicyPeach = ... # type: QGradient.Preset
  712. YoungPassion = ... # type: QGradient.Preset
  713. LadyLips = ... # type: QGradient.Preset
  714. SunnyMorning = ... # type: QGradient.Preset
  715. RainyAshville = ... # type: QGradient.Preset
  716. FrozenDreams = ... # type: QGradient.Preset
  717. WinterNeva = ... # type: QGradient.Preset
  718. DustyGrass = ... # type: QGradient.Preset
  719. TemptingAzure = ... # type: QGradient.Preset
  720. HeavyRain = ... # type: QGradient.Preset
  721. AmyCrisp = ... # type: QGradient.Preset
  722. MeanFruit = ... # type: QGradient.Preset
  723. DeepBlue = ... # type: QGradient.Preset
  724. RipeMalinka = ... # type: QGradient.Preset
  725. CloudyKnoxville = ... # type: QGradient.Preset
  726. MalibuBeach = ... # type: QGradient.Preset
  727. NewLife = ... # type: QGradient.Preset
  728. TrueSunset = ... # type: QGradient.Preset
  729. MorpheusDen = ... # type: QGradient.Preset
  730. RareWind = ... # type: QGradient.Preset
  731. NearMoon = ... # type: QGradient.Preset
  732. WildApple = ... # type: QGradient.Preset
  733. SaintPetersburg = ... # type: QGradient.Preset
  734. PlumPlate = ... # type: QGradient.Preset
  735. EverlastingSky = ... # type: QGradient.Preset
  736. HappyFisher = ... # type: QGradient.Preset
  737. Blessing = ... # type: QGradient.Preset
  738. SharpeyeEagle = ... # type: QGradient.Preset
  739. LadogaBottom = ... # type: QGradient.Preset
  740. LemonGate = ... # type: QGradient.Preset
  741. ItmeoBranding = ... # type: QGradient.Preset
  742. ZeusMiracle = ... # type: QGradient.Preset
  743. OldHat = ... # type: QGradient.Preset
  744. StarWine = ... # type: QGradient.Preset
  745. HappyAcid = ... # type: QGradient.Preset
  746. AwesomePine = ... # type: QGradient.Preset
  747. NewYork = ... # type: QGradient.Preset
  748. ShyRainbow = ... # type: QGradient.Preset
  749. MixedHopes = ... # type: QGradient.Preset
  750. FlyHigh = ... # type: QGradient.Preset
  751. StrongBliss = ... # type: QGradient.Preset
  752. FreshMilk = ... # type: QGradient.Preset
  753. SnowAgain = ... # type: QGradient.Preset
  754. FebruaryInk = ... # type: QGradient.Preset
  755. KindSteel = ... # type: QGradient.Preset
  756. SoftGrass = ... # type: QGradient.Preset
  757. GrownEarly = ... # type: QGradient.Preset
  758. SharpBlues = ... # type: QGradient.Preset
  759. ShadyWater = ... # type: QGradient.Preset
  760. DirtyBeauty = ... # type: QGradient.Preset
  761. GreatWhale = ... # type: QGradient.Preset
  762. TeenNotebook = ... # type: QGradient.Preset
  763. PoliteRumors = ... # type: QGradient.Preset
  764. SweetPeriod = ... # type: QGradient.Preset
  765. WideMatrix = ... # type: QGradient.Preset
  766. SoftCherish = ... # type: QGradient.Preset
  767. RedSalvation = ... # type: QGradient.Preset
  768. BurningSpring = ... # type: QGradient.Preset
  769. NightParty = ... # type: QGradient.Preset
  770. SkyGlider = ... # type: QGradient.Preset
  771. HeavenPeach = ... # type: QGradient.Preset
  772. PurpleDivision = ... # type: QGradient.Preset
  773. AquaSplash = ... # type: QGradient.Preset
  774. SpikyNaga = ... # type: QGradient.Preset
  775. LoveKiss = ... # type: QGradient.Preset
  776. CleanMirror = ... # type: QGradient.Preset
  777. PremiumDark = ... # type: QGradient.Preset
  778. ColdEvening = ... # type: QGradient.Preset
  779. CochitiLake = ... # type: QGradient.Preset
  780. SummerGames = ... # type: QGradient.Preset
  781. PassionateBed = ... # type: QGradient.Preset
  782. MountainRock = ... # type: QGradient.Preset
  783. DesertHump = ... # type: QGradient.Preset
  784. JungleDay = ... # type: QGradient.Preset
  785. PhoenixStart = ... # type: QGradient.Preset
  786. OctoberSilence = ... # type: QGradient.Preset
  787. FarawayRiver = ... # type: QGradient.Preset
  788. AlchemistLab = ... # type: QGradient.Preset
  789. OverSun = ... # type: QGradient.Preset
  790. PremiumWhite = ... # type: QGradient.Preset
  791. MarsParty = ... # type: QGradient.Preset
  792. EternalConstance = ... # type: QGradient.Preset
  793. JapanBlush = ... # type: QGradient.Preset
  794. SmilingRain = ... # type: QGradient.Preset
  795. CloudyApple = ... # type: QGradient.Preset
  796. BigMango = ... # type: QGradient.Preset
  797. HealthyWater = ... # type: QGradient.Preset
  798. AmourAmour = ... # type: QGradient.Preset
  799. RiskyConcrete = ... # type: QGradient.Preset
  800. StrongStick = ... # type: QGradient.Preset
  801. ViciousStance = ... # type: QGradient.Preset
  802. PaloAlto = ... # type: QGradient.Preset
  803. HappyMemories = ... # type: QGradient.Preset
  804. MidnightBloom = ... # type: QGradient.Preset
  805. Crystalline = ... # type: QGradient.Preset
  806. PartyBliss = ... # type: QGradient.Preset
  807. ConfidentCloud = ... # type: QGradient.Preset
  808. LeCocktail = ... # type: QGradient.Preset
  809. RiverCity = ... # type: QGradient.Preset
  810. FrozenBerry = ... # type: QGradient.Preset
  811. ChildCare = ... # type: QGradient.Preset
  812. FlyingLemon = ... # type: QGradient.Preset
  813. NewRetrowave = ... # type: QGradient.Preset
  814. HiddenJaguar = ... # type: QGradient.Preset
  815. AboveTheSky = ... # type: QGradient.Preset
  816. Nega = ... # type: QGradient.Preset
  817. DenseWater = ... # type: QGradient.Preset
  818. Seashore = ... # type: QGradient.Preset
  819. MarbleWall = ... # type: QGradient.Preset
  820. CheerfulCaramel = ... # type: QGradient.Preset
  821. NightSky = ... # type: QGradient.Preset
  822. MagicLake = ... # type: QGradient.Preset
  823. YoungGrass = ... # type: QGradient.Preset
  824. ColorfulPeach = ... # type: QGradient.Preset
  825. GentleCare = ... # type: QGradient.Preset
  826. PlumBath = ... # type: QGradient.Preset
  827. HappyUnicorn = ... # type: QGradient.Preset
  828. AfricanField = ... # type: QGradient.Preset
  829. SolidStone = ... # type: QGradient.Preset
  830. OrangeJuice = ... # type: QGradient.Preset
  831. GlassWater = ... # type: QGradient.Preset
  832. NorthMiracle = ... # type: QGradient.Preset
  833. FruitBlend = ... # type: QGradient.Preset
  834. MillenniumPine = ... # type: QGradient.Preset
  835. HighFlight = ... # type: QGradient.Preset
  836. MoleHall = ... # type: QGradient.Preset
  837. SpaceShift = ... # type: QGradient.Preset
  838. ForestInei = ... # type: QGradient.Preset
  839. RoyalGarden = ... # type: QGradient.Preset
  840. RichMetal = ... # type: QGradient.Preset
  841. JuicyCake = ... # type: QGradient.Preset
  842. SmartIndigo = ... # type: QGradient.Preset
  843. SandStrike = ... # type: QGradient.Preset
  844. NorseBeauty = ... # type: QGradient.Preset
  845. AquaGuidance = ... # type: QGradient.Preset
  846. SunVeggie = ... # type: QGradient.Preset
  847. SeaLord = ... # type: QGradient.Preset
  848. BlackSea = ... # type: QGradient.Preset
  849. GrassShampoo = ... # type: QGradient.Preset
  850. LandingAircraft = ... # type: QGradient.Preset
  851. WitchDance = ... # type: QGradient.Preset
  852. SleeplessNight = ... # type: QGradient.Preset
  853. AngelCare = ... # type: QGradient.Preset
  854. CrystalRiver = ... # type: QGradient.Preset
  855. SoftLipstick = ... # type: QGradient.Preset
  856. SaltMountain = ... # type: QGradient.Preset
  857. PerfectWhite = ... # type: QGradient.Preset
  858. FreshOasis = ... # type: QGradient.Preset
  859. StrictNovember = ... # type: QGradient.Preset
  860. MorningSalad = ... # type: QGradient.Preset
  861. DeepRelief = ... # type: QGradient.Preset
  862. SeaStrike = ... # type: QGradient.Preset
  863. NightCall = ... # type: QGradient.Preset
  864. SupremeSky = ... # type: QGradient.Preset
  865. LightBlue = ... # type: QGradient.Preset
  866. MindCrawl = ... # type: QGradient.Preset
  867. LilyMeadow = ... # type: QGradient.Preset
  868. SugarLollipop = ... # type: QGradient.Preset
  869. SweetDessert = ... # type: QGradient.Preset
  870. MagicRay = ... # type: QGradient.Preset
  871. TeenParty = ... # type: QGradient.Preset
  872. FrozenHeat = ... # type: QGradient.Preset
  873. GagarinView = ... # type: QGradient.Preset
  874. FabledSunset = ... # type: QGradient.Preset
  875. PerfectBlue = ... # type: QGradient.Preset
  876. NumPresets = ... # type: QGradient.Preset
  877. class Spread(enum.Enum):
  878. PadSpread = ... # type: QGradient.Spread
  879. ReflectSpread = ... # type: QGradient.Spread
  880. RepeatSpread = ... # type: QGradient.Spread
  881. class Type(enum.Enum):
  882. LinearGradient = ... # type: QGradient.Type
  883. RadialGradient = ... # type: QGradient.Type
  884. ConicalGradient = ... # type: QGradient.Type
  885. NoGradient = ... # type: QGradient.Type
  886. class CoordinateMode(enum.Enum):
  887. LogicalMode = ... # type: QGradient.CoordinateMode
  888. StretchToDeviceMode = ... # type: QGradient.CoordinateMode
  889. ObjectBoundingMode = ... # type: QGradient.CoordinateMode
  890. ObjectMode = ... # type: QGradient.CoordinateMode
  891. @typing.overload
  892. def __init__(self) -> None: ...
  893. @typing.overload
  894. def __init__(self, a0: 'QGradient.Preset') -> None: ...
  895. @typing.overload
  896. def __init__(self, a0: 'QGradient') -> None: ...
  897. def setCoordinateMode(self, mode: 'QGradient.CoordinateMode') -> None: ...
  898. def coordinateMode(self) -> 'QGradient.CoordinateMode': ...
  899. def setSpread(self, aspread: 'QGradient.Spread') -> None: ...
  900. def __ne__(self, other: object): ...
  901. def __eq__(self, other: object): ...
  902. def stops(self) -> list[tuple[float, QColor]]: ...
  903. def setStops(self, stops: collections.abc.Iterable[tuple[float, QColor|QtCore.Qt.GlobalColor|int]]) -> None: ...
  904. def setColorAt(self, pos: float, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  905. def spread(self) -> 'QGradient.Spread': ...
  906. def type(self) -> 'QGradient.Type': ...
  907. class QLinearGradient(QGradient):
  908. @typing.overload
  909. def __init__(self) -> None: ...
  910. @typing.overload
  911. def __init__(self, start: QtCore.QPointF, finalStop: QtCore.QPointF) -> None: ...
  912. @typing.overload
  913. def __init__(self, xStart: float, yStart: float, xFinalStop: float, yFinalStop: float) -> None: ...
  914. @typing.overload
  915. def __init__(self, a0: 'QLinearGradient') -> None: ...
  916. @typing.overload
  917. def setFinalStop(self, stop: QtCore.QPointF) -> None: ...
  918. @typing.overload
  919. def setFinalStop(self, x: float, y: float) -> None: ...
  920. @typing.overload
  921. def setStart(self, start: QtCore.QPointF) -> None: ...
  922. @typing.overload
  923. def setStart(self, x: float, y: float) -> None: ...
  924. def finalStop(self) -> QtCore.QPointF: ...
  925. def start(self) -> QtCore.QPointF: ...
  926. class QRadialGradient(QGradient):
  927. @typing.overload
  928. def __init__(self) -> None: ...
  929. @typing.overload
  930. def __init__(self, center: QtCore.QPointF, radius: float, focalPoint: QtCore.QPointF) -> None: ...
  931. @typing.overload
  932. def __init__(self, center: QtCore.QPointF, centerRadius: float, focalPoint: QtCore.QPointF, focalRadius: float) -> None: ...
  933. @typing.overload
  934. def __init__(self, center: QtCore.QPointF, radius: float) -> None: ...
  935. @typing.overload
  936. def __init__(self, cx: float, cy: float, radius: float, fx: float, fy: float) -> None: ...
  937. @typing.overload
  938. def __init__(self, cx: float, cy: float, centerRadius: float, fx: float, fy: float, focalRadius: float) -> None: ...
  939. @typing.overload
  940. def __init__(self, cx: float, cy: float, radius: float) -> None: ...
  941. @typing.overload
  942. def __init__(self, a0: 'QRadialGradient') -> None: ...
  943. def setFocalRadius(self, radius: float) -> None: ...
  944. def focalRadius(self) -> float: ...
  945. def setCenterRadius(self, radius: float) -> None: ...
  946. def centerRadius(self) -> float: ...
  947. def setRadius(self, radius: float) -> None: ...
  948. @typing.overload
  949. def setFocalPoint(self, focalPoint: QtCore.QPointF) -> None: ...
  950. @typing.overload
  951. def setFocalPoint(self, x: float, y: float) -> None: ...
  952. @typing.overload
  953. def setCenter(self, center: QtCore.QPointF) -> None: ...
  954. @typing.overload
  955. def setCenter(self, x: float, y: float) -> None: ...
  956. def radius(self) -> float: ...
  957. def focalPoint(self) -> QtCore.QPointF: ...
  958. def center(self) -> QtCore.QPointF: ...
  959. class QConicalGradient(QGradient):
  960. @typing.overload
  961. def __init__(self) -> None: ...
  962. @typing.overload
  963. def __init__(self, center: QtCore.QPointF, startAngle: float) -> None: ...
  964. @typing.overload
  965. def __init__(self, cx: float, cy: float, startAngle: float) -> None: ...
  966. @typing.overload
  967. def __init__(self, a0: 'QConicalGradient') -> None: ...
  968. def setAngle(self, angle: float) -> None: ...
  969. @typing.overload
  970. def setCenter(self, center: QtCore.QPointF) -> None: ...
  971. @typing.overload
  972. def setCenter(self, x: float, y: float) -> None: ...
  973. def angle(self) -> float: ...
  974. def center(self) -> QtCore.QPointF: ...
  975. class QClipboard(QtCore.QObject):
  976. class Mode(enum.Enum):
  977. Clipboard = ... # type: QClipboard.Mode
  978. Selection = ... # type: QClipboard.Mode
  979. FindBuffer = ... # type: QClipboard.Mode
  980. selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
  981. findBufferChanged: typing.ClassVar[QtCore.pyqtSignal]
  982. dataChanged: typing.ClassVar[QtCore.pyqtSignal]
  983. changed: typing.ClassVar[QtCore.pyqtSignal]
  984. def setPixmap(self, a0: QPixmap, mode: 'QClipboard.Mode' = ...) -> None: ...
  985. def setImage(self, a0: 'QImage', mode: 'QClipboard.Mode' = ...) -> None: ...
  986. def pixmap(self, mode: 'QClipboard.Mode' = ...) -> QPixmap: ...
  987. def image(self, mode: 'QClipboard.Mode' = ...) -> 'QImage': ...
  988. def setMimeData(self, data: QtCore.QMimeData|None, mode: 'QClipboard.Mode' = ...) -> None: ...
  989. def mimeData(self, mode: 'QClipboard.Mode' = ...) -> QtCore.QMimeData|None: ...
  990. def setText(self, a0: str|None, mode: 'QClipboard.Mode' = ...) -> None: ...
  991. @typing.overload
  992. def text(self, mode: 'QClipboard.Mode' = ...) -> str: ...
  993. @typing.overload
  994. def text(self, subtype: str|None, mode: 'QClipboard.Mode' = ...) -> tuple[str, str]: ...
  995. def ownsSelection(self) -> bool: ...
  996. def ownsFindBuffer(self) -> bool: ...
  997. def ownsClipboard(self) -> bool: ...
  998. def supportsSelection(self) -> bool: ...
  999. def supportsFindBuffer(self) -> bool: ...
  1000. def clear(self, mode: 'QClipboard.Mode' = ...) -> None: ...
  1001. class QColorSpace(PyQt6.sip.simplewrapper):
  1002. class TransformModel(enum.Enum):
  1003. ThreeComponentMatrix = ... # type: QColorSpace.TransformModel
  1004. ElementListProcessing = ... # type: QColorSpace.TransformModel
  1005. class TransferFunction(enum.Enum):
  1006. Custom = ... # type: QColorSpace.TransferFunction
  1007. Linear = ... # type: QColorSpace.TransferFunction
  1008. Gamma = ... # type: QColorSpace.TransferFunction
  1009. SRgb = ... # type: QColorSpace.TransferFunction
  1010. ProPhotoRgb = ... # type: QColorSpace.TransferFunction
  1011. Bt2020 = ... # type: QColorSpace.TransferFunction
  1012. St2084 = ... # type: QColorSpace.TransferFunction
  1013. Hlg = ... # type: QColorSpace.TransferFunction
  1014. class Primaries(enum.Enum):
  1015. Custom = ... # type: QColorSpace.Primaries
  1016. SRgb = ... # type: QColorSpace.Primaries
  1017. AdobeRgb = ... # type: QColorSpace.Primaries
  1018. DciP3D65 = ... # type: QColorSpace.Primaries
  1019. ProPhotoRgb = ... # type: QColorSpace.Primaries
  1020. Bt2020 = ... # type: QColorSpace.Primaries
  1021. class NamedColorSpace(enum.Enum):
  1022. SRgb = ... # type: QColorSpace.NamedColorSpace
  1023. SRgbLinear = ... # type: QColorSpace.NamedColorSpace
  1024. AdobeRgb = ... # type: QColorSpace.NamedColorSpace
  1025. DisplayP3 = ... # type: QColorSpace.NamedColorSpace
  1026. ProPhotoRgb = ... # type: QColorSpace.NamedColorSpace
  1027. Bt2020 = ... # type: QColorSpace.NamedColorSpace
  1028. Bt2100Pq = ... # type: QColorSpace.NamedColorSpace
  1029. Bt2100Hlg = ... # type: QColorSpace.NamedColorSpace
  1030. class ColorModel(enum.Enum):
  1031. Undefined = ... # type: QColorSpace.ColorModel
  1032. Rgb = ... # type: QColorSpace.ColorModel
  1033. Gray = ... # type: QColorSpace.ColorModel
  1034. Cmyk = ... # type: QColorSpace.ColorModel
  1035. class PrimaryPoints(PyQt6.sip.simplewrapper):
  1036. @typing.overload
  1037. def __init__(self) -> None: ...
  1038. @typing.overload
  1039. def __init__(self, a0: 'QColorSpace.PrimaryPoints') -> None: ...
  1040. def isValid(self) -> bool: ...
  1041. @staticmethod
  1042. def fromPrimaries(primaries: 'QColorSpace.Primaries') -> 'QColorSpace.PrimaryPoints': ...
  1043. @typing.overload
  1044. def __init__(self) -> None: ...
  1045. @typing.overload
  1046. def __init__(self, namedColorSpace: 'QColorSpace.NamedColorSpace') -> None: ...
  1047. @typing.overload
  1048. def __init__(self, primaries: 'QColorSpace.Primaries', fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ...
  1049. @typing.overload
  1050. def __init__(self, primaries: 'QColorSpace.Primaries', gamma: float) -> None: ...
  1051. @typing.overload
  1052. def __init__(self, primaries: 'QColorSpace.Primaries', transferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1053. @typing.overload
  1054. def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ...
  1055. @typing.overload
  1056. def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1057. @typing.overload
  1058. def __init__(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF, transferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1059. @typing.overload
  1060. def __init__(self, whitePoint: QtCore.QPointF, transferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1061. @typing.overload
  1062. def __init__(self, whitePoint: QtCore.QPointF, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ...
  1063. @typing.overload
  1064. def __init__(self, colorSpace: 'QColorSpace') -> None: ...
  1065. @typing.overload
  1066. def __init__(self, primaryPoints: 'QColorSpace.PrimaryPoints', transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ...
  1067. def __ne__(self, other: object): ...
  1068. def __eq__(self, other: object): ...
  1069. def primaryPoints(self) -> 'QColorSpace.PrimaryPoints': ...
  1070. def setPrimaryPoints(self, primaryPoints: 'QColorSpace.PrimaryPoints') -> None: ...
  1071. def isValidTarget(self) -> bool: ...
  1072. def colorModel(self) -> 'QColorSpace.ColorModel': ...
  1073. def transformModel(self) -> 'QColorSpace.TransformModel': ...
  1074. def whitePoint(self) -> QtCore.QPointF: ...
  1075. def setWhitePoint(self, whitePoint: QtCore.QPointF) -> None: ...
  1076. def setDescription(self, description: str|None) -> None: ...
  1077. def description(self) -> str: ...
  1078. def transformationToColorSpace(self, colorspace: 'QColorSpace') -> 'QColorTransform': ...
  1079. def iccProfile(self) -> QtCore.QByteArray: ...
  1080. @staticmethod
  1081. def fromIccProfile(iccProfile: QtCore.QByteArray|bytes|bytearray|memoryview) -> 'QColorSpace': ...
  1082. def isValid(self) -> bool: ...
  1083. @typing.overload
  1084. def setPrimaries(self, primariesId: 'QColorSpace.Primaries') -> None: ...
  1085. @typing.overload
  1086. def setPrimaries(self, whitePoint: QtCore.QPointF, redPoint: QtCore.QPointF, greenPoint: QtCore.QPointF, bluePoint: QtCore.QPointF) -> None: ...
  1087. def withTransferFunctions(self, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> 'QColorSpace': ...
  1088. @typing.overload
  1089. def withTransferFunction(self, transferFunctionTable: collections.abc.Iterable[int]) -> 'QColorSpace': ...
  1090. @typing.overload
  1091. def withTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> 'QColorSpace': ...
  1092. def setTransferFunctions(self, redTransferFunctionTable: collections.abc.Iterable[int], greenTransferFunctionTable: collections.abc.Iterable[int], blueTransferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1093. @typing.overload
  1094. def setTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ...
  1095. @typing.overload
  1096. def setTransferFunction(self, transferFunctionTable: collections.abc.Iterable[int]) -> None: ...
  1097. def gamma(self) -> float: ...
  1098. def transferFunction(self) -> 'QColorSpace.TransferFunction': ...
  1099. def primaries(self) -> 'QColorSpace.Primaries': ...
  1100. def swap(self, colorSpace: 'QColorSpace') -> None: ...
  1101. class QColorTransform(PyQt6.sip.simplewrapper):
  1102. @typing.overload
  1103. def __init__(self) -> None: ...
  1104. @typing.overload
  1105. def __init__(self, colorTransform: 'QColorTransform') -> None: ...
  1106. def __ne__(self, other: object): ...
  1107. def __eq__(self, other: object): ...
  1108. def isIdentity(self) -> bool: ...
  1109. @typing.overload
  1110. def map(self, argb: int) -> int: ...
  1111. @typing.overload
  1112. def map(self, rgba64: 'QRgba64') -> 'QRgba64': ...
  1113. @typing.overload
  1114. def map(self, color: QColor|QtCore.Qt.GlobalColor|int) -> QColor: ...
  1115. def swap(self, other: 'QColorTransform') -> None: ...
  1116. class QCursor(PyQt6.sip.simplewrapper):
  1117. @typing.overload
  1118. def __init__(self) -> None: ...
  1119. @typing.overload
  1120. def __init__(self, bitmap: QBitmap, mask: QBitmap, hotX: int = ..., hotY: int = ...) -> None: ...
  1121. @typing.overload
  1122. def __init__(self, pixmap: QPixmap, hotX: int = ..., hotY: int = ...) -> None: ...
  1123. @typing.overload
  1124. def __init__(self, cursor: 'QCursor'|QtCore.Qt.CursorShape) -> None: ...
  1125. @typing.overload
  1126. def __init__(self, variant: typing.Any) -> None: ...
  1127. def __ne__(self, other: object): ...
  1128. def __eq__(self, other: object): ...
  1129. def swap(self, other: 'QCursor'|QtCore.Qt.CursorShape) -> None: ...
  1130. @typing.overload
  1131. @staticmethod
  1132. def setPos(x: int, y: int) -> None: ...
  1133. @typing.overload
  1134. @staticmethod
  1135. def setPos(p: QtCore.QPoint) -> None: ...
  1136. @typing.overload
  1137. @staticmethod
  1138. def setPos(screen: 'QScreen|None', x: int, y: int) -> None: ...
  1139. @typing.overload
  1140. @staticmethod
  1141. def setPos(screen: 'QScreen|None', p: QtCore.QPoint) -> None: ...
  1142. @typing.overload
  1143. @staticmethod
  1144. def pos() -> QtCore.QPoint: ...
  1145. @typing.overload
  1146. @staticmethod
  1147. def pos(screen: 'QScreen|None') -> QtCore.QPoint: ...
  1148. def hotSpot(self) -> QtCore.QPoint: ...
  1149. def pixmap(self) -> QPixmap: ...
  1150. def mask(self) -> QBitmap: ...
  1151. def bitmap(self) -> QBitmap: ...
  1152. def setShape(self, newShape: QtCore.Qt.CursorShape) -> None: ...
  1153. def shape(self) -> QtCore.Qt.CursorShape: ...
  1154. class QDesktopServices(PyQt6.sip.simplewrapper):
  1155. @typing.overload
  1156. def __init__(self) -> None: ...
  1157. @typing.overload
  1158. def __init__(self, a0: 'QDesktopServices') -> None: ...
  1159. @staticmethod
  1160. def unsetUrlHandler(scheme: str|None) -> None: ...
  1161. @typing.overload
  1162. @staticmethod
  1163. def setUrlHandler(scheme: str|None, receiver: QtCore.QObject|None, method: str) -> None: ...
  1164. @typing.overload
  1165. @staticmethod
  1166. def setUrlHandler(scheme: str|None, method: collections.abc.Callable[[QtCore.QUrl], None]) -> None: ...
  1167. @staticmethod
  1168. def openUrl(url: QtCore.QUrl) -> bool: ...
  1169. class QDrag(QtCore.QObject):
  1170. def __init__(self, dragSource: QtCore.QObject|None) -> None: ...
  1171. @staticmethod
  1172. def cancel() -> None: ...
  1173. def defaultAction(self) -> QtCore.Qt.DropAction: ...
  1174. def supportedActions(self) -> QtCore.Qt.DropAction: ...
  1175. def dragCursor(self, action: QtCore.Qt.DropAction) -> QPixmap: ...
  1176. targetChanged: typing.ClassVar[QtCore.pyqtSignal]
  1177. actionChanged: typing.ClassVar[QtCore.pyqtSignal]
  1178. def setDragCursor(self, cursor: QPixmap, action: QtCore.Qt.DropAction) -> None: ...
  1179. def target(self) -> QtCore.QObject|None: ...
  1180. def source(self) -> QtCore.QObject|None: ...
  1181. def hotSpot(self) -> QtCore.QPoint: ...
  1182. def setHotSpot(self, hotspot: QtCore.QPoint) -> None: ...
  1183. def pixmap(self) -> QPixmap: ...
  1184. def setPixmap(self, a0: QPixmap) -> None: ...
  1185. def mimeData(self) -> QtCore.QMimeData|None: ...
  1186. def setMimeData(self, data: QtCore.QMimeData|None) -> None: ...
  1187. @typing.overload
  1188. def exec(self, supportedActions: QtCore.Qt.DropAction = ...) -> QtCore.Qt.DropAction: ...
  1189. @typing.overload
  1190. def exec(self, supportedActions: QtCore.Qt.DropAction, defaultDropAction: QtCore.Qt.DropAction) -> QtCore.Qt.DropAction: ...
  1191. class QInputEvent(QtCore.QEvent):
  1192. def clone(self) -> 'QInputEvent|None': ...
  1193. def deviceType(self) -> 'QInputDevice.DeviceType': ...
  1194. def device(self) -> 'QInputDevice|None': ...
  1195. def timestamp(self) -> int: ...
  1196. def modifiers(self) -> QtCore.Qt.KeyboardModifier: ...
  1197. class QKeyEvent(QInputEvent):
  1198. @typing.overload
  1199. def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, nativeScanCode: int, nativeVirtualKey: int, nativeModifiers: int, text: str|None = ..., autorep: bool = ..., count: int = ..., device: 'QInputDevice|None' = ...) -> None: ...
  1200. @typing.overload
  1201. def __init__(self, type: QtCore.QEvent.Type, key: int, modifiers: QtCore.Qt.KeyboardModifier, text: str|None = ..., autorep: bool = ..., count: int = ...) -> None: ...
  1202. def __ne__(self, other: object): ...
  1203. def __eq__(self, other: object): ...
  1204. def clone(self) -> 'QKeyEvent|None': ...
  1205. def keyCombination(self) -> QtCore.QKeyCombination: ...
  1206. def nativeVirtualKey(self) -> int: ...
  1207. def nativeScanCode(self) -> int: ...
  1208. def nativeModifiers(self) -> int: ...
  1209. def matches(self, key: 'QKeySequence.StandardKey') -> bool: ...
  1210. def __len__(self) -> int: ...
  1211. def count(self) -> int: ...
  1212. def isAutoRepeat(self) -> bool: ...
  1213. def text(self) -> str: ...
  1214. def modifiers(self) -> QtCore.Qt.KeyboardModifier: ...
  1215. def key(self) -> int: ...
  1216. class QFocusEvent(QtCore.QEvent):
  1217. def __init__(self, type: QtCore.QEvent.Type, reason: QtCore.Qt.FocusReason = ...) -> None: ...
  1218. def clone(self) -> 'QFocusEvent|None': ...
  1219. def reason(self) -> QtCore.Qt.FocusReason: ...
  1220. def lostFocus(self) -> bool: ...
  1221. def gotFocus(self) -> bool: ...
  1222. class QPaintEvent(QtCore.QEvent):
  1223. @typing.overload
  1224. def __init__(self, paintRegion: 'QRegion') -> None: ...
  1225. @typing.overload
  1226. def __init__(self, paintRect: QtCore.QRect) -> None: ...
  1227. def clone(self) -> 'QPaintEvent|None': ...
  1228. def region(self) -> 'QRegion': ...
  1229. def rect(self) -> QtCore.QRect: ...
  1230. class QMoveEvent(QtCore.QEvent):
  1231. def __init__(self, pos: QtCore.QPoint, oldPos: QtCore.QPoint) -> None: ...
  1232. def clone(self) -> 'QMoveEvent|None': ...
  1233. def oldPos(self) -> QtCore.QPoint: ...
  1234. def pos(self) -> QtCore.QPoint: ...
  1235. class QResizeEvent(QtCore.QEvent):
  1236. def __init__(self, size: QtCore.QSize, oldSize: QtCore.QSize) -> None: ...
  1237. def clone(self) -> 'QResizeEvent|None': ...
  1238. def oldSize(self) -> QtCore.QSize: ...
  1239. def size(self) -> QtCore.QSize: ...
  1240. class QCloseEvent(QtCore.QEvent):
  1241. def __init__(self) -> None: ...
  1242. def clone(self) -> 'QCloseEvent|None': ...
  1243. class QIconDragEvent(QtCore.QEvent):
  1244. def __init__(self) -> None: ...
  1245. def clone(self) -> 'QIconDragEvent|None': ...
  1246. class QShowEvent(QtCore.QEvent):
  1247. def __init__(self) -> None: ...
  1248. def clone(self) -> 'QShowEvent|None': ...
  1249. class QHideEvent(QtCore.QEvent):
  1250. def __init__(self) -> None: ...
  1251. def clone(self) -> 'QHideEvent|None': ...
  1252. class QContextMenuEvent(QInputEvent):
  1253. class Reason(enum.Enum):
  1254. Mouse = ... # type: QContextMenuEvent.Reason
  1255. Keyboard = ... # type: QContextMenuEvent.Reason
  1256. Other = ... # type: QContextMenuEvent.Reason
  1257. @typing.overload
  1258. def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint, globalPos: QtCore.QPoint, modifiers: QtCore.Qt.KeyboardModifier = ...) -> None: ...
  1259. @typing.overload
  1260. def __init__(self, reason: 'QContextMenuEvent.Reason', pos: QtCore.QPoint) -> None: ...
  1261. def clone(self) -> 'QContextMenuEvent|None': ...
  1262. def reason(self) -> 'QContextMenuEvent.Reason': ...
  1263. def globalPos(self) -> QtCore.QPoint: ...
  1264. def pos(self) -> QtCore.QPoint: ...
  1265. def globalY(self) -> int: ...
  1266. def globalX(self) -> int: ...
  1267. def y(self) -> int: ...
  1268. def x(self) -> int: ...
  1269. class QInputMethodEvent(QtCore.QEvent):
  1270. class AttributeType(enum.Enum):
  1271. TextFormat = ... # type: QInputMethodEvent.AttributeType
  1272. Cursor = ... # type: QInputMethodEvent.AttributeType
  1273. Language = ... # type: QInputMethodEvent.AttributeType
  1274. Ruby = ... # type: QInputMethodEvent.AttributeType
  1275. Selection = ... # type: QInputMethodEvent.AttributeType
  1276. MimeData = ... # type: QInputMethodEvent.AttributeType
  1277. class Attribute(PyQt6.sip.simplewrapper):
  1278. length = ... # type: int
  1279. start = ... # type: int
  1280. type = ... # type: 'QInputMethodEvent.AttributeType'
  1281. value = ... # type: typing.Any
  1282. @typing.overload
  1283. def __init__(self, t: 'QInputMethodEvent.AttributeType', s: int, l: int, val: typing.Any) -> None: ...
  1284. @typing.overload
  1285. def __init__(self, typ: 'QInputMethodEvent.AttributeType', s: int, l: int) -> None: ...
  1286. @typing.overload
  1287. def __init__(self, a0: 'QInputMethodEvent.Attribute') -> None: ...
  1288. def __ne__(self, other: object): ...
  1289. def __eq__(self, other: object): ...
  1290. @typing.overload
  1291. def __init__(self) -> None: ...
  1292. @typing.overload
  1293. def __init__(self, preeditText: str|None, attributes: collections.abc.Iterable['QInputMethodEvent.Attribute']) -> None: ...
  1294. def clone(self) -> 'QInputMethodEvent|None': ...
  1295. def replacementLength(self) -> int: ...
  1296. def replacementStart(self) -> int: ...
  1297. def commitString(self) -> str: ...
  1298. def preeditString(self) -> str: ...
  1299. def attributes(self) -> list['QInputMethodEvent.Attribute']: ...
  1300. def setCommitString(self, commitString: str|None, from_: int = ..., length: int = ...) -> None: ...
  1301. class QInputMethodQueryEvent(QtCore.QEvent):
  1302. def __init__(self, queries: QtCore.Qt.InputMethodQuery) -> None: ...
  1303. def clone(self) -> 'QInputMethodQueryEvent|None': ...
  1304. def value(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
  1305. def setValue(self, query: QtCore.Qt.InputMethodQuery, value: typing.Any) -> None: ...
  1306. def queries(self) -> QtCore.Qt.InputMethodQuery: ...
  1307. class QDropEvent(QtCore.QEvent):
  1308. def __init__(self, pos: QtCore.QPointF, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, type: QtCore.QEvent.Type = ...) -> None: ...
  1309. def clone(self) -> 'QDropEvent|None': ...
  1310. def modifiers(self) -> QtCore.Qt.KeyboardModifier: ...
  1311. def buttons(self) -> QtCore.Qt.MouseButton: ...
  1312. def position(self) -> QtCore.QPointF: ...
  1313. def mimeData(self) -> QtCore.QMimeData|None: ...
  1314. def source(self) -> QtCore.QObject|None: ...
  1315. def setDropAction(self, action: QtCore.Qt.DropAction) -> None: ...
  1316. def dropAction(self) -> QtCore.Qt.DropAction: ...
  1317. def acceptProposedAction(self) -> None: ...
  1318. def proposedAction(self) -> QtCore.Qt.DropAction: ...
  1319. def possibleActions(self) -> QtCore.Qt.DropAction: ...
  1320. class QDragMoveEvent(QDropEvent):
  1321. def __init__(self, pos: QtCore.QPoint, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, type: QtCore.QEvent.Type = ...) -> None: ...
  1322. def clone(self) -> 'QDragMoveEvent|None': ...
  1323. @typing.overload
  1324. def ignore(self) -> None: ...
  1325. @typing.overload
  1326. def ignore(self, r: QtCore.QRect) -> None: ...
  1327. @typing.overload
  1328. def accept(self) -> None: ...
  1329. @typing.overload
  1330. def accept(self, r: QtCore.QRect) -> None: ...
  1331. def answerRect(self) -> QtCore.QRect: ...
  1332. class QDragEnterEvent(QDragMoveEvent):
  1333. def __init__(self, pos: QtCore.QPoint, actions: QtCore.Qt.DropAction, data: QtCore.QMimeData|None, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
  1334. def clone(self) -> 'QDragEnterEvent|None': ...
  1335. class QDragLeaveEvent(QtCore.QEvent):
  1336. def __init__(self) -> None: ...
  1337. def clone(self) -> 'QDragLeaveEvent|None': ...
  1338. class QHelpEvent(QtCore.QEvent):
  1339. def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPoint, globalPos: QtCore.QPoint) -> None: ...
  1340. def clone(self) -> 'QHelpEvent|None': ...
  1341. def globalPos(self) -> QtCore.QPoint: ...
  1342. def pos(self) -> QtCore.QPoint: ...
  1343. def globalY(self) -> int: ...
  1344. def globalX(self) -> int: ...
  1345. def y(self) -> int: ...
  1346. def x(self) -> int: ...
  1347. class QStatusTipEvent(QtCore.QEvent):
  1348. def __init__(self, tip: str|None) -> None: ...
  1349. def clone(self) -> 'QStatusTipEvent|None': ...
  1350. def tip(self) -> str: ...
  1351. class QWhatsThisClickedEvent(QtCore.QEvent):
  1352. def __init__(self, href: str|None) -> None: ...
  1353. def clone(self) -> 'QWhatsThisClickedEvent|None': ...
  1354. def href(self) -> str: ...
  1355. class QActionEvent(QtCore.QEvent):
  1356. def __init__(self, type: int, action: QAction|None, before: QAction|None = ...) -> None: ...
  1357. def clone(self) -> 'QActionEvent|None': ...
  1358. def before(self) -> QAction|None: ...
  1359. def action(self) -> QAction|None: ...
  1360. class QFileOpenEvent(QtCore.QEvent):
  1361. def clone(self) -> 'QFileOpenEvent|None': ...
  1362. def openFile(self, file: QtCore.QFile, flags: QtCore.QIODeviceBase.OpenModeFlag) -> bool: ...
  1363. def url(self) -> QtCore.QUrl: ...
  1364. def file(self) -> str: ...
  1365. class QShortcutEvent(QtCore.QEvent):
  1366. @typing.overload
  1367. def __init__(self, key: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int, id: int, ambiguous: bool = ...) -> None: ...
  1368. @typing.overload
  1369. def __init__(self, key: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int, shortcut: 'QShortcut|None' = ..., ambiguous: bool = ...) -> None: ...
  1370. def clone(self) -> 'QShortcutEvent|None': ...
  1371. def shortcutId(self) -> int: ...
  1372. def key(self) -> 'QKeySequence': ...
  1373. def isAmbiguous(self) -> bool: ...
  1374. class QWindowStateChangeEvent(QtCore.QEvent):
  1375. def clone(self) -> 'QWindowStateChangeEvent|None': ...
  1376. def oldState(self) -> QtCore.Qt.WindowState: ...
  1377. class QExposeEvent(QtCore.QEvent):
  1378. def __init__(self, rgn: 'QRegion') -> None: ...
  1379. def clone(self) -> 'QExposeEvent|None': ...
  1380. class QScrollPrepareEvent(QtCore.QEvent):
  1381. def __init__(self, startPos: QtCore.QPointF) -> None: ...
  1382. def clone(self) -> 'QScrollPrepareEvent|None': ...
  1383. def setContentPos(self, pos: QtCore.QPointF) -> None: ...
  1384. def setContentPosRange(self, rect: QtCore.QRectF) -> None: ...
  1385. def setViewportSize(self, size: QtCore.QSizeF) -> None: ...
  1386. def contentPos(self) -> QtCore.QPointF: ...
  1387. def contentPosRange(self) -> QtCore.QRectF: ...
  1388. def viewportSize(self) -> QtCore.QSizeF: ...
  1389. def startPos(self) -> QtCore.QPointF: ...
  1390. class QScrollEvent(QtCore.QEvent):
  1391. class ScrollState(enum.Enum):
  1392. ScrollStarted = ... # type: QScrollEvent.ScrollState
  1393. ScrollUpdated = ... # type: QScrollEvent.ScrollState
  1394. ScrollFinished = ... # type: QScrollEvent.ScrollState
  1395. def __init__(self, contentPos: QtCore.QPointF, overshoot: QtCore.QPointF, scrollState: 'QScrollEvent.ScrollState') -> None: ...
  1396. def clone(self) -> 'QScrollEvent|None': ...
  1397. def scrollState(self) -> 'QScrollEvent.ScrollState': ...
  1398. def overshootDistance(self) -> QtCore.QPointF: ...
  1399. def contentPos(self) -> QtCore.QPointF: ...
  1400. class QPlatformSurfaceEvent(QtCore.QEvent):
  1401. class SurfaceEventType(enum.Enum):
  1402. SurfaceCreated = ... # type: QPlatformSurfaceEvent.SurfaceEventType
  1403. SurfaceAboutToBeDestroyed = ... # type: QPlatformSurfaceEvent.SurfaceEventType
  1404. def __init__(self, surfaceEventType: 'QPlatformSurfaceEvent.SurfaceEventType') -> None: ...
  1405. def clone(self) -> 'QPlatformSurfaceEvent|None': ...
  1406. def surfaceEventType(self) -> 'QPlatformSurfaceEvent.SurfaceEventType': ...
  1407. class QPointerEvent(QInputEvent):
  1408. def clone(self) -> 'QPointerEvent|None': ...
  1409. def setAccepted(self, accepted: bool) -> None: ...
  1410. def allPointsAccepted(self) -> bool: ...
  1411. def isEndEvent(self) -> bool: ...
  1412. def isUpdateEvent(self) -> bool: ...
  1413. def isBeginEvent(self) -> bool: ...
  1414. def pointById(self, id: int) -> 'QEventPoint|None': ...
  1415. def points(self) -> list['QEventPoint']: ...
  1416. def point(self, i: int) -> 'QEventPoint': ...
  1417. def pointCount(self) -> int: ...
  1418. def pointerType(self) -> 'QPointingDevice.PointerType': ...
  1419. def pointingDevice(self) -> 'QPointingDevice|None': ...
  1420. class QSinglePointEvent(QPointerEvent):
  1421. def clone(self) -> 'QSinglePointEvent|None': ...
  1422. def setExclusivePointGrabber(self, exclusiveGrabber: QtCore.QObject|None) -> None: ...
  1423. def exclusivePointGrabber(self) -> QtCore.QObject|None: ...
  1424. def isEndEvent(self) -> bool: ...
  1425. def isUpdateEvent(self) -> bool: ...
  1426. def isBeginEvent(self) -> bool: ...
  1427. def globalPosition(self) -> QtCore.QPointF: ...
  1428. def scenePosition(self) -> QtCore.QPointF: ...
  1429. def position(self) -> QtCore.QPointF: ...
  1430. def buttons(self) -> QtCore.Qt.MouseButton: ...
  1431. def button(self) -> QtCore.Qt.MouseButton: ...
  1432. class QEnterEvent(QSinglePointEvent):
  1433. def __init__(self, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, device: 'QPointingDevice|None' = ...) -> None: ...
  1434. def clone(self) -> 'QEnterEvent|None': ...
  1435. class QMouseEvent(QSinglePointEvent):
  1436. @typing.overload
  1437. def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ...
  1438. @typing.overload
  1439. def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, globalPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ...
  1440. @typing.overload
  1441. def __init__(self, type: QtCore.QEvent.Type, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, device: 'QPointingDevice|None' = ...) -> None: ...
  1442. def clone(self) -> 'QMouseEvent|None': ...
  1443. def flags(self) -> QtCore.Qt.MouseEventFlag: ...
  1444. def pos(self) -> QtCore.QPoint: ...
  1445. class QHoverEvent(QSinglePointEvent):
  1446. @typing.overload
  1447. def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, globalPos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: 'QPointingDevice|None' = ...) -> None: ...
  1448. @typing.overload
  1449. def __init__(self, type: QtCore.QEvent.Type, pos: QtCore.QPointF, oldPos: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier = ..., device: 'QPointingDevice|None' = ...) -> None: ...
  1450. def clone(self) -> 'QHoverEvent|None': ...
  1451. def oldPosF(self) -> QtCore.QPointF: ...
  1452. def oldPos(self) -> QtCore.QPoint: ...
  1453. def isUpdateEvent(self) -> bool: ...
  1454. class QWheelEvent(QSinglePointEvent):
  1455. def __init__(self, pos: QtCore.QPointF, globalPos: QtCore.QPointF, pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, buttons: QtCore.Qt.MouseButton, modifiers: QtCore.Qt.KeyboardModifier, phase: QtCore.Qt.ScrollPhase, inverted: bool, source: QtCore.Qt.MouseEventSource = ..., device: 'QPointingDevice|None' = ...) -> None: ...
  1456. def clone(self) -> 'QWheelEvent|None': ...
  1457. def isEndEvent(self) -> bool: ...
  1458. def isUpdateEvent(self) -> bool: ...
  1459. def isBeginEvent(self) -> bool: ...
  1460. def inverted(self) -> bool: ...
  1461. def phase(self) -> QtCore.Qt.ScrollPhase: ...
  1462. def angleDelta(self) -> QtCore.QPoint: ...
  1463. def pixelDelta(self) -> QtCore.QPoint: ...
  1464. class QTabletEvent(QSinglePointEvent):
  1465. def __init__(self, t: QtCore.QEvent.Type, device: 'QPointingDevice|None', pos: QtCore.QPointF, globalPos: QtCore.QPointF, pressure: float, xTilt: float, yTilt: float, tangentialPressure: float, rotation: float, z: float, keyState: QtCore.Qt.KeyboardModifier, button: QtCore.Qt.MouseButton, buttons: QtCore.Qt.MouseButton) -> None: ...
  1466. def clone(self) -> 'QTabletEvent|None': ...
  1467. def yTilt(self) -> float: ...
  1468. def xTilt(self) -> float: ...
  1469. def tangentialPressure(self) -> float: ...
  1470. def z(self) -> float: ...
  1471. def rotation(self) -> float: ...
  1472. def pressure(self) -> float: ...
  1473. class QNativeGestureEvent(QSinglePointEvent):
  1474. @typing.overload
  1475. def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QPointingDevice|None', fingerCount: int, localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, value: float, delta: QtCore.QPointF, sequenceId: int = ...) -> None: ...
  1476. @typing.overload
  1477. def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QPointingDevice|None', localPos: QtCore.QPointF, scenePos: QtCore.QPointF, globalPos: QtCore.QPointF, value: float, sequenceId: int, intArgument: int) -> None: ...
  1478. def delta(self) -> QtCore.QPointF: ...
  1479. def fingerCount(self) -> int: ...
  1480. def clone(self) -> 'QNativeGestureEvent|None': ...
  1481. def value(self) -> float: ...
  1482. def gestureType(self) -> QtCore.Qt.NativeGestureType: ...
  1483. class QTouchEvent(QPointerEvent):
  1484. def __init__(self, eventType: QtCore.QEvent.Type, device: 'QPointingDevice|None' = ..., modifiers: QtCore.Qt.KeyboardModifier = ..., touchPoints: collections.abc.Iterable['QEventPoint'] = ...) -> None: ...
  1485. def clone(self) -> 'QTouchEvent|None': ...
  1486. def isEndEvent(self) -> bool: ...
  1487. def isUpdateEvent(self) -> bool: ...
  1488. def isBeginEvent(self) -> bool: ...
  1489. def touchPointStates(self) -> 'QEventPoint.State': ...
  1490. def target(self) -> QtCore.QObject|None: ...
  1491. class QChildWindowEvent(QtCore.QEvent):
  1492. def __init__(self, type: QtCore.QEvent.Type, childWindow: 'QWindow|None') -> None: ...
  1493. def clone(self) -> 'QChildWindowEvent|None': ...
  1494. def child(self) -> 'QWindow|None': ...
  1495. class QEventPoint(PyQt6.sip.simplewrapper):
  1496. class State(enum.Flag):
  1497. Unknown = ... # type: QEventPoint.State
  1498. Stationary = ... # type: QEventPoint.State
  1499. Pressed = ... # type: QEventPoint.State
  1500. Updated = ... # type: QEventPoint.State
  1501. Released = ... # type: QEventPoint.State
  1502. @typing.overload
  1503. def __init__(self, pointId: int, state: 'QEventPoint.State', scenePosition: QtCore.QPointF, globalPosition: QtCore.QPointF) -> None: ...
  1504. @typing.overload
  1505. def __init__(self, other: 'QEventPoint') -> None: ...
  1506. def setAccepted(self, accepted: bool = ...) -> None: ...
  1507. def isAccepted(self) -> bool: ...
  1508. def ellipseDiameters(self) -> QtCore.QSizeF: ...
  1509. def rotation(self) -> float: ...
  1510. def pressure(self) -> float: ...
  1511. def timeHeld(self) -> float: ...
  1512. def pressTimestamp(self) -> int: ...
  1513. def lastTimestamp(self) -> int: ...
  1514. def timestamp(self) -> int: ...
  1515. def uniqueId(self) -> 'QPointingDeviceUniqueId': ...
  1516. def id(self) -> int: ...
  1517. def device(self) -> 'QPointingDevice|None': ...
  1518. def state(self) -> 'QEventPoint.State': ...
  1519. def velocity(self) -> 'QVector2D': ...
  1520. def normalizedPosition(self) -> QtCore.QPointF: ...
  1521. def globalLastPosition(self) -> QtCore.QPointF: ...
  1522. def globalGrabPosition(self) -> QtCore.QPointF: ...
  1523. def globalPressPosition(self) -> QtCore.QPointF: ...
  1524. def globalPosition(self) -> QtCore.QPointF: ...
  1525. def sceneLastPosition(self) -> QtCore.QPointF: ...
  1526. def sceneGrabPosition(self) -> QtCore.QPointF: ...
  1527. def scenePressPosition(self) -> QtCore.QPointF: ...
  1528. def scenePosition(self) -> QtCore.QPointF: ...
  1529. def lastPosition(self) -> QtCore.QPointF: ...
  1530. def grabPosition(self) -> QtCore.QPointF: ...
  1531. def pressPosition(self) -> QtCore.QPointF: ...
  1532. def position(self) -> QtCore.QPointF: ...
  1533. def swap(self, other: 'QEventPoint') -> None: ...
  1534. def __ne__(self, other: object): ...
  1535. def __eq__(self, other: object): ...
  1536. class QFileSystemModel(QtCore.QAbstractItemModel):
  1537. class Option(enum.Flag):
  1538. DontWatchForChanges = ... # type: QFileSystemModel.Option
  1539. DontResolveSymlinks = ... # type: QFileSystemModel.Option
  1540. DontUseCustomDirectoryIcons = ... # type: QFileSystemModel.Option
  1541. class Roles(enum.IntEnum):
  1542. FileIconRole = ... # type: QFileSystemModel.Roles
  1543. FilePathRole = ... # type: QFileSystemModel.Roles
  1544. FileNameRole = ... # type: QFileSystemModel.Roles
  1545. FilePermissions = ... # type: QFileSystemModel.Roles
  1546. FileInfoRole = ... # type: QFileSystemModel.Roles
  1547. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  1548. def roleNames(self) -> dict[int, QtCore.QByteArray]: ...
  1549. def options(self) -> 'QFileSystemModel.Option': ...
  1550. def setOptions(self, options: 'QFileSystemModel.Option') -> None: ...
  1551. def testOption(self, option: 'QFileSystemModel.Option') -> bool: ...
  1552. def setOption(self, option: 'QFileSystemModel.Option', on: bool = ...) -> None: ...
  1553. def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
  1554. def timerEvent(self, event: QtCore.QTimerEvent|None) -> None: ...
  1555. def event(self, event: QtCore.QEvent|None) -> bool: ...
  1556. directoryLoaded: typing.ClassVar[QtCore.pyqtSignal]
  1557. rootPathChanged: typing.ClassVar[QtCore.pyqtSignal]
  1558. fileRenamed: typing.ClassVar[QtCore.pyqtSignal]
  1559. def remove(self, index: QtCore.QModelIndex) -> bool: ...
  1560. def fileInfo(self, aindex: QtCore.QModelIndex) -> QtCore.QFileInfo: ...
  1561. def fileIcon(self, aindex: QtCore.QModelIndex) -> 'QIcon': ...
  1562. def fileName(self, aindex: QtCore.QModelIndex) -> str: ...
  1563. def rmdir(self, index: QtCore.QModelIndex) -> bool: ...
  1564. def permissions(self, index: QtCore.QModelIndex) -> QtCore.QFileDevice.Permission: ...
  1565. def mkdir(self, parent: QtCore.QModelIndex, name: str|None) -> QtCore.QModelIndex: ...
  1566. @typing.overload
  1567. def lastModified(self, index: QtCore.QModelIndex) -> QtCore.QDateTime: ...
  1568. @typing.overload
  1569. def lastModified(self, index: QtCore.QModelIndex, tz: QtCore.QTimeZone) -> QtCore.QDateTime: ...
  1570. def type(self, index: QtCore.QModelIndex) -> str: ...
  1571. def size(self, index: QtCore.QModelIndex) -> int: ...
  1572. def isDir(self, index: QtCore.QModelIndex) -> bool: ...
  1573. def filePath(self, index: QtCore.QModelIndex) -> str: ...
  1574. def nameFilters(self) -> list[str]: ...
  1575. def setNameFilters(self, filters: collections.abc.Iterable[str|None]) -> None: ...
  1576. def nameFilterDisables(self) -> bool: ...
  1577. def setNameFilterDisables(self, enable: bool) -> None: ...
  1578. def isReadOnly(self) -> bool: ...
  1579. def setReadOnly(self, enable: bool) -> None: ...
  1580. def resolveSymlinks(self) -> bool: ...
  1581. def setResolveSymlinks(self, enable: bool) -> None: ...
  1582. def filter(self) -> QtCore.QDir.Filter: ...
  1583. def setFilter(self, filters: QtCore.QDir.Filter) -> None: ...
  1584. def iconProvider(self) -> QAbstractFileIconProvider|None: ...
  1585. def setIconProvider(self, provider: QAbstractFileIconProvider|None) -> None: ...
  1586. def rootDirectory(self) -> QtCore.QDir: ...
  1587. def rootPath(self) -> str: ...
  1588. def setRootPath(self, path: str|None) -> QtCore.QModelIndex: ...
  1589. def supportedDropActions(self) -> QtCore.Qt.DropAction: ...
  1590. def dropMimeData(self, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ...
  1591. def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData|None: ...
  1592. def mimeTypes(self) -> list[str]: ...
  1593. def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ...
  1594. def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
  1595. def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
  1596. def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
  1597. def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
  1598. def myComputer(self, role: int = ...) -> typing.Any: ...
  1599. def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
  1600. def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
  1601. def fetchMore(self, parent: QtCore.QModelIndex) -> None: ...
  1602. def canFetchMore(self, parent: QtCore.QModelIndex) -> bool: ...
  1603. def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ...
  1604. def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
  1605. @typing.overload
  1606. def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
  1607. @typing.overload
  1608. def index(self, path: str|None, column: int = ...) -> QtCore.QModelIndex: ...
  1609. class QFont(PyQt6.sip.simplewrapper):
  1610. class HintingPreference(enum.Enum):
  1611. PreferDefaultHinting = ... # type: QFont.HintingPreference
  1612. PreferNoHinting = ... # type: QFont.HintingPreference
  1613. PreferVerticalHinting = ... # type: QFont.HintingPreference
  1614. PreferFullHinting = ... # type: QFont.HintingPreference
  1615. class SpacingType(enum.Enum):
  1616. PercentageSpacing = ... # type: QFont.SpacingType
  1617. AbsoluteSpacing = ... # type: QFont.SpacingType
  1618. class Capitalization(enum.Enum):
  1619. MixedCase = ... # type: QFont.Capitalization
  1620. AllUppercase = ... # type: QFont.Capitalization
  1621. AllLowercase = ... # type: QFont.Capitalization
  1622. SmallCaps = ... # type: QFont.Capitalization
  1623. Capitalize = ... # type: QFont.Capitalization
  1624. class Stretch(enum.IntEnum):
  1625. AnyStretch = ... # type: QFont.Stretch
  1626. UltraCondensed = ... # type: QFont.Stretch
  1627. ExtraCondensed = ... # type: QFont.Stretch
  1628. Condensed = ... # type: QFont.Stretch
  1629. SemiCondensed = ... # type: QFont.Stretch
  1630. Unstretched = ... # type: QFont.Stretch
  1631. SemiExpanded = ... # type: QFont.Stretch
  1632. Expanded = ... # type: QFont.Stretch
  1633. ExtraExpanded = ... # type: QFont.Stretch
  1634. UltraExpanded = ... # type: QFont.Stretch
  1635. class Style(enum.Enum):
  1636. StyleNormal = ... # type: QFont.Style
  1637. StyleItalic = ... # type: QFont.Style
  1638. StyleOblique = ... # type: QFont.Style
  1639. class Weight(enum.IntEnum):
  1640. Thin = ... # type: QFont.Weight
  1641. ExtraLight = ... # type: QFont.Weight
  1642. Light = ... # type: QFont.Weight
  1643. Normal = ... # type: QFont.Weight
  1644. Medium = ... # type: QFont.Weight
  1645. DemiBold = ... # type: QFont.Weight
  1646. Bold = ... # type: QFont.Weight
  1647. ExtraBold = ... # type: QFont.Weight
  1648. Black = ... # type: QFont.Weight
  1649. class StyleStrategy(enum.Flag):
  1650. PreferDefault = ... # type: QFont.StyleStrategy
  1651. PreferBitmap = ... # type: QFont.StyleStrategy
  1652. PreferDevice = ... # type: QFont.StyleStrategy
  1653. PreferOutline = ... # type: QFont.StyleStrategy
  1654. ForceOutline = ... # type: QFont.StyleStrategy
  1655. PreferMatch = ... # type: QFont.StyleStrategy
  1656. PreferQuality = ... # type: QFont.StyleStrategy
  1657. PreferAntialias = ... # type: QFont.StyleStrategy
  1658. NoAntialias = ... # type: QFont.StyleStrategy
  1659. NoSubpixelAntialias = ... # type: QFont.StyleStrategy
  1660. NoFontMerging = ... # type: QFont.StyleStrategy
  1661. PreferNoShaping = ... # type: QFont.StyleStrategy
  1662. ContextFontMerging = ... # type: QFont.StyleStrategy
  1663. PreferTypoLineMetrics = ... # type: QFont.StyleStrategy
  1664. class StyleHint(enum.Enum):
  1665. Helvetica = ... # type: QFont.StyleHint
  1666. SansSerif = ... # type: QFont.StyleHint
  1667. Times = ... # type: QFont.StyleHint
  1668. Serif = ... # type: QFont.StyleHint
  1669. Courier = ... # type: QFont.StyleHint
  1670. TypeWriter = ... # type: QFont.StyleHint
  1671. OldEnglish = ... # type: QFont.StyleHint
  1672. Decorative = ... # type: QFont.StyleHint
  1673. System = ... # type: QFont.StyleHint
  1674. AnyStyle = ... # type: QFont.StyleHint
  1675. Cursive = ... # type: QFont.StyleHint
  1676. Monospace = ... # type: QFont.StyleHint
  1677. Fantasy = ... # type: QFont.StyleHint
  1678. class Tag(PyQt6.sip.simplewrapper):
  1679. @typing.overload
  1680. def __init__(self) -> None: ...
  1681. @typing.overload
  1682. def __init__(self, view: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ...
  1683. @typing.overload
  1684. def __init__(self, a0: 'QFont.Tag') -> None: ...
  1685. def __ne__(self, other: object): ...
  1686. def __eq__(self, other: object): ...
  1687. def __ge__(self, rhs: 'QFont.Tag') -> bool: ...
  1688. def __le__(self, rhs: 'QFont.Tag') -> bool: ...
  1689. def __gt__(self, rhs: 'QFont.Tag') -> bool: ...
  1690. def __lt__(self, rhs: 'QFont.Tag') -> bool: ...
  1691. def __hash__(self) -> int: ...
  1692. @staticmethod
  1693. def fromString(view: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> 'QFont.Tag'|None: ...
  1694. @staticmethod
  1695. def fromValue(value: int) -> 'QFont.Tag'|None: ...
  1696. def toString(self) -> QtCore.QByteArray: ...
  1697. def value(self) -> int: ...
  1698. def isValid(self) -> bool: ...
  1699. @typing.overload
  1700. def __init__(self) -> None: ...
  1701. @typing.overload
  1702. def __init__(self, families: collections.abc.Iterable[str|None], pointSize: int = ..., weight: int = ..., italic: bool = ...) -> None: ...
  1703. @typing.overload
  1704. def __init__(self, family: str|None, pointSize: int = ..., weight: int = ..., italic: bool = ...) -> None: ...
  1705. @typing.overload
  1706. def __init__(self, a0: 'QFont') -> None: ...
  1707. @typing.overload
  1708. def __init__(self, variant: typing.Any) -> None: ...
  1709. def __ge__(self, a0: 'QFont') -> bool: ...
  1710. def variableAxisTags(self) -> list['QFont.Tag']: ...
  1711. def clearVariableAxes(self) -> None: ...
  1712. def variableAxisValue(self, tag: 'QFont.Tag') -> float: ...
  1713. def isVariableAxisSet(self, tag: 'QFont.Tag') -> bool: ...
  1714. def unsetVariableAxis(self, tag: 'QFont.Tag') -> None: ...
  1715. def setVariableAxis(self, tag: 'QFont.Tag', value: float) -> None: ...
  1716. def clearFeatures(self) -> None: ...
  1717. def featureTags(self) -> list['QFont.Tag']: ...
  1718. def isFeatureSet(self, tag: 'QFont.Tag') -> bool: ...
  1719. def featureValue(self, tag: 'QFont.Tag') -> int: ...
  1720. def unsetFeature(self, tag: 'QFont.Tag') -> None: ...
  1721. def setFeature(self, tag: 'QFont.Tag', value: int) -> None: ...
  1722. def setFamilies(self, a0: collections.abc.Iterable[str|None]) -> None: ...
  1723. def families(self) -> list[str]: ...
  1724. def __hash__(self) -> int: ...
  1725. def swap(self, other: 'QFont') -> None: ...
  1726. def hintingPreference(self) -> 'QFont.HintingPreference': ...
  1727. def setHintingPreference(self, hintingPreference: 'QFont.HintingPreference') -> None: ...
  1728. def setStyleName(self, styleName: str|None) -> None: ...
  1729. def styleName(self) -> str: ...
  1730. def capitalization(self) -> 'QFont.Capitalization': ...
  1731. def setCapitalization(self, a0: 'QFont.Capitalization') -> None: ...
  1732. def setWordSpacing(self, spacing: float) -> None: ...
  1733. def wordSpacing(self) -> float: ...
  1734. def setLetterSpacing(self, type: 'QFont.SpacingType', spacing: float) -> None: ...
  1735. def letterSpacingType(self) -> 'QFont.SpacingType': ...
  1736. def letterSpacing(self) -> float: ...
  1737. def setItalic(self, b: bool) -> None: ...
  1738. def italic(self) -> bool: ...
  1739. def setBold(self, enable: bool) -> None: ...
  1740. def bold(self) -> bool: ...
  1741. def resolve(self, a0: 'QFont') -> 'QFont': ...
  1742. def defaultFamily(self) -> str: ...
  1743. @staticmethod
  1744. def cacheStatistics() -> None: ...
  1745. @staticmethod
  1746. def cleanup() -> None: ...
  1747. @staticmethod
  1748. def initialize() -> None: ...
  1749. @staticmethod
  1750. def removeSubstitutions(a0: str|None) -> None: ...
  1751. @staticmethod
  1752. def insertSubstitutions(a0: str|None, a1: collections.abc.Iterable[str|None]) -> None: ...
  1753. @staticmethod
  1754. def insertSubstitution(a0: str|None, a1: str|None) -> None: ...
  1755. @staticmethod
  1756. def substitutions() -> list[str]: ...
  1757. @staticmethod
  1758. def substitutes(a0: str|None) -> list[str]: ...
  1759. @staticmethod
  1760. def substitute(a0: str|None) -> str: ...
  1761. def fromString(self, a0: str|None) -> bool: ...
  1762. def toString(self) -> str: ...
  1763. def key(self) -> str: ...
  1764. def isCopyOf(self, a0: 'QFont') -> bool: ...
  1765. def __lt__(self, a0: 'QFont') -> bool: ...
  1766. def __ne__(self, other: object): ...
  1767. def __eq__(self, other: object): ...
  1768. def exactMatch(self) -> bool: ...
  1769. def setStretch(self, a0: int) -> None: ...
  1770. def stretch(self) -> int: ...
  1771. def setStyleStrategy(self, s: 'QFont.StyleStrategy') -> None: ...
  1772. def setStyleHint(self, hint: 'QFont.StyleHint', strategy: 'QFont.StyleStrategy' = ...) -> None: ...
  1773. def styleStrategy(self) -> 'QFont.StyleStrategy': ...
  1774. def styleHint(self) -> 'QFont.StyleHint': ...
  1775. def setKerning(self, a0: bool) -> None: ...
  1776. def kerning(self) -> bool: ...
  1777. def setFixedPitch(self, a0: bool) -> None: ...
  1778. def fixedPitch(self) -> bool: ...
  1779. def setStrikeOut(self, a0: bool) -> None: ...
  1780. def strikeOut(self) -> bool: ...
  1781. def setOverline(self, a0: bool) -> None: ...
  1782. def overline(self) -> bool: ...
  1783. def setUnderline(self, a0: bool) -> None: ...
  1784. def underline(self) -> bool: ...
  1785. def style(self) -> 'QFont.Style': ...
  1786. def setStyle(self, style: 'QFont.Style') -> None: ...
  1787. def setWeight(self, weight: int) -> None: ...
  1788. def weight(self) -> int: ...
  1789. def setPixelSize(self, a0: int) -> None: ...
  1790. def pixelSize(self) -> int: ...
  1791. def setPointSizeF(self, a0: float) -> None: ...
  1792. def pointSizeF(self) -> float: ...
  1793. def setPointSize(self, a0: int) -> None: ...
  1794. def pointSize(self) -> int: ...
  1795. def setFamily(self, a0: str|None) -> None: ...
  1796. def family(self) -> str: ...
  1797. class QFontDatabase(PyQt6.sip.simplewrapper):
  1798. class SystemFont(enum.Enum):
  1799. GeneralFont = ... # type: QFontDatabase.SystemFont
  1800. FixedFont = ... # type: QFontDatabase.SystemFont
  1801. TitleFont = ... # type: QFontDatabase.SystemFont
  1802. SmallestReadableFont = ... # type: QFontDatabase.SystemFont
  1803. class WritingSystem(enum.Enum):
  1804. Any = ... # type: QFontDatabase.WritingSystem
  1805. Latin = ... # type: QFontDatabase.WritingSystem
  1806. Greek = ... # type: QFontDatabase.WritingSystem
  1807. Cyrillic = ... # type: QFontDatabase.WritingSystem
  1808. Armenian = ... # type: QFontDatabase.WritingSystem
  1809. Hebrew = ... # type: QFontDatabase.WritingSystem
  1810. Arabic = ... # type: QFontDatabase.WritingSystem
  1811. Syriac = ... # type: QFontDatabase.WritingSystem
  1812. Thaana = ... # type: QFontDatabase.WritingSystem
  1813. Devanagari = ... # type: QFontDatabase.WritingSystem
  1814. Bengali = ... # type: QFontDatabase.WritingSystem
  1815. Gurmukhi = ... # type: QFontDatabase.WritingSystem
  1816. Gujarati = ... # type: QFontDatabase.WritingSystem
  1817. Oriya = ... # type: QFontDatabase.WritingSystem
  1818. Tamil = ... # type: QFontDatabase.WritingSystem
  1819. Telugu = ... # type: QFontDatabase.WritingSystem
  1820. Kannada = ... # type: QFontDatabase.WritingSystem
  1821. Malayalam = ... # type: QFontDatabase.WritingSystem
  1822. Sinhala = ... # type: QFontDatabase.WritingSystem
  1823. Thai = ... # type: QFontDatabase.WritingSystem
  1824. Lao = ... # type: QFontDatabase.WritingSystem
  1825. Tibetan = ... # type: QFontDatabase.WritingSystem
  1826. Myanmar = ... # type: QFontDatabase.WritingSystem
  1827. Georgian = ... # type: QFontDatabase.WritingSystem
  1828. Khmer = ... # type: QFontDatabase.WritingSystem
  1829. SimplifiedChinese = ... # type: QFontDatabase.WritingSystem
  1830. TraditionalChinese = ... # type: QFontDatabase.WritingSystem
  1831. Japanese = ... # type: QFontDatabase.WritingSystem
  1832. Korean = ... # type: QFontDatabase.WritingSystem
  1833. Vietnamese = ... # type: QFontDatabase.WritingSystem
  1834. Other = ... # type: QFontDatabase.WritingSystem
  1835. Symbol = ... # type: QFontDatabase.WritingSystem
  1836. Ogham = ... # type: QFontDatabase.WritingSystem
  1837. Runic = ... # type: QFontDatabase.WritingSystem
  1838. Nko = ... # type: QFontDatabase.WritingSystem
  1839. def __init__(self, a0: 'QFontDatabase') -> None: ...
  1840. @staticmethod
  1841. def applicationEmojiFontFamilies() -> list[str]: ...
  1842. @staticmethod
  1843. def setApplicationEmojiFontFamilies(familyNames: collections.abc.Iterable[str|None]) -> None: ...
  1844. @staticmethod
  1845. def removeApplicationEmojiFontFamily(familyName: str|None) -> bool: ...
  1846. @staticmethod
  1847. def addApplicationEmojiFontFamily(familyName: str|None) -> None: ...
  1848. @staticmethod
  1849. def applicationFallbackFontFamilies(script: QtCore.QChar.Script) -> list[str]: ...
  1850. @staticmethod
  1851. def setApplicationFallbackFontFamilies(a0: QtCore.QChar.Script, familyNames: collections.abc.Iterable[str|None]) -> None: ...
  1852. @staticmethod
  1853. def removeApplicationFallbackFontFamily(script: QtCore.QChar.Script, familyName: str|None) -> bool: ...
  1854. @staticmethod
  1855. def addApplicationFallbackFontFamily(script: QtCore.QChar.Script, familyName: str|None) -> None: ...
  1856. @staticmethod
  1857. def isPrivateFamily(family: str|None) -> bool: ...
  1858. @staticmethod
  1859. def systemFont(type: 'QFontDatabase.SystemFont') -> QFont: ...
  1860. @staticmethod
  1861. def removeAllApplicationFonts() -> bool: ...
  1862. @staticmethod
  1863. def removeApplicationFont(id: int) -> bool: ...
  1864. @staticmethod
  1865. def applicationFontFamilies(id: int) -> list[str]: ...
  1866. @staticmethod
  1867. def addApplicationFontFromData(fontData: QtCore.QByteArray|bytes|bytearray|memoryview) -> int: ...
  1868. @staticmethod
  1869. def addApplicationFont(fileName: str|None) -> int: ...
  1870. @staticmethod
  1871. def writingSystemSample(writingSystem: 'QFontDatabase.WritingSystem') -> str: ...
  1872. @staticmethod
  1873. def writingSystemName(writingSystem: 'QFontDatabase.WritingSystem') -> str: ...
  1874. @staticmethod
  1875. def weight(family: str|None, style: str|None) -> int: ...
  1876. @staticmethod
  1877. def bold(family: str|None, style: str|None) -> bool: ...
  1878. @staticmethod
  1879. def italic(family: str|None, style: str|None) -> bool: ...
  1880. @staticmethod
  1881. def isFixedPitch(family: str|None, style: str|None = ...) -> bool: ...
  1882. @staticmethod
  1883. def isScalable(family: str|None, style: str|None = ...) -> bool: ...
  1884. @staticmethod
  1885. def isSmoothlyScalable(family: str|None, style: str|None = ...) -> bool: ...
  1886. @staticmethod
  1887. def isBitmapScalable(family: str|None, style: str|None = ...) -> bool: ...
  1888. @staticmethod
  1889. def font(family: str|None, style: str|None, pointSize: int) -> QFont: ...
  1890. @typing.overload
  1891. @staticmethod
  1892. def styleString(fontInfo: 'QFontInfo') -> str: ...
  1893. @typing.overload
  1894. @staticmethod
  1895. def styleString(font: QFont) -> str: ...
  1896. @staticmethod
  1897. def smoothSizes(family: str|None, style: str|None) -> list[int]: ...
  1898. @staticmethod
  1899. def pointSizes(family: str|None, style: str|None = ...) -> list[int]: ...
  1900. @staticmethod
  1901. def styles(family: str|None) -> list[str]: ...
  1902. @staticmethod
  1903. def families(writingSystem: 'QFontDatabase.WritingSystem' = ...) -> list[str]: ...
  1904. @typing.overload
  1905. @staticmethod
  1906. def writingSystems(family: str|None) -> list['QFontDatabase.WritingSystem']: ...
  1907. @typing.overload
  1908. @staticmethod
  1909. def writingSystems() -> list['QFontDatabase.WritingSystem']: ...
  1910. @staticmethod
  1911. def standardSizes() -> list[int]: ...
  1912. class QFontInfo(PyQt6.sip.simplewrapper):
  1913. @typing.overload
  1914. def __init__(self, a0: QFont) -> None: ...
  1915. @typing.overload
  1916. def __init__(self, a0: 'QFontInfo') -> None: ...
  1917. def variableAxes(self) -> list['QFontVariableAxis']: ...
  1918. def swap(self, other: 'QFontInfo') -> None: ...
  1919. def styleName(self) -> str: ...
  1920. def exactMatch(self) -> bool: ...
  1921. def styleHint(self) -> QFont.StyleHint: ...
  1922. def fixedPitch(self) -> bool: ...
  1923. def bold(self) -> bool: ...
  1924. def weight(self) -> int: ...
  1925. def style(self) -> QFont.Style: ...
  1926. def italic(self) -> bool: ...
  1927. def pointSizeF(self) -> float: ...
  1928. def pointSize(self) -> int: ...
  1929. def pixelSize(self) -> int: ...
  1930. def family(self) -> str: ...
  1931. class QFontMetrics(PyQt6.sip.simplewrapper):
  1932. @typing.overload
  1933. def __init__(self, a0: QFont) -> None: ...
  1934. @typing.overload
  1935. def __init__(self, font: QFont, pd: QPaintDevice|None) -> None: ...
  1936. @typing.overload
  1937. def __init__(self, a0: 'QFontMetrics') -> None: ...
  1938. def fontDpi(self) -> float: ...
  1939. @typing.overload
  1940. def horizontalAdvance(self, a0: str|None, textOption: 'QTextOption') -> int: ...
  1941. @typing.overload
  1942. def horizontalAdvance(self, a0: str|None, length: int = ...) -> int: ...
  1943. def capHeight(self) -> int: ...
  1944. def swap(self, other: 'QFontMetrics') -> None: ...
  1945. def inFontUcs4(self, character: int) -> bool: ...
  1946. @typing.overload
  1947. def tightBoundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRect: ...
  1948. @typing.overload
  1949. def tightBoundingRect(self, text: str|None) -> QtCore.QRect: ...
  1950. def __ne__(self, other: object): ...
  1951. def __eq__(self, other: object): ...
  1952. def elidedText(self, text: str|None, mode: QtCore.Qt.TextElideMode, width: int, flags: int = ...) -> str: ...
  1953. def averageCharWidth(self) -> int: ...
  1954. def lineWidth(self) -> int: ...
  1955. def strikeOutPos(self) -> int: ...
  1956. def overlinePos(self) -> int: ...
  1957. def underlinePos(self) -> int: ...
  1958. def size(self, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QSize: ...
  1959. def boundingRectChar(self, a0: str) -> QtCore.QRect: ...
  1960. @typing.overload
  1961. def boundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRect: ...
  1962. @typing.overload
  1963. def boundingRect(self, text: str|None) -> QtCore.QRect: ...
  1964. @typing.overload
  1965. def boundingRect(self, rect: QtCore.QRect, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRect: ...
  1966. @typing.overload
  1967. def boundingRect(self, x: int, y: int, width: int, height: int, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRect: ...
  1968. def rightBearing(self, a0: str) -> int: ...
  1969. def leftBearing(self, a0: str) -> int: ...
  1970. def inFont(self, a0: str) -> bool: ...
  1971. def xHeight(self) -> int: ...
  1972. def maxWidth(self) -> int: ...
  1973. def minRightBearing(self) -> int: ...
  1974. def minLeftBearing(self) -> int: ...
  1975. def lineSpacing(self) -> int: ...
  1976. def leading(self) -> int: ...
  1977. def height(self) -> int: ...
  1978. def descent(self) -> int: ...
  1979. def ascent(self) -> int: ...
  1980. class QFontMetricsF(PyQt6.sip.simplewrapper):
  1981. @typing.overload
  1982. def __init__(self, a0: QFont) -> None: ...
  1983. @typing.overload
  1984. def __init__(self, font: QFont, pd: QPaintDevice|None) -> None: ...
  1985. @typing.overload
  1986. def __init__(self, a0: QFontMetrics) -> None: ...
  1987. @typing.overload
  1988. def __init__(self, a0: 'QFontMetricsF') -> None: ...
  1989. def fontDpi(self) -> float: ...
  1990. @typing.overload
  1991. def horizontalAdvance(self, string: str|None, textOption: 'QTextOption') -> float: ...
  1992. @typing.overload
  1993. def horizontalAdvance(self, string: str|None, length: int = ...) -> float: ...
  1994. def capHeight(self) -> float: ...
  1995. def swap(self, other: 'QFontMetricsF') -> None: ...
  1996. def inFontUcs4(self, character: int) -> bool: ...
  1997. @typing.overload
  1998. def tightBoundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRectF: ...
  1999. @typing.overload
  2000. def tightBoundingRect(self, text: str|None) -> QtCore.QRectF: ...
  2001. def __ne__(self, other: object): ...
  2002. def __eq__(self, other: object): ...
  2003. def elidedText(self, text: str|None, mode: QtCore.Qt.TextElideMode, width: float, flags: int = ...) -> str: ...
  2004. def averageCharWidth(self) -> float: ...
  2005. def lineWidth(self) -> float: ...
  2006. def strikeOutPos(self) -> float: ...
  2007. def overlinePos(self) -> float: ...
  2008. def underlinePos(self) -> float: ...
  2009. def size(self, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QSizeF: ...
  2010. def boundingRectChar(self, a0: str) -> QtCore.QRectF: ...
  2011. @typing.overload
  2012. def boundingRect(self, text: str|None, textOption: 'QTextOption') -> QtCore.QRectF: ...
  2013. @typing.overload
  2014. def boundingRect(self, string: str|None) -> QtCore.QRectF: ...
  2015. @typing.overload
  2016. def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str|None, tabStops: int = ..., tabArray: list[int]|None = ...) -> QtCore.QRectF: ...
  2017. def rightBearing(self, a0: str) -> float: ...
  2018. def leftBearing(self, a0: str) -> float: ...
  2019. def inFont(self, a0: str) -> bool: ...
  2020. def xHeight(self) -> float: ...
  2021. def maxWidth(self) -> float: ...
  2022. def minRightBearing(self) -> float: ...
  2023. def minLeftBearing(self) -> float: ...
  2024. def lineSpacing(self) -> float: ...
  2025. def leading(self) -> float: ...
  2026. def height(self) -> float: ...
  2027. def descent(self) -> float: ...
  2028. def ascent(self) -> float: ...
  2029. class QFontVariableAxis(PyQt6.sip.simplewrapper):
  2030. @typing.overload
  2031. def __init__(self) -> None: ...
  2032. @typing.overload
  2033. def __init__(self, axis: 'QFontVariableAxis') -> None: ...
  2034. def setDefaultValue(self, defaultValue: float) -> None: ...
  2035. def defaultValue(self) -> float: ...
  2036. def setMaximumValue(self, maximumValue: float) -> None: ...
  2037. def maximumValue(self) -> float: ...
  2038. def setMinimumValue(self, minimumValue: float) -> None: ...
  2039. def minimumValue(self) -> float: ...
  2040. def setName(self, name: str|None) -> None: ...
  2041. def name(self) -> str: ...
  2042. def setTag(self, tag: QFont.Tag) -> None: ...
  2043. def tag(self) -> QFont.Tag: ...
  2044. def swap(self, other: 'QFontVariableAxis') -> None: ...
  2045. class QMatrix4x3(PyQt6.sip.simplewrapper):
  2046. @typing.overload
  2047. def __init__(self) -> None: ...
  2048. @typing.overload
  2049. def __init__(self, other: 'QMatrix4x3') -> None: ...
  2050. @typing.overload
  2051. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2052. def __ne__(self, other: object): ...
  2053. def __eq__(self, other: object): ...
  2054. def __itruediv__(self, a0: float) -> 'QMatrix4x3': ...
  2055. def __imul__(self, a0: float) -> 'QMatrix4x3': ...
  2056. def __isub__(self, a0: 'QMatrix4x3') -> 'QMatrix4x3': ...
  2057. def __iadd__(self, a0: 'QMatrix4x3') -> 'QMatrix4x3': ...
  2058. def transposed(self) -> 'QMatrix3x4': ...
  2059. def fill(self, value: float) -> None: ...
  2060. def setToIdentity(self) -> None: ...
  2061. def isIdentity(self) -> bool: ...
  2062. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2063. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2064. def copyDataTo(self) -> list[float]: ...
  2065. def data(self) -> list[float]: ...
  2066. def __repr__(self) -> str: ...
  2067. class QMatrix4x2(PyQt6.sip.simplewrapper):
  2068. @typing.overload
  2069. def __init__(self) -> None: ...
  2070. @typing.overload
  2071. def __init__(self, other: 'QMatrix4x2') -> None: ...
  2072. @typing.overload
  2073. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2074. def __ne__(self, other: object): ...
  2075. def __eq__(self, other: object): ...
  2076. def __itruediv__(self, a0: float) -> 'QMatrix4x2': ...
  2077. def __imul__(self, a0: float) -> 'QMatrix4x2': ...
  2078. def __isub__(self, a0: 'QMatrix4x2') -> 'QMatrix4x2': ...
  2079. def __iadd__(self, a0: 'QMatrix4x2') -> 'QMatrix4x2': ...
  2080. def transposed(self) -> 'QMatrix2x4': ...
  2081. def fill(self, value: float) -> None: ...
  2082. def setToIdentity(self) -> None: ...
  2083. def isIdentity(self) -> bool: ...
  2084. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2085. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2086. def copyDataTo(self) -> list[float]: ...
  2087. def data(self) -> list[float]: ...
  2088. def __repr__(self) -> str: ...
  2089. class QMatrix3x4(PyQt6.sip.simplewrapper):
  2090. @typing.overload
  2091. def __init__(self) -> None: ...
  2092. @typing.overload
  2093. def __init__(self, other: 'QMatrix3x4') -> None: ...
  2094. @typing.overload
  2095. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2096. def __ne__(self, other: object): ...
  2097. def __eq__(self, other: object): ...
  2098. def __itruediv__(self, a0: float) -> 'QMatrix3x4': ...
  2099. def __imul__(self, a0: float) -> 'QMatrix3x4': ...
  2100. def __isub__(self, a0: 'QMatrix3x4') -> 'QMatrix3x4': ...
  2101. def __iadd__(self, a0: 'QMatrix3x4') -> 'QMatrix3x4': ...
  2102. def transposed(self) -> QMatrix4x3: ...
  2103. def fill(self, value: float) -> None: ...
  2104. def setToIdentity(self) -> None: ...
  2105. def isIdentity(self) -> bool: ...
  2106. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2107. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2108. def copyDataTo(self) -> list[float]: ...
  2109. def data(self) -> list[float]: ...
  2110. def __repr__(self) -> str: ...
  2111. class QMatrix3x3(PyQt6.sip.simplewrapper):
  2112. @typing.overload
  2113. def __init__(self) -> None: ...
  2114. @typing.overload
  2115. def __init__(self, other: 'QMatrix3x3') -> None: ...
  2116. @typing.overload
  2117. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2118. def __ne__(self, other: object): ...
  2119. def __eq__(self, other: object): ...
  2120. def __itruediv__(self, a0: float) -> 'QMatrix3x3': ...
  2121. def __imul__(self, a0: float) -> 'QMatrix3x3': ...
  2122. def __isub__(self, a0: 'QMatrix3x3') -> 'QMatrix3x3': ...
  2123. def __iadd__(self, a0: 'QMatrix3x3') -> 'QMatrix3x3': ...
  2124. def transposed(self) -> 'QMatrix3x3': ...
  2125. def fill(self, value: float) -> None: ...
  2126. def setToIdentity(self) -> None: ...
  2127. def isIdentity(self) -> bool: ...
  2128. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2129. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2130. def copyDataTo(self) -> list[float]: ...
  2131. def data(self) -> list[float]: ...
  2132. def __repr__(self) -> str: ...
  2133. class QMatrix3x2(PyQt6.sip.simplewrapper):
  2134. @typing.overload
  2135. def __init__(self) -> None: ...
  2136. @typing.overload
  2137. def __init__(self, other: 'QMatrix3x2') -> None: ...
  2138. @typing.overload
  2139. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2140. def __ne__(self, other: object): ...
  2141. def __eq__(self, other: object): ...
  2142. def __itruediv__(self, a0: float) -> 'QMatrix3x2': ...
  2143. def __imul__(self, a0: float) -> 'QMatrix3x2': ...
  2144. def __isub__(self, a0: 'QMatrix3x2') -> 'QMatrix3x2': ...
  2145. def __iadd__(self, a0: 'QMatrix3x2') -> 'QMatrix3x2': ...
  2146. def transposed(self) -> 'QMatrix2x3': ...
  2147. def fill(self, value: float) -> None: ...
  2148. def setToIdentity(self) -> None: ...
  2149. def isIdentity(self) -> bool: ...
  2150. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2151. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2152. def copyDataTo(self) -> list[float]: ...
  2153. def data(self) -> list[float]: ...
  2154. def __repr__(self) -> str: ...
  2155. class QMatrix2x4(PyQt6.sip.simplewrapper):
  2156. @typing.overload
  2157. def __init__(self) -> None: ...
  2158. @typing.overload
  2159. def __init__(self, other: 'QMatrix2x4') -> None: ...
  2160. @typing.overload
  2161. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2162. def __ne__(self, other: object): ...
  2163. def __eq__(self, other: object): ...
  2164. def __itruediv__(self, a0: float) -> 'QMatrix2x4': ...
  2165. def __imul__(self, a0: float) -> 'QMatrix2x4': ...
  2166. def __isub__(self, a0: 'QMatrix2x4') -> 'QMatrix2x4': ...
  2167. def __iadd__(self, a0: 'QMatrix2x4') -> 'QMatrix2x4': ...
  2168. def transposed(self) -> QMatrix4x2: ...
  2169. def fill(self, value: float) -> None: ...
  2170. def setToIdentity(self) -> None: ...
  2171. def isIdentity(self) -> bool: ...
  2172. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2173. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2174. def copyDataTo(self) -> list[float]: ...
  2175. def data(self) -> list[float]: ...
  2176. def __repr__(self) -> str: ...
  2177. class QMatrix2x3(PyQt6.sip.simplewrapper):
  2178. @typing.overload
  2179. def __init__(self) -> None: ...
  2180. @typing.overload
  2181. def __init__(self, other: 'QMatrix2x3') -> None: ...
  2182. @typing.overload
  2183. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2184. def __ne__(self, other: object): ...
  2185. def __eq__(self, other: object): ...
  2186. def __itruediv__(self, a0: float) -> 'QMatrix2x3': ...
  2187. def __imul__(self, a0: float) -> 'QMatrix2x3': ...
  2188. def __isub__(self, a0: 'QMatrix2x3') -> 'QMatrix2x3': ...
  2189. def __iadd__(self, a0: 'QMatrix2x3') -> 'QMatrix2x3': ...
  2190. def transposed(self) -> QMatrix3x2: ...
  2191. def fill(self, value: float) -> None: ...
  2192. def setToIdentity(self) -> None: ...
  2193. def isIdentity(self) -> bool: ...
  2194. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2195. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2196. def copyDataTo(self) -> list[float]: ...
  2197. def data(self) -> list[float]: ...
  2198. def __repr__(self) -> str: ...
  2199. class QMatrix2x2(PyQt6.sip.simplewrapper):
  2200. @typing.overload
  2201. def __init__(self) -> None: ...
  2202. @typing.overload
  2203. def __init__(self, other: 'QMatrix2x2') -> None: ...
  2204. @typing.overload
  2205. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  2206. def __ne__(self, other: object): ...
  2207. def __eq__(self, other: object): ...
  2208. def __itruediv__(self, a0: float) -> 'QMatrix2x2': ...
  2209. def __imul__(self, a0: float) -> 'QMatrix2x2': ...
  2210. def __isub__(self, a0: 'QMatrix2x2') -> 'QMatrix2x2': ...
  2211. def __iadd__(self, a0: 'QMatrix2x2') -> 'QMatrix2x2': ...
  2212. def transposed(self) -> 'QMatrix2x2': ...
  2213. def fill(self, value: float) -> None: ...
  2214. def setToIdentity(self) -> None: ...
  2215. def isIdentity(self) -> bool: ...
  2216. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  2217. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  2218. def copyDataTo(self) -> list[float]: ...
  2219. def data(self) -> list[float]: ...
  2220. def __repr__(self) -> str: ...
  2221. class QGlyphRun(PyQt6.sip.simplewrapper):
  2222. class GlyphRunFlag(enum.Flag):
  2223. Overline = ... # type: QGlyphRun.GlyphRunFlag
  2224. Underline = ... # type: QGlyphRun.GlyphRunFlag
  2225. StrikeOut = ... # type: QGlyphRun.GlyphRunFlag
  2226. RightToLeft = ... # type: QGlyphRun.GlyphRunFlag
  2227. SplitLigature = ... # type: QGlyphRun.GlyphRunFlag
  2228. @typing.overload
  2229. def __init__(self) -> None: ...
  2230. @typing.overload
  2231. def __init__(self, other: 'QGlyphRun') -> None: ...
  2232. def sourceString(self) -> str: ...
  2233. def setSourceString(self, sourceString: str|None) -> None: ...
  2234. def setStringIndexes(self, stringIndexes: collections.abc.Iterable[int]) -> None: ...
  2235. def stringIndexes(self) -> list[int]: ...
  2236. def swap(self, other: 'QGlyphRun') -> None: ...
  2237. def isEmpty(self) -> bool: ...
  2238. def boundingRect(self) -> QtCore.QRectF: ...
  2239. def setBoundingRect(self, boundingRect: QtCore.QRectF) -> None: ...
  2240. def flags(self) -> 'QGlyphRun.GlyphRunFlag': ...
  2241. def setFlags(self, flags: 'QGlyphRun.GlyphRunFlag') -> None: ...
  2242. def setFlag(self, flag: 'QGlyphRun.GlyphRunFlag', enabled: bool = ...) -> None: ...
  2243. def isRightToLeft(self) -> bool: ...
  2244. def setRightToLeft(self, on: bool) -> None: ...
  2245. def strikeOut(self) -> bool: ...
  2246. def setStrikeOut(self, strikeOut: bool) -> None: ...
  2247. def underline(self) -> bool: ...
  2248. def setUnderline(self, underline: bool) -> None: ...
  2249. def overline(self) -> bool: ...
  2250. def setOverline(self, overline: bool) -> None: ...
  2251. def __ne__(self, other: object): ...
  2252. def __eq__(self, other: object): ...
  2253. def clear(self) -> None: ...
  2254. def setPositions(self, positions: collections.abc.Iterable[QtCore.QPointF]) -> None: ...
  2255. def positions(self) -> list[QtCore.QPointF]: ...
  2256. def setGlyphIndexes(self, glyphIndexes: collections.abc.Iterable[int]) -> None: ...
  2257. def glyphIndexes(self) -> list[int]: ...
  2258. def setRawFont(self, rawFont: 'QRawFont') -> None: ...
  2259. def rawFont(self) -> 'QRawFont': ...
  2260. class QGuiApplication(QtCore.QCoreApplication):
  2261. def __init__(self, argv: list[str]) -> None: ...
  2262. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  2263. def nativeInterface(self, platform: type) -> typing.Any: ...
  2264. def setBadgeNumber(self, number: int) -> None: ...
  2265. @staticmethod
  2266. def highDpiScaleFactorRoundingPolicy() -> QtCore.Qt.HighDpiScaleFactorRoundingPolicy: ...
  2267. @staticmethod
  2268. def setHighDpiScaleFactorRoundingPolicy(policy: QtCore.Qt.HighDpiScaleFactorRoundingPolicy) -> None: ...
  2269. @staticmethod
  2270. def screenAt(point: QtCore.QPoint) -> 'QScreen|None': ...
  2271. @staticmethod
  2272. def desktopFileName() -> str: ...
  2273. @staticmethod
  2274. def setDesktopFileName(name: str|None) -> None: ...
  2275. primaryScreenChanged: typing.ClassVar[QtCore.pyqtSignal]
  2276. layoutDirectionChanged: typing.ClassVar[QtCore.pyqtSignal]
  2277. screenRemoved: typing.ClassVar[QtCore.pyqtSignal]
  2278. @staticmethod
  2279. def windowIcon() -> 'QIcon': ...
  2280. @staticmethod
  2281. def setWindowIcon(icon: 'QIcon') -> None: ...
  2282. @staticmethod
  2283. def sync() -> None: ...
  2284. @staticmethod
  2285. def applicationState() -> QtCore.Qt.ApplicationState: ...
  2286. def isSavingSession(self) -> bool: ...
  2287. def sessionKey(self) -> str: ...
  2288. def sessionId(self) -> str: ...
  2289. def isSessionRestored(self) -> bool: ...
  2290. def devicePixelRatio(self) -> float: ...
  2291. @staticmethod
  2292. def inputMethod() -> 'QInputMethod|None': ...
  2293. @staticmethod
  2294. def styleHints() -> 'QStyleHints|None': ...
  2295. @staticmethod
  2296. def modalWindow() -> 'QWindow|None': ...
  2297. @staticmethod
  2298. def applicationDisplayName() -> str: ...
  2299. @staticmethod
  2300. def setApplicationDisplayName(name: str|None) -> None: ...
  2301. applicationDisplayNameChanged: typing.ClassVar[QtCore.pyqtSignal]
  2302. applicationStateChanged: typing.ClassVar[QtCore.pyqtSignal]
  2303. focusWindowChanged: typing.ClassVar[QtCore.pyqtSignal]
  2304. saveStateRequest: typing.ClassVar[QtCore.pyqtSignal]
  2305. commitDataRequest: typing.ClassVar[QtCore.pyqtSignal]
  2306. focusObjectChanged: typing.ClassVar[QtCore.pyqtSignal]
  2307. lastWindowClosed: typing.ClassVar[QtCore.pyqtSignal]
  2308. screenAdded: typing.ClassVar[QtCore.pyqtSignal]
  2309. fontDatabaseChanged: typing.ClassVar[QtCore.pyqtSignal]
  2310. def notify(self, a0: QtCore.QObject|None, a1: QtCore.QEvent|None) -> bool: ...
  2311. @staticmethod
  2312. def exec() -> int: ...
  2313. @staticmethod
  2314. def quitOnLastWindowClosed() -> bool: ...
  2315. @staticmethod
  2316. def setQuitOnLastWindowClosed(quit: bool) -> None: ...
  2317. @staticmethod
  2318. def desktopSettingsAware() -> bool: ...
  2319. @staticmethod
  2320. def setDesktopSettingsAware(on: bool) -> None: ...
  2321. @staticmethod
  2322. def isLeftToRight() -> bool: ...
  2323. @staticmethod
  2324. def isRightToLeft() -> bool: ...
  2325. @staticmethod
  2326. def layoutDirection() -> QtCore.Qt.LayoutDirection: ...
  2327. @staticmethod
  2328. def setLayoutDirection(direction: QtCore.Qt.LayoutDirection) -> None: ...
  2329. @staticmethod
  2330. def mouseButtons() -> QtCore.Qt.MouseButton: ...
  2331. @staticmethod
  2332. def queryKeyboardModifiers() -> QtCore.Qt.KeyboardModifier: ...
  2333. @staticmethod
  2334. def keyboardModifiers() -> QtCore.Qt.KeyboardModifier: ...
  2335. @staticmethod
  2336. def setPalette(pal: 'QPalette') -> None: ...
  2337. @staticmethod
  2338. def palette() -> 'QPalette': ...
  2339. @staticmethod
  2340. def clipboard() -> QClipboard|None: ...
  2341. @staticmethod
  2342. def setFont(a0: QFont) -> None: ...
  2343. @staticmethod
  2344. def font() -> QFont: ...
  2345. @staticmethod
  2346. def restoreOverrideCursor() -> None: ...
  2347. @staticmethod
  2348. def changeOverrideCursor(a0: QCursor|QtCore.Qt.CursorShape) -> None: ...
  2349. @staticmethod
  2350. def setOverrideCursor(a0: QCursor|QtCore.Qt.CursorShape) -> None: ...
  2351. @staticmethod
  2352. def overrideCursor() -> QCursor|None: ...
  2353. @staticmethod
  2354. def screens() -> list['QScreen']: ...
  2355. @staticmethod
  2356. def primaryScreen() -> 'QScreen|None': ...
  2357. @staticmethod
  2358. def focusObject() -> QtCore.QObject|None: ...
  2359. @staticmethod
  2360. def focusWindow() -> 'QWindow|None': ...
  2361. @staticmethod
  2362. def platformName() -> str: ...
  2363. @staticmethod
  2364. def topLevelAt(pos: QtCore.QPoint) -> 'QWindow|None': ...
  2365. @staticmethod
  2366. def topLevelWindows() -> list['QWindow']: ...
  2367. @staticmethod
  2368. def allWindows() -> list['QWindow']: ...
  2369. class QIcon(PyQt6.sip.wrapper):
  2370. class ThemeIcon(enum.Enum):
  2371. AddressBookNew = ... # type: QIcon.ThemeIcon
  2372. ApplicationExit = ... # type: QIcon.ThemeIcon
  2373. AppointmentNew = ... # type: QIcon.ThemeIcon
  2374. CallStart = ... # type: QIcon.ThemeIcon
  2375. CallStop = ... # type: QIcon.ThemeIcon
  2376. ContactNew = ... # type: QIcon.ThemeIcon
  2377. DocumentNew = ... # type: QIcon.ThemeIcon
  2378. DocumentOpen = ... # type: QIcon.ThemeIcon
  2379. DocumentOpenRecent = ... # type: QIcon.ThemeIcon
  2380. DocumentPageSetup = ... # type: QIcon.ThemeIcon
  2381. DocumentPrint = ... # type: QIcon.ThemeIcon
  2382. DocumentPrintPreview = ... # type: QIcon.ThemeIcon
  2383. DocumentProperties = ... # type: QIcon.ThemeIcon
  2384. DocumentRevert = ... # type: QIcon.ThemeIcon
  2385. DocumentSave = ... # type: QIcon.ThemeIcon
  2386. DocumentSaveAs = ... # type: QIcon.ThemeIcon
  2387. DocumentSend = ... # type: QIcon.ThemeIcon
  2388. EditClear = ... # type: QIcon.ThemeIcon
  2389. EditCopy = ... # type: QIcon.ThemeIcon
  2390. EditCut = ... # type: QIcon.ThemeIcon
  2391. EditDelete = ... # type: QIcon.ThemeIcon
  2392. EditFind = ... # type: QIcon.ThemeIcon
  2393. EditPaste = ... # type: QIcon.ThemeIcon
  2394. EditRedo = ... # type: QIcon.ThemeIcon
  2395. EditSelectAll = ... # type: QIcon.ThemeIcon
  2396. EditUndo = ... # type: QIcon.ThemeIcon
  2397. FolderNew = ... # type: QIcon.ThemeIcon
  2398. FormatIndentLess = ... # type: QIcon.ThemeIcon
  2399. FormatIndentMore = ... # type: QIcon.ThemeIcon
  2400. FormatJustifyCenter = ... # type: QIcon.ThemeIcon
  2401. FormatJustifyFill = ... # type: QIcon.ThemeIcon
  2402. FormatJustifyLeft = ... # type: QIcon.ThemeIcon
  2403. FormatJustifyRight = ... # type: QIcon.ThemeIcon
  2404. FormatTextDirectionLtr = ... # type: QIcon.ThemeIcon
  2405. FormatTextDirectionRtl = ... # type: QIcon.ThemeIcon
  2406. FormatTextBold = ... # type: QIcon.ThemeIcon
  2407. FormatTextItalic = ... # type: QIcon.ThemeIcon
  2408. FormatTextUnderline = ... # type: QIcon.ThemeIcon
  2409. FormatTextStrikethrough = ... # type: QIcon.ThemeIcon
  2410. GoDown = ... # type: QIcon.ThemeIcon
  2411. GoHome = ... # type: QIcon.ThemeIcon
  2412. GoNext = ... # type: QIcon.ThemeIcon
  2413. GoPrevious = ... # type: QIcon.ThemeIcon
  2414. GoUp = ... # type: QIcon.ThemeIcon
  2415. HelpAbout = ... # type: QIcon.ThemeIcon
  2416. HelpFaq = ... # type: QIcon.ThemeIcon
  2417. InsertImage = ... # type: QIcon.ThemeIcon
  2418. InsertLink = ... # type: QIcon.ThemeIcon
  2419. InsertText = ... # type: QIcon.ThemeIcon
  2420. ListAdd = ... # type: QIcon.ThemeIcon
  2421. ListRemove = ... # type: QIcon.ThemeIcon
  2422. MailForward = ... # type: QIcon.ThemeIcon
  2423. MailMarkImportant = ... # type: QIcon.ThemeIcon
  2424. MailMarkRead = ... # type: QIcon.ThemeIcon
  2425. MailMarkUnread = ... # type: QIcon.ThemeIcon
  2426. MailMessageNew = ... # type: QIcon.ThemeIcon
  2427. MailReplyAll = ... # type: QIcon.ThemeIcon
  2428. MailReplySender = ... # type: QIcon.ThemeIcon
  2429. MailSend = ... # type: QIcon.ThemeIcon
  2430. MediaEject = ... # type: QIcon.ThemeIcon
  2431. MediaPlaybackPause = ... # type: QIcon.ThemeIcon
  2432. MediaPlaybackStart = ... # type: QIcon.ThemeIcon
  2433. MediaPlaybackStop = ... # type: QIcon.ThemeIcon
  2434. MediaRecord = ... # type: QIcon.ThemeIcon
  2435. MediaSeekBackward = ... # type: QIcon.ThemeIcon
  2436. MediaSeekForward = ... # type: QIcon.ThemeIcon
  2437. MediaSkipBackward = ... # type: QIcon.ThemeIcon
  2438. MediaSkipForward = ... # type: QIcon.ThemeIcon
  2439. ObjectRotateLeft = ... # type: QIcon.ThemeIcon
  2440. ObjectRotateRight = ... # type: QIcon.ThemeIcon
  2441. ProcessStop = ... # type: QIcon.ThemeIcon
  2442. SystemLockScreen = ... # type: QIcon.ThemeIcon
  2443. SystemLogOut = ... # type: QIcon.ThemeIcon
  2444. SystemSearch = ... # type: QIcon.ThemeIcon
  2445. SystemReboot = ... # type: QIcon.ThemeIcon
  2446. SystemShutdown = ... # type: QIcon.ThemeIcon
  2447. ToolsCheckSpelling = ... # type: QIcon.ThemeIcon
  2448. ViewFullscreen = ... # type: QIcon.ThemeIcon
  2449. ViewRefresh = ... # type: QIcon.ThemeIcon
  2450. ViewRestore = ... # type: QIcon.ThemeIcon
  2451. WindowClose = ... # type: QIcon.ThemeIcon
  2452. WindowNew = ... # type: QIcon.ThemeIcon
  2453. ZoomFitBest = ... # type: QIcon.ThemeIcon
  2454. ZoomIn = ... # type: QIcon.ThemeIcon
  2455. ZoomOut = ... # type: QIcon.ThemeIcon
  2456. AudioCard = ... # type: QIcon.ThemeIcon
  2457. AudioInputMicrophone = ... # type: QIcon.ThemeIcon
  2458. Battery = ... # type: QIcon.ThemeIcon
  2459. CameraPhoto = ... # type: QIcon.ThemeIcon
  2460. CameraVideo = ... # type: QIcon.ThemeIcon
  2461. CameraWeb = ... # type: QIcon.ThemeIcon
  2462. Computer = ... # type: QIcon.ThemeIcon
  2463. DriveHarddisk = ... # type: QIcon.ThemeIcon
  2464. DriveOptical = ... # type: QIcon.ThemeIcon
  2465. InputGaming = ... # type: QIcon.ThemeIcon
  2466. InputKeyboard = ... # type: QIcon.ThemeIcon
  2467. InputMouse = ... # type: QIcon.ThemeIcon
  2468. InputTablet = ... # type: QIcon.ThemeIcon
  2469. MediaFlash = ... # type: QIcon.ThemeIcon
  2470. MediaOptical = ... # type: QIcon.ThemeIcon
  2471. MediaTape = ... # type: QIcon.ThemeIcon
  2472. MultimediaPlayer = ... # type: QIcon.ThemeIcon
  2473. NetworkWired = ... # type: QIcon.ThemeIcon
  2474. NetworkWireless = ... # type: QIcon.ThemeIcon
  2475. Phone = ... # type: QIcon.ThemeIcon
  2476. Printer = ... # type: QIcon.ThemeIcon
  2477. Scanner = ... # type: QIcon.ThemeIcon
  2478. VideoDisplay = ... # type: QIcon.ThemeIcon
  2479. AppointmentMissed = ... # type: QIcon.ThemeIcon
  2480. AppointmentSoon = ... # type: QIcon.ThemeIcon
  2481. AudioVolumeHigh = ... # type: QIcon.ThemeIcon
  2482. AudioVolumeLow = ... # type: QIcon.ThemeIcon
  2483. AudioVolumeMedium = ... # type: QIcon.ThemeIcon
  2484. AudioVolumeMuted = ... # type: QIcon.ThemeIcon
  2485. BatteryCaution = ... # type: QIcon.ThemeIcon
  2486. BatteryLow = ... # type: QIcon.ThemeIcon
  2487. DialogError = ... # type: QIcon.ThemeIcon
  2488. DialogInformation = ... # type: QIcon.ThemeIcon
  2489. DialogPassword = ... # type: QIcon.ThemeIcon
  2490. DialogQuestion = ... # type: QIcon.ThemeIcon
  2491. DialogWarning = ... # type: QIcon.ThemeIcon
  2492. FolderDragAccept = ... # type: QIcon.ThemeIcon
  2493. FolderOpen = ... # type: QIcon.ThemeIcon
  2494. FolderVisiting = ... # type: QIcon.ThemeIcon
  2495. ImageLoading = ... # type: QIcon.ThemeIcon
  2496. ImageMissing = ... # type: QIcon.ThemeIcon
  2497. MailAttachment = ... # type: QIcon.ThemeIcon
  2498. MailUnread = ... # type: QIcon.ThemeIcon
  2499. MailRead = ... # type: QIcon.ThemeIcon
  2500. MailReplied = ... # type: QIcon.ThemeIcon
  2501. MediaPlaylistRepeat = ... # type: QIcon.ThemeIcon
  2502. MediaPlaylistShuffle = ... # type: QIcon.ThemeIcon
  2503. NetworkOffline = ... # type: QIcon.ThemeIcon
  2504. PrinterPrinting = ... # type: QIcon.ThemeIcon
  2505. SecurityHigh = ... # type: QIcon.ThemeIcon
  2506. SecurityLow = ... # type: QIcon.ThemeIcon
  2507. SoftwareUpdateAvailable = ... # type: QIcon.ThemeIcon
  2508. SoftwareUpdateUrgent = ... # type: QIcon.ThemeIcon
  2509. SyncError = ... # type: QIcon.ThemeIcon
  2510. SyncSynchronizing = ... # type: QIcon.ThemeIcon
  2511. UserAvailable = ... # type: QIcon.ThemeIcon
  2512. UserOffline = ... # type: QIcon.ThemeIcon
  2513. WeatherClear = ... # type: QIcon.ThemeIcon
  2514. WeatherClearNight = ... # type: QIcon.ThemeIcon
  2515. WeatherFewClouds = ... # type: QIcon.ThemeIcon
  2516. WeatherFewCloudsNight = ... # type: QIcon.ThemeIcon
  2517. WeatherFog = ... # type: QIcon.ThemeIcon
  2518. WeatherShowers = ... # type: QIcon.ThemeIcon
  2519. WeatherSnow = ... # type: QIcon.ThemeIcon
  2520. WeatherStorm = ... # type: QIcon.ThemeIcon
  2521. class State(enum.Enum):
  2522. On = ... # type: QIcon.State
  2523. Off = ... # type: QIcon.State
  2524. class Mode(enum.Enum):
  2525. Normal = ... # type: QIcon.Mode
  2526. Disabled = ... # type: QIcon.Mode
  2527. Active = ... # type: QIcon.Mode
  2528. Selected = ... # type: QIcon.Mode
  2529. @typing.overload
  2530. def __init__(self) -> None: ...
  2531. @typing.overload
  2532. def __init__(self, pixmap: QPixmap) -> None: ...
  2533. @typing.overload
  2534. def __init__(self, other: 'QIcon') -> None: ...
  2535. @typing.overload
  2536. def __init__(self, fileName: str|None) -> None: ...
  2537. @typing.overload
  2538. def __init__(self, engine: 'QIconEngine|None') -> None: ...
  2539. @typing.overload
  2540. def __init__(self, variant: typing.Any) -> None: ...
  2541. @staticmethod
  2542. def setFallbackThemeName(name: str|None) -> None: ...
  2543. @staticmethod
  2544. def fallbackThemeName() -> str: ...
  2545. @staticmethod
  2546. def setFallbackSearchPaths(paths: collections.abc.Iterable[str|None]) -> None: ...
  2547. @staticmethod
  2548. def fallbackSearchPaths() -> list[str]: ...
  2549. def isMask(self) -> bool: ...
  2550. def setIsMask(self, isMask: bool) -> None: ...
  2551. def swap(self, other: 'QIcon') -> None: ...
  2552. def name(self) -> str: ...
  2553. @staticmethod
  2554. def setThemeName(path: str|None) -> None: ...
  2555. @staticmethod
  2556. def themeName() -> str: ...
  2557. @staticmethod
  2558. def setThemeSearchPaths(searchpath: collections.abc.Iterable[str|None]) -> None: ...
  2559. @staticmethod
  2560. def themeSearchPaths() -> list[str]: ...
  2561. @typing.overload
  2562. @staticmethod
  2563. def hasThemeIcon(name: str|None) -> bool: ...
  2564. @typing.overload
  2565. @staticmethod
  2566. def hasThemeIcon(icon: 'QIcon.ThemeIcon') -> bool: ...
  2567. @typing.overload
  2568. @staticmethod
  2569. def fromTheme(name: str|None) -> 'QIcon': ...
  2570. @typing.overload
  2571. @staticmethod
  2572. def fromTheme(name: str|None, fallback: 'QIcon') -> 'QIcon': ...
  2573. @typing.overload
  2574. @staticmethod
  2575. def fromTheme(icon: 'QIcon.ThemeIcon') -> 'QIcon': ...
  2576. @typing.overload
  2577. @staticmethod
  2578. def fromTheme(icon: 'QIcon.ThemeIcon', fallback: 'QIcon') -> 'QIcon': ...
  2579. def cacheKey(self) -> int: ...
  2580. def addFile(self, fileName: str|None, size: QtCore.QSize = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ...
  2581. def addPixmap(self, pixmap: QPixmap, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ...
  2582. def isDetached(self) -> bool: ...
  2583. def isNull(self) -> bool: ...
  2584. @typing.overload
  2585. def paint(self, painter: 'QPainter|None', rect: QtCore.QRect, alignment: QtCore.Qt.AlignmentFlag = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ...
  2586. @typing.overload
  2587. def paint(self, painter: 'QPainter|None', x: int, y: int, w: int, h: int, alignment: QtCore.Qt.AlignmentFlag = ..., mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> None: ...
  2588. def availableSizes(self, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> list[QtCore.QSize]: ...
  2589. def actualSize(self, size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QtCore.QSize: ...
  2590. @typing.overload
  2591. def pixmap(self, size: QtCore.QSize, devicePixelRatio: float, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ...
  2592. @typing.overload
  2593. def pixmap(self, size: QtCore.QSize, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ...
  2594. @typing.overload
  2595. def pixmap(self, w: int, h: int, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ...
  2596. @typing.overload
  2597. def pixmap(self, extent: int, mode: 'QIcon.Mode' = ..., state: 'QIcon.State' = ...) -> QPixmap: ...
  2598. class QIconEngine(PyQt6.sip.wrapper):
  2599. class IconEngineHook(enum.Enum):
  2600. IsNullHook = ... # type: QIconEngine.IconEngineHook
  2601. ScaledPixmapHook = ... # type: QIconEngine.IconEngineHook
  2602. class ScaledPixmapArgument(PyQt6.sip.simplewrapper):
  2603. mode = ... # type: QIcon.Mode
  2604. pixmap = ... # type: QPixmap
  2605. scale = ... # type: float
  2606. size = ... # type: QtCore.QSize
  2607. state = ... # type: QIcon.State
  2608. @typing.overload
  2609. def __init__(self) -> None: ...
  2610. @typing.overload
  2611. def __init__(self, a0: 'QIconEngine.ScaledPixmapArgument') -> None: ...
  2612. @typing.overload
  2613. def __init__(self) -> None: ...
  2614. @typing.overload
  2615. def __init__(self, other: 'QIconEngine') -> None: ...
  2616. def scaledPixmap(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State, scale: float) -> QPixmap: ...
  2617. def isNull(self) -> bool: ...
  2618. def iconName(self) -> str: ...
  2619. def availableSizes(self, mode: QIcon.Mode = ..., state: QIcon.State = ...) -> list[QtCore.QSize]: ...
  2620. def write(self, out: QtCore.QDataStream) -> bool: ...
  2621. def read(self, in_: QtCore.QDataStream) -> bool: ...
  2622. def clone(self) -> 'QIconEngine|None': ...
  2623. def key(self) -> str: ...
  2624. def addFile(self, fileName: str|None, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> None: ...
  2625. def addPixmap(self, pixmap: QPixmap, mode: QIcon.Mode, state: QIcon.State) -> None: ...
  2626. def pixmap(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> QPixmap: ...
  2627. def actualSize(self, size: QtCore.QSize, mode: QIcon.Mode, state: QIcon.State) -> QtCore.QSize: ...
  2628. def paint(self, painter: 'QPainter|None', rect: QtCore.QRect, mode: QIcon.Mode, state: QIcon.State) -> None: ...
  2629. class QImage(QPaintDevice):
  2630. class Format(enum.Enum):
  2631. Format_Invalid = ... # type: QImage.Format
  2632. Format_Mono = ... # type: QImage.Format
  2633. Format_MonoLSB = ... # type: QImage.Format
  2634. Format_Indexed8 = ... # type: QImage.Format
  2635. Format_RGB32 = ... # type: QImage.Format
  2636. Format_ARGB32 = ... # type: QImage.Format
  2637. Format_ARGB32_Premultiplied = ... # type: QImage.Format
  2638. Format_RGB16 = ... # type: QImage.Format
  2639. Format_ARGB8565_Premultiplied = ... # type: QImage.Format
  2640. Format_RGB666 = ... # type: QImage.Format
  2641. Format_ARGB6666_Premultiplied = ... # type: QImage.Format
  2642. Format_RGB555 = ... # type: QImage.Format
  2643. Format_ARGB8555_Premultiplied = ... # type: QImage.Format
  2644. Format_RGB888 = ... # type: QImage.Format
  2645. Format_RGB444 = ... # type: QImage.Format
  2646. Format_ARGB4444_Premultiplied = ... # type: QImage.Format
  2647. Format_RGBX8888 = ... # type: QImage.Format
  2648. Format_RGBA8888 = ... # type: QImage.Format
  2649. Format_RGBA8888_Premultiplied = ... # type: QImage.Format
  2650. Format_BGR30 = ... # type: QImage.Format
  2651. Format_A2BGR30_Premultiplied = ... # type: QImage.Format
  2652. Format_RGB30 = ... # type: QImage.Format
  2653. Format_A2RGB30_Premultiplied = ... # type: QImage.Format
  2654. Format_Alpha8 = ... # type: QImage.Format
  2655. Format_Grayscale8 = ... # type: QImage.Format
  2656. Format_RGBX64 = ... # type: QImage.Format
  2657. Format_RGBA64 = ... # type: QImage.Format
  2658. Format_RGBA64_Premultiplied = ... # type: QImage.Format
  2659. Format_Grayscale16 = ... # type: QImage.Format
  2660. Format_BGR888 = ... # type: QImage.Format
  2661. Format_RGBX16FPx4 = ... # type: QImage.Format
  2662. Format_RGBA16FPx4 = ... # type: QImage.Format
  2663. Format_RGBA16FPx4_Premultiplied = ... # type: QImage.Format
  2664. Format_RGBX32FPx4 = ... # type: QImage.Format
  2665. Format_RGBA32FPx4 = ... # type: QImage.Format
  2666. Format_RGBA32FPx4_Premultiplied = ... # type: QImage.Format
  2667. Format_CMYK8888 = ... # type: QImage.Format
  2668. class InvertMode(enum.Enum):
  2669. InvertRgb = ... # type: QImage.InvertMode
  2670. InvertRgba = ... # type: QImage.InvertMode
  2671. @typing.overload
  2672. def __init__(self) -> None: ...
  2673. @typing.overload
  2674. def __init__(self, size: QtCore.QSize, format: 'QImage.Format') -> None: ...
  2675. @typing.overload
  2676. def __init__(self, width: int, height: int, format: 'QImage.Format') -> None: ...
  2677. @typing.overload
  2678. def __init__(self, data: bytes, width: int, height: int, format: 'QImage.Format', cleanupFunction: typing.Callable[..., None] = ..., cleanupInfo: typing.Any = ...) -> None: ...
  2679. @typing.overload
  2680. def __init__(self, data: bytes, width: int, height: int, bytesPerLine: int, format: 'QImage.Format', cleanupFunction: typing.Callable[..., None] = ..., cleanupInfo: typing.Any = ...) -> None: ...
  2681. @typing.overload
  2682. def __init__(self, xpm: list[str]) -> None: ...
  2683. @typing.overload
  2684. def __init__(self, fileName: str|None, format: str = ...) -> None: ...
  2685. @typing.overload
  2686. def __init__(self, a0: 'QImage') -> None: ...
  2687. @typing.overload
  2688. def __init__(self, variant: typing.Any) -> None: ...
  2689. def flip(self, orient: QtCore.Qt.Orientation = ...) -> None: ...
  2690. def flipped(self, orient: QtCore.Qt.Orientation = ...) -> 'QImage': ...
  2691. @typing.overload
  2692. def colorTransformed(self, transform: QColorTransform) -> 'QImage': ...
  2693. @typing.overload
  2694. def colorTransformed(self, transform: QColorTransform, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2695. def deviceIndependentSize(self) -> QtCore.QSizeF: ...
  2696. @typing.overload
  2697. def applyColorTransform(self, transform: QColorTransform) -> None: ...
  2698. @typing.overload
  2699. def applyColorTransform(self, transform: QColorTransform, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  2700. @typing.overload
  2701. def convertToColorSpace(self, a0: QColorSpace) -> None: ...
  2702. @typing.overload
  2703. def convertToColorSpace(self, colorSpace: QColorSpace, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  2704. @typing.overload
  2705. def convertedToColorSpace(self, a0: QColorSpace) -> 'QImage': ...
  2706. @typing.overload
  2707. def convertedToColorSpace(self, colorSpace: QColorSpace, format: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2708. def setColorSpace(self, a0: QColorSpace) -> None: ...
  2709. def colorSpace(self) -> QColorSpace: ...
  2710. def convertTo(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  2711. def convertedTo(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2712. def sizeInBytes(self) -> int: ...
  2713. def reinterpretAsFormat(self, f: 'QImage.Format') -> bool: ...
  2714. @typing.overload
  2715. def setPixelColor(self, x: int, y: int, c: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  2716. @typing.overload
  2717. def setPixelColor(self, pt: QtCore.QPoint, c: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  2718. @typing.overload
  2719. def pixelColor(self, x: int, y: int) -> QColor: ...
  2720. @typing.overload
  2721. def pixelColor(self, pt: QtCore.QPoint) -> QColor: ...
  2722. @staticmethod
  2723. def toImageFormat(format: 'QPixelFormat') -> 'QImage.Format': ...
  2724. @staticmethod
  2725. def toPixelFormat(format: 'QImage.Format') -> 'QPixelFormat': ...
  2726. def pixelFormat(self) -> 'QPixelFormat': ...
  2727. def setDevicePixelRatio(self, scaleFactor: float) -> None: ...
  2728. def devicePixelRatio(self) -> float: ...
  2729. def swap(self, other: 'QImage') -> None: ...
  2730. def bitPlaneCount(self) -> int: ...
  2731. def setColorCount(self, a0: int) -> None: ...
  2732. def colorCount(self) -> int: ...
  2733. def cacheKey(self) -> int: ...
  2734. @staticmethod
  2735. def trueMatrix(a0: 'QTransform', w: int, h: int) -> 'QTransform': ...
  2736. def transformed(self, matrix: 'QTransform', mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ...
  2737. def createMaskFromColor(self, color: int, mode: QtCore.Qt.MaskMode = ...) -> 'QImage': ...
  2738. def setText(self, key: str|None, value: str|None) -> None: ...
  2739. def text(self, key: str|None = ...) -> str: ...
  2740. def textKeys(self) -> list[str]: ...
  2741. def setOffset(self, a0: QtCore.QPoint) -> None: ...
  2742. def offset(self) -> QtCore.QPoint: ...
  2743. def setDotsPerMeterY(self, a0: int) -> None: ...
  2744. def setDotsPerMeterX(self, a0: int) -> None: ...
  2745. def dotsPerMeterY(self) -> int: ...
  2746. def dotsPerMeterX(self) -> int: ...
  2747. def paintEngine(self) -> 'QPaintEngine|None': ...
  2748. @typing.overload
  2749. @staticmethod
  2750. def fromData(data: PyQt6.sip.array[bytes], format: str = ...) -> 'QImage': ...
  2751. @typing.overload
  2752. @staticmethod
  2753. def fromData(data: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ...) -> 'QImage': ...
  2754. @typing.overload
  2755. def save(self, fileName: str|None, format: str = ..., quality: int = ...) -> bool: ...
  2756. @typing.overload
  2757. def save(self, device: QtCore.QIODevice|None, format: str = ..., quality: int = ...) -> bool: ...
  2758. @typing.overload
  2759. def loadFromData(self, data: PyQt6.sip.array[bytes], format: str = ...) -> bool: ...
  2760. @typing.overload
  2761. def loadFromData(self, data: QtCore.QByteArray|bytes|bytearray|memoryview, format: str = ...) -> bool: ...
  2762. @typing.overload
  2763. def load(self, device: QtCore.QIODevice|None, format: str) -> bool: ...
  2764. @typing.overload
  2765. def load(self, fileName: str|None, format: str = ...) -> bool: ...
  2766. def invertPixels(self, mode: 'QImage.InvertMode' = ...) -> None: ...
  2767. def rgbSwap(self) -> None: ...
  2768. def rgbSwapped(self) -> 'QImage': ...
  2769. def mirror(self, horizontal: bool = ..., vertical: bool = ...) -> None: ...
  2770. def mirrored(self, horizontal: bool = ..., vertical: bool = ...) -> 'QImage': ...
  2771. def scaledToHeight(self, height: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ...
  2772. def scaledToWidth(self, width: int, mode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ...
  2773. @typing.overload
  2774. def scaled(self, width: int, height: int, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ...
  2775. @typing.overload
  2776. def scaled(self, size: QtCore.QSize, aspectRatioMode: QtCore.Qt.AspectRatioMode = ..., transformMode: QtCore.Qt.TransformationMode = ...) -> 'QImage': ...
  2777. def createHeuristicMask(self, clipTight: bool = ...) -> 'QImage': ...
  2778. def createAlphaMask(self, flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2779. def setAlphaChannel(self, alphaChannel: 'QImage') -> None: ...
  2780. def hasAlphaChannel(self) -> bool: ...
  2781. @typing.overload
  2782. def fill(self, pixel: int) -> None: ...
  2783. @typing.overload
  2784. def fill(self, color: QtCore.Qt.GlobalColor) -> None: ...
  2785. @typing.overload
  2786. def fill(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  2787. def setColorTable(self, colors: collections.abc.Iterable[int]) -> None: ...
  2788. def colorTable(self) -> list[int]: ...
  2789. @typing.overload
  2790. def setPixel(self, pt: QtCore.QPoint, index_or_rgb: int) -> None: ...
  2791. @typing.overload
  2792. def setPixel(self, x: int, y: int, index_or_rgb: int) -> None: ...
  2793. @typing.overload
  2794. def pixel(self, pt: QtCore.QPoint) -> int: ...
  2795. @typing.overload
  2796. def pixel(self, x: int, y: int) -> int: ...
  2797. @typing.overload
  2798. def pixelIndex(self, pt: QtCore.QPoint) -> int: ...
  2799. @typing.overload
  2800. def pixelIndex(self, x: int, y: int) -> int: ...
  2801. @typing.overload
  2802. def valid(self, pt: QtCore.QPoint) -> bool: ...
  2803. @typing.overload
  2804. def valid(self, x: int, y: int) -> bool: ...
  2805. def bytesPerLine(self) -> int: ...
  2806. def constScanLine(self, a0: int) -> PyQt6.sip.voidptr: ...
  2807. def scanLine(self, a0: int) -> PyQt6.sip.voidptr: ...
  2808. def constBits(self) -> PyQt6.sip.voidptr: ...
  2809. def bits(self) -> PyQt6.sip.voidptr: ...
  2810. def isGrayscale(self) -> bool: ...
  2811. def allGray(self) -> bool: ...
  2812. def setColor(self, i: int, c: int) -> None: ...
  2813. def color(self, i: int) -> int: ...
  2814. def depth(self) -> int: ...
  2815. def rect(self) -> QtCore.QRect: ...
  2816. def size(self) -> QtCore.QSize: ...
  2817. def height(self) -> int: ...
  2818. def width(self) -> int: ...
  2819. @staticmethod
  2820. def fromHICON(hicon: PyQt6.sip.voidptr) -> 'QImage': ...
  2821. def toHICON(self, mask: 'QImage' = ...) -> PyQt6.sip.voidptr: ...
  2822. @staticmethod
  2823. def fromHBITMAP(hbitmap: PyQt6.sip.voidptr) -> 'QImage': ...
  2824. def toHBITMAP(self) -> PyQt6.sip.voidptr: ...
  2825. @typing.overload
  2826. def convertToFormat(self, f: 'QImage.Format', flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2827. @typing.overload
  2828. def convertToFormat(self, f: 'QImage.Format', colorTable: collections.abc.Iterable[int], flags: QtCore.Qt.ImageConversionFlag = ...) -> 'QImage': ...
  2829. def format(self) -> 'QImage.Format': ...
  2830. @typing.overload
  2831. def copy(self, rect: QtCore.QRect = ...) -> 'QImage': ...
  2832. @typing.overload
  2833. def copy(self, x: int, y: int, w: int, h: int) -> 'QImage': ...
  2834. def __ne__(self, other: object): ...
  2835. def __eq__(self, other: object): ...
  2836. def isNull(self) -> bool: ...
  2837. class QImageIOHandler(PyQt6.sip.simplewrapper):
  2838. class Transformation(enum.Flag):
  2839. TransformationNone = ... # type: QImageIOHandler.Transformation
  2840. TransformationMirror = ... # type: QImageIOHandler.Transformation
  2841. TransformationFlip = ... # type: QImageIOHandler.Transformation
  2842. TransformationRotate180 = ... # type: QImageIOHandler.Transformation
  2843. TransformationRotate90 = ... # type: QImageIOHandler.Transformation
  2844. TransformationMirrorAndRotate90 = ... # type: QImageIOHandler.Transformation
  2845. TransformationFlipAndRotate90 = ... # type: QImageIOHandler.Transformation
  2846. TransformationRotate270 = ... # type: QImageIOHandler.Transformation
  2847. class ImageOption(enum.Enum):
  2848. Size = ... # type: QImageIOHandler.ImageOption
  2849. ClipRect = ... # type: QImageIOHandler.ImageOption
  2850. Description = ... # type: QImageIOHandler.ImageOption
  2851. ScaledClipRect = ... # type: QImageIOHandler.ImageOption
  2852. ScaledSize = ... # type: QImageIOHandler.ImageOption
  2853. CompressionRatio = ... # type: QImageIOHandler.ImageOption
  2854. Gamma = ... # type: QImageIOHandler.ImageOption
  2855. Quality = ... # type: QImageIOHandler.ImageOption
  2856. Name = ... # type: QImageIOHandler.ImageOption
  2857. SubType = ... # type: QImageIOHandler.ImageOption
  2858. IncrementalReading = ... # type: QImageIOHandler.ImageOption
  2859. Endianness = ... # type: QImageIOHandler.ImageOption
  2860. Animation = ... # type: QImageIOHandler.ImageOption
  2861. BackgroundColor = ... # type: QImageIOHandler.ImageOption
  2862. SupportedSubTypes = ... # type: QImageIOHandler.ImageOption
  2863. OptimizedWrite = ... # type: QImageIOHandler.ImageOption
  2864. ProgressiveScanWrite = ... # type: QImageIOHandler.ImageOption
  2865. ImageTransformation = ... # type: QImageIOHandler.ImageOption
  2866. def __init__(self) -> None: ...
  2867. def currentImageRect(self) -> QtCore.QRect: ...
  2868. def currentImageNumber(self) -> int: ...
  2869. def nextImageDelay(self) -> int: ...
  2870. def imageCount(self) -> int: ...
  2871. def loopCount(self) -> int: ...
  2872. def jumpToImage(self, imageNumber: int) -> bool: ...
  2873. def jumpToNextImage(self) -> bool: ...
  2874. def supportsOption(self, option: 'QImageIOHandler.ImageOption') -> bool: ...
  2875. def setOption(self, option: 'QImageIOHandler.ImageOption', value: typing.Any) -> None: ...
  2876. def option(self, option: 'QImageIOHandler.ImageOption') -> typing.Any: ...
  2877. def write(self, image: QImage) -> bool: ...
  2878. def read(self, image: QImage|None) -> bool: ...
  2879. def canRead(self) -> bool: ...
  2880. def format(self) -> QtCore.QByteArray: ...
  2881. def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  2882. def device(self) -> QtCore.QIODevice|None: ...
  2883. def setDevice(self, device: QtCore.QIODevice|None) -> None: ...
  2884. class QImageReader(PyQt6.sip.simplewrapper):
  2885. class ImageReaderError(enum.Enum):
  2886. UnknownError = ... # type: QImageReader.ImageReaderError
  2887. FileNotFoundError = ... # type: QImageReader.ImageReaderError
  2888. DeviceError = ... # type: QImageReader.ImageReaderError
  2889. UnsupportedFormatError = ... # type: QImageReader.ImageReaderError
  2890. InvalidDataError = ... # type: QImageReader.ImageReaderError
  2891. @typing.overload
  2892. def __init__(self) -> None: ...
  2893. @typing.overload
  2894. def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ...
  2895. @typing.overload
  2896. def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ...
  2897. @staticmethod
  2898. def setAllocationLimit(mbLimit: int) -> None: ...
  2899. @staticmethod
  2900. def allocationLimit() -> int: ...
  2901. @staticmethod
  2902. def imageFormatsForMimeType(mimeType: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[QtCore.QByteArray]: ...
  2903. def autoTransform(self) -> bool: ...
  2904. def setAutoTransform(self, enabled: bool) -> None: ...
  2905. def transformation(self) -> QImageIOHandler.Transformation: ...
  2906. def supportedSubTypes(self) -> list[QtCore.QByteArray]: ...
  2907. def subType(self) -> QtCore.QByteArray: ...
  2908. @staticmethod
  2909. def supportedMimeTypes() -> list[QtCore.QByteArray]: ...
  2910. def decideFormatFromContent(self) -> bool: ...
  2911. def setDecideFormatFromContent(self, ignored: bool) -> None: ...
  2912. def autoDetectImageFormat(self) -> bool: ...
  2913. def setAutoDetectImageFormat(self, enabled: bool) -> None: ...
  2914. def supportsOption(self, option: QImageIOHandler.ImageOption) -> bool: ...
  2915. def quality(self) -> int: ...
  2916. def setQuality(self, quality: int) -> None: ...
  2917. def supportsAnimation(self) -> bool: ...
  2918. def backgroundColor(self) -> QColor: ...
  2919. def setBackgroundColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  2920. def text(self, key: str|None) -> str: ...
  2921. def textKeys(self) -> list[str]: ...
  2922. @staticmethod
  2923. def supportedImageFormats() -> list[QtCore.QByteArray]: ...
  2924. @typing.overload
  2925. @staticmethod
  2926. def imageFormat(fileName: str|None) -> QtCore.QByteArray: ...
  2927. @typing.overload
  2928. @staticmethod
  2929. def imageFormat(device: QtCore.QIODevice|None) -> QtCore.QByteArray: ...
  2930. @typing.overload
  2931. def imageFormat(self) -> QImage.Format: ...
  2932. def errorString(self) -> str: ...
  2933. def error(self) -> 'QImageReader.ImageReaderError': ...
  2934. def currentImageRect(self) -> QtCore.QRect: ...
  2935. def currentImageNumber(self) -> int: ...
  2936. def nextImageDelay(self) -> int: ...
  2937. def imageCount(self) -> int: ...
  2938. def loopCount(self) -> int: ...
  2939. def jumpToImage(self, imageNumber: int) -> bool: ...
  2940. def jumpToNextImage(self) -> bool: ...
  2941. @typing.overload
  2942. def read(self) -> QImage: ...
  2943. @typing.overload
  2944. def read(self, image: QImage|None) -> bool: ...
  2945. def canRead(self) -> bool: ...
  2946. def scaledClipRect(self) -> QtCore.QRect: ...
  2947. def setScaledClipRect(self, rect: QtCore.QRect) -> None: ...
  2948. def scaledSize(self) -> QtCore.QSize: ...
  2949. def setScaledSize(self, size: QtCore.QSize) -> None: ...
  2950. def clipRect(self) -> QtCore.QRect: ...
  2951. def setClipRect(self, rect: QtCore.QRect) -> None: ...
  2952. def size(self) -> QtCore.QSize: ...
  2953. def fileName(self) -> str: ...
  2954. def setFileName(self, fileName: str|None) -> None: ...
  2955. def device(self) -> QtCore.QIODevice|None: ...
  2956. def setDevice(self, device: QtCore.QIODevice|None) -> None: ...
  2957. def format(self) -> QtCore.QByteArray: ...
  2958. def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  2959. class QImageWriter(PyQt6.sip.simplewrapper):
  2960. class ImageWriterError(enum.Enum):
  2961. UnknownError = ... # type: QImageWriter.ImageWriterError
  2962. DeviceError = ... # type: QImageWriter.ImageWriterError
  2963. UnsupportedFormatError = ... # type: QImageWriter.ImageWriterError
  2964. InvalidImageError = ... # type: QImageWriter.ImageWriterError
  2965. @typing.overload
  2966. def __init__(self) -> None: ...
  2967. @typing.overload
  2968. def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  2969. @typing.overload
  2970. def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ...
  2971. @staticmethod
  2972. def imageFormatsForMimeType(mimeType: QtCore.QByteArray|bytes|bytearray|memoryview) -> list[QtCore.QByteArray]: ...
  2973. def setTransformation(self, orientation: QImageIOHandler.Transformation) -> None: ...
  2974. def transformation(self) -> QImageIOHandler.Transformation: ...
  2975. def progressiveScanWrite(self) -> bool: ...
  2976. def setProgressiveScanWrite(self, progressive: bool) -> None: ...
  2977. def optimizedWrite(self) -> bool: ...
  2978. def setOptimizedWrite(self, optimize: bool) -> None: ...
  2979. def supportedSubTypes(self) -> list[QtCore.QByteArray]: ...
  2980. def subType(self) -> QtCore.QByteArray: ...
  2981. def setSubType(self, type: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  2982. @staticmethod
  2983. def supportedMimeTypes() -> list[QtCore.QByteArray]: ...
  2984. def compression(self) -> int: ...
  2985. def setCompression(self, compression: int) -> None: ...
  2986. def supportsOption(self, option: QImageIOHandler.ImageOption) -> bool: ...
  2987. def setText(self, key: str|None, text: str|None) -> None: ...
  2988. @staticmethod
  2989. def supportedImageFormats() -> list[QtCore.QByteArray]: ...
  2990. def errorString(self) -> str: ...
  2991. def error(self) -> 'QImageWriter.ImageWriterError': ...
  2992. def write(self, image: QImage) -> bool: ...
  2993. def canWrite(self) -> bool: ...
  2994. def quality(self) -> int: ...
  2995. def setQuality(self, quality: int) -> None: ...
  2996. def fileName(self) -> str: ...
  2997. def setFileName(self, fileName: str|None) -> None: ...
  2998. def device(self) -> QtCore.QIODevice|None: ...
  2999. def setDevice(self, device: QtCore.QIODevice|None) -> None: ...
  3000. def format(self) -> QtCore.QByteArray: ...
  3001. def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  3002. class QInputDevice(QtCore.QObject):
  3003. class Capability(enum.Flag):
  3004. None_ = ... # type: QInputDevice.Capability
  3005. Position = ... # type: QInputDevice.Capability
  3006. Area = ... # type: QInputDevice.Capability
  3007. Pressure = ... # type: QInputDevice.Capability
  3008. Velocity = ... # type: QInputDevice.Capability
  3009. NormalizedPosition = ... # type: QInputDevice.Capability
  3010. MouseEmulation = ... # type: QInputDevice.Capability
  3011. PixelScroll = ... # type: QInputDevice.Capability
  3012. Scroll = ... # type: QInputDevice.Capability
  3013. Hover = ... # type: QInputDevice.Capability
  3014. Rotation = ... # type: QInputDevice.Capability
  3015. XTilt = ... # type: QInputDevice.Capability
  3016. YTilt = ... # type: QInputDevice.Capability
  3017. TangentialPressure = ... # type: QInputDevice.Capability
  3018. ZPosition = ... # type: QInputDevice.Capability
  3019. All = ... # type: QInputDevice.Capability
  3020. class DeviceType(enum.Flag):
  3021. Unknown = ... # type: QInputDevice.DeviceType
  3022. Mouse = ... # type: QInputDevice.DeviceType
  3023. TouchScreen = ... # type: QInputDevice.DeviceType
  3024. TouchPad = ... # type: QInputDevice.DeviceType
  3025. Puck = ... # type: QInputDevice.DeviceType
  3026. Stylus = ... # type: QInputDevice.DeviceType
  3027. Airbrush = ... # type: QInputDevice.DeviceType
  3028. Keyboard = ... # type: QInputDevice.DeviceType
  3029. AllDevices = ... # type: QInputDevice.DeviceType
  3030. @typing.overload
  3031. def __init__(self, name: str|None, systemId: int, type: 'QInputDevice.DeviceType', seatName: str|None = ..., parent: QtCore.QObject|None = ...) -> None: ...
  3032. @typing.overload
  3033. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  3034. def __ne__(self, other: object): ...
  3035. @staticmethod
  3036. def seatNames() -> list[str]: ...
  3037. capabilitiesChanged: typing.ClassVar[QtCore.pyqtSignal]
  3038. availableVirtualGeometryChanged: typing.ClassVar[QtCore.pyqtSignal]
  3039. def __eq__(self, other: object): ...
  3040. @staticmethod
  3041. def primaryKeyboard(seatName: str|None = ...) -> 'QInputDevice|None': ...
  3042. @staticmethod
  3043. def devices() -> list['QInputDevice']: ...
  3044. def availableVirtualGeometry(self) -> QtCore.QRect: ...
  3045. def seatName(self) -> str: ...
  3046. def systemId(self) -> int: ...
  3047. def hasCapability(self, cap: 'QInputDevice.Capability') -> bool: ...
  3048. def capabilities(self) -> 'QInputDevice.Capability': ...
  3049. def type(self) -> 'QInputDevice.DeviceType': ...
  3050. def name(self) -> str: ...
  3051. class QInputMethod(QtCore.QObject):
  3052. class Action(enum.Enum):
  3053. Click = ... # type: QInputMethod.Action
  3054. ContextMenu = ... # type: QInputMethod.Action
  3055. inputItemClipRectangleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3056. anchorRectangleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3057. def inputItemClipRectangle(self) -> QtCore.QRectF: ...
  3058. def anchorRectangle(self) -> QtCore.QRectF: ...
  3059. inputDirectionChanged: typing.ClassVar[QtCore.pyqtSignal]
  3060. localeChanged: typing.ClassVar[QtCore.pyqtSignal]
  3061. animatingChanged: typing.ClassVar[QtCore.pyqtSignal]
  3062. visibleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3063. keyboardRectangleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3064. cursorRectangleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3065. def invokeAction(self, a: 'QInputMethod.Action', cursorPosition: int) -> None: ...
  3066. def commit(self) -> None: ...
  3067. def reset(self) -> None: ...
  3068. def update(self, queries: QtCore.Qt.InputMethodQuery) -> None: ...
  3069. def hide(self) -> None: ...
  3070. def show(self) -> None: ...
  3071. @staticmethod
  3072. def queryFocusObject(query: QtCore.Qt.InputMethodQuery, argument: typing.Any) -> typing.Any: ...
  3073. def setInputItemRectangle(self, rect: QtCore.QRectF) -> None: ...
  3074. def inputItemRectangle(self) -> QtCore.QRectF: ...
  3075. def inputDirection(self) -> QtCore.Qt.LayoutDirection: ...
  3076. def locale(self) -> QtCore.QLocale: ...
  3077. def isAnimating(self) -> bool: ...
  3078. def setVisible(self, visible: bool) -> None: ...
  3079. def isVisible(self) -> bool: ...
  3080. def keyboardRectangle(self) -> QtCore.QRectF: ...
  3081. def cursorRectangle(self) -> QtCore.QRectF: ...
  3082. def setInputItemTransform(self, transform: 'QTransform') -> None: ...
  3083. def inputItemTransform(self) -> 'QTransform': ...
  3084. class QKeySequence(PyQt6.sip.simplewrapper):
  3085. class StandardKey(enum.Enum):
  3086. UnknownKey = ... # type: QKeySequence.StandardKey
  3087. HelpContents = ... # type: QKeySequence.StandardKey
  3088. WhatsThis = ... # type: QKeySequence.StandardKey
  3089. Open = ... # type: QKeySequence.StandardKey
  3090. Close = ... # type: QKeySequence.StandardKey
  3091. Save = ... # type: QKeySequence.StandardKey
  3092. New = ... # type: QKeySequence.StandardKey
  3093. Delete = ... # type: QKeySequence.StandardKey
  3094. Cut = ... # type: QKeySequence.StandardKey
  3095. Copy = ... # type: QKeySequence.StandardKey
  3096. Paste = ... # type: QKeySequence.StandardKey
  3097. Undo = ... # type: QKeySequence.StandardKey
  3098. Redo = ... # type: QKeySequence.StandardKey
  3099. Back = ... # type: QKeySequence.StandardKey
  3100. Forward = ... # type: QKeySequence.StandardKey
  3101. Refresh = ... # type: QKeySequence.StandardKey
  3102. ZoomIn = ... # type: QKeySequence.StandardKey
  3103. ZoomOut = ... # type: QKeySequence.StandardKey
  3104. Print = ... # type: QKeySequence.StandardKey
  3105. AddTab = ... # type: QKeySequence.StandardKey
  3106. NextChild = ... # type: QKeySequence.StandardKey
  3107. PreviousChild = ... # type: QKeySequence.StandardKey
  3108. Find = ... # type: QKeySequence.StandardKey
  3109. FindNext = ... # type: QKeySequence.StandardKey
  3110. FindPrevious = ... # type: QKeySequence.StandardKey
  3111. Replace = ... # type: QKeySequence.StandardKey
  3112. SelectAll = ... # type: QKeySequence.StandardKey
  3113. Bold = ... # type: QKeySequence.StandardKey
  3114. Italic = ... # type: QKeySequence.StandardKey
  3115. Underline = ... # type: QKeySequence.StandardKey
  3116. MoveToNextChar = ... # type: QKeySequence.StandardKey
  3117. MoveToPreviousChar = ... # type: QKeySequence.StandardKey
  3118. MoveToNextWord = ... # type: QKeySequence.StandardKey
  3119. MoveToPreviousWord = ... # type: QKeySequence.StandardKey
  3120. MoveToNextLine = ... # type: QKeySequence.StandardKey
  3121. MoveToPreviousLine = ... # type: QKeySequence.StandardKey
  3122. MoveToNextPage = ... # type: QKeySequence.StandardKey
  3123. MoveToPreviousPage = ... # type: QKeySequence.StandardKey
  3124. MoveToStartOfLine = ... # type: QKeySequence.StandardKey
  3125. MoveToEndOfLine = ... # type: QKeySequence.StandardKey
  3126. MoveToStartOfBlock = ... # type: QKeySequence.StandardKey
  3127. MoveToEndOfBlock = ... # type: QKeySequence.StandardKey
  3128. MoveToStartOfDocument = ... # type: QKeySequence.StandardKey
  3129. MoveToEndOfDocument = ... # type: QKeySequence.StandardKey
  3130. SelectNextChar = ... # type: QKeySequence.StandardKey
  3131. SelectPreviousChar = ... # type: QKeySequence.StandardKey
  3132. SelectNextWord = ... # type: QKeySequence.StandardKey
  3133. SelectPreviousWord = ... # type: QKeySequence.StandardKey
  3134. SelectNextLine = ... # type: QKeySequence.StandardKey
  3135. SelectPreviousLine = ... # type: QKeySequence.StandardKey
  3136. SelectNextPage = ... # type: QKeySequence.StandardKey
  3137. SelectPreviousPage = ... # type: QKeySequence.StandardKey
  3138. SelectStartOfLine = ... # type: QKeySequence.StandardKey
  3139. SelectEndOfLine = ... # type: QKeySequence.StandardKey
  3140. SelectStartOfBlock = ... # type: QKeySequence.StandardKey
  3141. SelectEndOfBlock = ... # type: QKeySequence.StandardKey
  3142. SelectStartOfDocument = ... # type: QKeySequence.StandardKey
  3143. SelectEndOfDocument = ... # type: QKeySequence.StandardKey
  3144. DeleteStartOfWord = ... # type: QKeySequence.StandardKey
  3145. DeleteEndOfWord = ... # type: QKeySequence.StandardKey
  3146. DeleteEndOfLine = ... # type: QKeySequence.StandardKey
  3147. InsertParagraphSeparator = ... # type: QKeySequence.StandardKey
  3148. InsertLineSeparator = ... # type: QKeySequence.StandardKey
  3149. SaveAs = ... # type: QKeySequence.StandardKey
  3150. Preferences = ... # type: QKeySequence.StandardKey
  3151. Quit = ... # type: QKeySequence.StandardKey
  3152. FullScreen = ... # type: QKeySequence.StandardKey
  3153. Deselect = ... # type: QKeySequence.StandardKey
  3154. DeleteCompleteLine = ... # type: QKeySequence.StandardKey
  3155. Backspace = ... # type: QKeySequence.StandardKey
  3156. Cancel = ... # type: QKeySequence.StandardKey
  3157. class SequenceMatch(enum.Enum):
  3158. NoMatch = ... # type: QKeySequence.SequenceMatch
  3159. PartialMatch = ... # type: QKeySequence.SequenceMatch
  3160. ExactMatch = ... # type: QKeySequence.SequenceMatch
  3161. class SequenceFormat(enum.Enum):
  3162. NativeText = ... # type: QKeySequence.SequenceFormat
  3163. PortableText = ... # type: QKeySequence.SequenceFormat
  3164. @typing.overload
  3165. def __init__(self) -> None: ...
  3166. @typing.overload
  3167. def __init__(self, ks: 'QKeySequence') -> None: ...
  3168. @typing.overload
  3169. def __init__(self, key: 'QKeySequence.StandardKey') -> None: ...
  3170. @typing.overload
  3171. def __init__(self, key: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> None: ...
  3172. @typing.overload
  3173. def __init__(self, k1: int, key2: int = ..., key3: int = ..., key4: int = ...) -> None: ...
  3174. @typing.overload
  3175. def __init__(self, k1: QtCore.QKeyCombination, key2: QtCore.QKeyCombination = ..., key3: QtCore.QKeyCombination = ..., key4: QtCore.QKeyCombination = ...) -> None: ...
  3176. @typing.overload
  3177. def __init__(self, variant: typing.Any) -> None: ...
  3178. def __hash__(self) -> int: ...
  3179. @staticmethod
  3180. def listToString(list: collections.abc.Iterable['QKeySequence'|'QKeySequence.StandardKey'|str|None|int], format: 'QKeySequence.SequenceFormat' = ...) -> str: ...
  3181. @staticmethod
  3182. def listFromString(str: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> list['QKeySequence']: ...
  3183. @staticmethod
  3184. def keyBindings(key: 'QKeySequence.StandardKey') -> list['QKeySequence']: ...
  3185. @staticmethod
  3186. def fromString(str: str|None, format: 'QKeySequence.SequenceFormat' = ...) -> 'QKeySequence': ...
  3187. def toString(self, format: 'QKeySequence.SequenceFormat' = ...) -> str: ...
  3188. def swap(self, other: 'QKeySequence') -> None: ...
  3189. def isDetached(self) -> bool: ...
  3190. def __ge__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ...
  3191. def __le__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ...
  3192. def __gt__(self, other: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ...
  3193. def __lt__(self, ks: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> bool: ...
  3194. def __ne__(self, other: object): ...
  3195. def __eq__(self, other: object): ...
  3196. def __getitem__(self, i: int) -> QtCore.QKeyCombination: ...
  3197. @staticmethod
  3198. def mnemonic(text: str|None) -> 'QKeySequence': ...
  3199. def matches(self, seq: 'QKeySequence'|'QKeySequence.StandardKey'|str|None|int) -> 'QKeySequence.SequenceMatch': ...
  3200. def isEmpty(self) -> bool: ...
  3201. def __len__(self) -> int: ...
  3202. def count(self) -> int: ...
  3203. class QMatrix4x4(PyQt6.sip.simplewrapper):
  3204. @typing.overload
  3205. def __init__(self) -> None: ...
  3206. @typing.overload
  3207. def __init__(self, values: collections.abc.Sequence[float]) -> None: ...
  3208. @typing.overload
  3209. def __init__(self, m11: float, m12: float, m13: float, m14: float, m21: float, m22: float, m23: float, m24: float, m31: float, m32: float, m33: float, m34: float, m41: float, m42: float, m43: float, m44: float) -> None: ...
  3210. @typing.overload
  3211. def __init__(self, transform: 'QTransform') -> None: ...
  3212. @typing.overload
  3213. def __init__(self, a0: 'QMatrix4x4') -> None: ...
  3214. def __truediv__(self, divisor: float) -> 'QMatrix4x4': ...
  3215. def __add__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3216. def __sub__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3217. @typing.overload
  3218. def __mul__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3219. @typing.overload
  3220. def __mul__(self, point: QtCore.QPoint) -> QtCore.QPoint: ...
  3221. @typing.overload
  3222. def __mul__(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  3223. @typing.overload
  3224. def __mul__(self, factor: float) -> 'QMatrix4x4': ...
  3225. @typing.overload
  3226. def __mul__(self, vector: 'QVector4D') -> 'QVector4D': ...
  3227. @typing.overload
  3228. def __mul__(self, vector: 'QVector3D') -> 'QVector3D': ...
  3229. def __rmul__(self, factor: float) -> 'QMatrix4x4': ...
  3230. def __matmul__(self, m2: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3231. def __neg__(self) -> 'QMatrix4x4': ...
  3232. def isAffine(self) -> bool: ...
  3233. @typing.overload
  3234. def viewport(self, left: float, bottom: float, width: float, height: float, nearPlane: float = ..., farPlane: float = ...) -> None: ...
  3235. @typing.overload
  3236. def viewport(self, rect: QtCore.QRectF) -> None: ...
  3237. def mapVector(self, vector: 'QVector3D') -> 'QVector3D': ...
  3238. @typing.overload
  3239. def map(self, point: QtCore.QPoint) -> QtCore.QPoint: ...
  3240. @typing.overload
  3241. def map(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  3242. @typing.overload
  3243. def map(self, point: 'QVector3D') -> 'QVector3D': ...
  3244. @typing.overload
  3245. def map(self, point: 'QVector4D') -> 'QVector4D': ...
  3246. def __ne__(self, other: object): ...
  3247. def __eq__(self, other: object): ...
  3248. def __itruediv__(self, divisor: float) -> 'QMatrix4x4': ...
  3249. def __imatmul__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3250. @typing.overload
  3251. def __imul__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3252. @typing.overload
  3253. def __imul__(self, factor: float) -> 'QMatrix4x4': ...
  3254. def __isub__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3255. def __iadd__(self, other: 'QMatrix4x4') -> 'QMatrix4x4': ...
  3256. def fill(self, value: float) -> None: ...
  3257. def setToIdentity(self) -> None: ...
  3258. def isIdentity(self) -> bool: ...
  3259. def setRow(self, index: int, value: 'QVector4D') -> None: ...
  3260. def row(self, index: int) -> 'QVector4D': ...
  3261. def setColumn(self, index: int, value: 'QVector4D') -> None: ...
  3262. def column(self, index: int) -> 'QVector4D': ...
  3263. def __setitem__(self, a0: typing.Any, a1: float) -> None: ...
  3264. def __getitem__(self, a0: typing.Any) -> typing.Any: ...
  3265. def optimize(self) -> None: ...
  3266. def data(self) -> list[float]: ...
  3267. @typing.overload
  3268. def mapRect(self, rect: QtCore.QRect) -> QtCore.QRect: ...
  3269. @typing.overload
  3270. def mapRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ...
  3271. @typing.overload
  3272. def toTransform(self) -> 'QTransform': ...
  3273. @typing.overload
  3274. def toTransform(self, distanceToPlane: float) -> 'QTransform': ...
  3275. def copyDataTo(self) -> list[float]: ...
  3276. def lookAt(self, eye: 'QVector3D', center: 'QVector3D', up: 'QVector3D') -> None: ...
  3277. def perspective(self, angle: float, aspect: float, nearPlane: float, farPlane: float) -> None: ...
  3278. def frustum(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ...
  3279. @typing.overload
  3280. def ortho(self, rect: QtCore.QRect) -> None: ...
  3281. @typing.overload
  3282. def ortho(self, rect: QtCore.QRectF) -> None: ...
  3283. @typing.overload
  3284. def ortho(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ...
  3285. @typing.overload
  3286. def rotate(self, angle: float, vector: 'QVector3D') -> None: ...
  3287. @typing.overload
  3288. def rotate(self, angle: float, x: float, y: float, z: float = ...) -> None: ...
  3289. @typing.overload
  3290. def rotate(self, quaternion: 'QQuaternion') -> None: ...
  3291. @typing.overload
  3292. def translate(self, vector: 'QVector3D') -> None: ...
  3293. @typing.overload
  3294. def translate(self, x: float, y: float) -> None: ...
  3295. @typing.overload
  3296. def translate(self, x: float, y: float, z: float) -> None: ...
  3297. @typing.overload
  3298. def scale(self, vector: 'QVector3D') -> None: ...
  3299. @typing.overload
  3300. def scale(self, x: float, y: float) -> None: ...
  3301. @typing.overload
  3302. def scale(self, x: float, y: float, z: float) -> None: ...
  3303. @typing.overload
  3304. def scale(self, factor: float) -> None: ...
  3305. def normalMatrix(self) -> QMatrix3x3: ...
  3306. def transposed(self) -> 'QMatrix4x4': ...
  3307. def inverted(self) -> typing.Tuple['QMatrix4x4', bool]: ...
  3308. def determinant(self) -> float: ...
  3309. def __repr__(self) -> str: ...
  3310. class QMovie(QtCore.QObject):
  3311. class CacheMode(enum.Enum):
  3312. CacheNone = ... # type: QMovie.CacheMode
  3313. CacheAll = ... # type: QMovie.CacheMode
  3314. class MovieState(enum.Enum):
  3315. NotRunning = ... # type: QMovie.MovieState
  3316. Paused = ... # type: QMovie.MovieState
  3317. Running = ... # type: QMovie.MovieState
  3318. @typing.overload
  3319. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  3320. @typing.overload
  3321. def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ..., parent: QtCore.QObject|None = ...) -> None: ...
  3322. @typing.overload
  3323. def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ..., parent: QtCore.QObject|None = ...) -> None: ...
  3324. def lastErrorString(self) -> str: ...
  3325. def lastError(self) -> QImageReader.ImageReaderError: ...
  3326. def stop(self) -> None: ...
  3327. def setPaused(self, paused: bool) -> None: ...
  3328. def jumpToNextFrame(self) -> bool: ...
  3329. def start(self) -> None: ...
  3330. frameChanged: typing.ClassVar[QtCore.pyqtSignal]
  3331. finished: typing.ClassVar[QtCore.pyqtSignal]
  3332. error: typing.ClassVar[QtCore.pyqtSignal]
  3333. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  3334. updated: typing.ClassVar[QtCore.pyqtSignal]
  3335. resized: typing.ClassVar[QtCore.pyqtSignal]
  3336. started: typing.ClassVar[QtCore.pyqtSignal]
  3337. def setCacheMode(self, mode: 'QMovie.CacheMode') -> None: ...
  3338. def cacheMode(self) -> 'QMovie.CacheMode': ...
  3339. def setScaledSize(self, size: QtCore.QSize) -> None: ...
  3340. def scaledSize(self) -> QtCore.QSize: ...
  3341. def speed(self) -> int: ...
  3342. def setSpeed(self, percentSpeed: int) -> None: ...
  3343. def currentFrameNumber(self) -> int: ...
  3344. def nextFrameDelay(self) -> int: ...
  3345. def frameCount(self) -> int: ...
  3346. def loopCount(self) -> int: ...
  3347. def jumpToFrame(self, frameNumber: int) -> bool: ...
  3348. def isValid(self) -> bool: ...
  3349. def currentPixmap(self) -> QPixmap: ...
  3350. def currentImage(self) -> QImage: ...
  3351. def frameRect(self) -> QtCore.QRect: ...
  3352. def state(self) -> 'QMovie.MovieState': ...
  3353. def backgroundColor(self) -> QColor: ...
  3354. def setBackgroundColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  3355. def format(self) -> QtCore.QByteArray: ...
  3356. def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  3357. def fileName(self) -> str: ...
  3358. def setFileName(self, fileName: str|None) -> None: ...
  3359. def device(self) -> QtCore.QIODevice|None: ...
  3360. def setDevice(self, device: QtCore.QIODevice|None) -> None: ...
  3361. @staticmethod
  3362. def supportedFormats() -> list[QtCore.QByteArray]: ...
  3363. class QSurface(PyQt6.sip.simplewrapper):
  3364. class SurfaceType(enum.Enum):
  3365. RasterSurface = ... # type: QSurface.SurfaceType
  3366. OpenGLSurface = ... # type: QSurface.SurfaceType
  3367. RasterGLSurface = ... # type: QSurface.SurfaceType
  3368. OpenVGSurface = ... # type: QSurface.SurfaceType
  3369. VulkanSurface = ... # type: QSurface.SurfaceType
  3370. MetalSurface = ... # type: QSurface.SurfaceType
  3371. Direct3DSurface = ... # type: QSurface.SurfaceType
  3372. class SurfaceClass(enum.Enum):
  3373. Window = ... # type: QSurface.SurfaceClass
  3374. Offscreen = ... # type: QSurface.SurfaceClass
  3375. @typing.overload
  3376. def __init__(self, type: 'QSurface.SurfaceClass') -> None: ...
  3377. @typing.overload
  3378. def __init__(self, a0: 'QSurface') -> None: ...
  3379. def supportsOpenGL(self) -> bool: ...
  3380. def size(self) -> QtCore.QSize: ...
  3381. def surfaceType(self) -> 'QSurface.SurfaceType': ...
  3382. def format(self) -> 'QSurfaceFormat': ...
  3383. def surfaceClass(self) -> 'QSurface.SurfaceClass': ...
  3384. class QOffscreenSurface(QtCore.QObject, QSurface):
  3385. def __init__(self, screen: 'QScreen|None' = ..., parent: QtCore.QObject|None = ...) -> None: ...
  3386. screenChanged: typing.ClassVar[QtCore.pyqtSignal]
  3387. def setScreen(self, screen: 'QScreen|None') -> None: ...
  3388. def screen(self) -> 'QScreen|None': ...
  3389. def size(self) -> QtCore.QSize: ...
  3390. def requestedFormat(self) -> 'QSurfaceFormat': ...
  3391. def format(self) -> 'QSurfaceFormat': ...
  3392. def setFormat(self, format: 'QSurfaceFormat') -> None: ...
  3393. def isValid(self) -> bool: ...
  3394. def destroy(self) -> None: ...
  3395. def create(self) -> None: ...
  3396. def surfaceType(self) -> QSurface.SurfaceType: ...
  3397. class QOpenGLContextGroup(QtCore.QObject):
  3398. @staticmethod
  3399. def currentContextGroup() -> 'QOpenGLContextGroup|None': ...
  3400. def shares(self) -> list['QOpenGLContext']: ...
  3401. class QOpenGLContext(QtCore.QObject):
  3402. class OpenGLModuleType(enum.Enum):
  3403. LibGL = ... # type: QOpenGLContext.OpenGLModuleType
  3404. LibGLES = ... # type: QOpenGLContext.OpenGLModuleType
  3405. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  3406. @staticmethod
  3407. def globalShareContext() -> 'QOpenGLContext|None': ...
  3408. @staticmethod
  3409. def supportsThreadedOpenGL() -> bool: ...
  3410. def isOpenGLES(self) -> bool: ...
  3411. @staticmethod
  3412. def openGLModuleType() -> 'QOpenGLContext.OpenGLModuleType': ...
  3413. aboutToBeDestroyed: typing.ClassVar[QtCore.pyqtSignal]
  3414. def hasExtension(self, extension: QtCore.QByteArray|bytes|bytearray|memoryview) -> bool: ...
  3415. def extensions(self) -> set[QtCore.QByteArray]: ...
  3416. @staticmethod
  3417. def areSharing(first: 'QOpenGLContext|None', second: 'QOpenGLContext|None') -> bool: ...
  3418. @staticmethod
  3419. def currentContext() -> 'QOpenGLContext|None': ...
  3420. def surface(self) -> QSurface|None: ...
  3421. def getProcAddress(self, procName: QtCore.QByteArray|bytes|bytearray|memoryview) -> PyQt6.sip.voidptr: ...
  3422. def swapBuffers(self, surface: QSurface|None) -> None: ...
  3423. def doneCurrent(self) -> None: ...
  3424. def makeCurrent(self, surface: QSurface|None) -> bool: ...
  3425. def defaultFramebufferObject(self) -> int: ...
  3426. def screen(self) -> 'QScreen|None': ...
  3427. def shareGroup(self) -> QOpenGLContextGroup|None: ...
  3428. def shareContext(self) -> 'QOpenGLContext|None': ...
  3429. def format(self) -> 'QSurfaceFormat': ...
  3430. def isValid(self) -> bool: ...
  3431. def create(self) -> bool: ...
  3432. def setScreen(self, screen: 'QScreen|None') -> None: ...
  3433. def setShareContext(self, shareContext: 'QOpenGLContext|None') -> None: ...
  3434. def setFormat(self, format: 'QSurfaceFormat') -> None: ...
  3435. class QPagedPaintDevice(QPaintDevice):
  3436. class PdfVersion(enum.Enum):
  3437. PdfVersion_1_4 = ... # type: QPagedPaintDevice.PdfVersion
  3438. PdfVersion_A1b = ... # type: QPagedPaintDevice.PdfVersion
  3439. PdfVersion_1_6 = ... # type: QPagedPaintDevice.PdfVersion
  3440. PdfVersion_X4 = ... # type: QPagedPaintDevice.PdfVersion
  3441. def pageRanges(self) -> 'QPageRanges': ...
  3442. def setPageRanges(self, ranges: 'QPageRanges') -> None: ...
  3443. def setPageMargins(self, margins: QtCore.QMarginsF, units: 'QPageLayout.Unit' = ...) -> bool: ...
  3444. def setPageOrientation(self, orientation: 'QPageLayout.Orientation') -> bool: ...
  3445. def pageLayout(self) -> 'QPageLayout': ...
  3446. def setPageLayout(self, pageLayout: 'QPageLayout') -> bool: ...
  3447. def setPageSize(self, pageSize: 'QPageSize') -> bool: ...
  3448. def newPage(self) -> bool: ...
  3449. class QPageLayout(PyQt6.sip.simplewrapper):
  3450. class OutOfBoundsPolicy(enum.Enum):
  3451. Reject = ... # type: QPageLayout.OutOfBoundsPolicy
  3452. Clamp = ... # type: QPageLayout.OutOfBoundsPolicy
  3453. class Mode(enum.Enum):
  3454. StandardMode = ... # type: QPageLayout.Mode
  3455. FullPageMode = ... # type: QPageLayout.Mode
  3456. class Orientation(enum.Enum):
  3457. Portrait = ... # type: QPageLayout.Orientation
  3458. Landscape = ... # type: QPageLayout.Orientation
  3459. class Unit(enum.Enum):
  3460. Millimeter = ... # type: QPageLayout.Unit
  3461. Point = ... # type: QPageLayout.Unit
  3462. Inch = ... # type: QPageLayout.Unit
  3463. Pica = ... # type: QPageLayout.Unit
  3464. Didot = ... # type: QPageLayout.Unit
  3465. Cicero = ... # type: QPageLayout.Unit
  3466. @typing.overload
  3467. def __init__(self) -> None: ...
  3468. @typing.overload
  3469. def __init__(self, pageSize: 'QPageSize', orientation: 'QPageLayout.Orientation', margins: QtCore.QMarginsF, units: 'QPageLayout.Unit' = ..., minMargins: QtCore.QMarginsF = ...) -> None: ...
  3470. @typing.overload
  3471. def __init__(self, other: 'QPageLayout') -> None: ...
  3472. def __ne__(self, other: object): ...
  3473. def __eq__(self, other: object): ...
  3474. def paintRectPixels(self, resolution: int) -> QtCore.QRect: ...
  3475. def paintRectPoints(self) -> QtCore.QRect: ...
  3476. @typing.overload
  3477. def paintRect(self) -> QtCore.QRectF: ...
  3478. @typing.overload
  3479. def paintRect(self, units: 'QPageLayout.Unit') -> QtCore.QRectF: ...
  3480. def fullRectPixels(self, resolution: int) -> QtCore.QRect: ...
  3481. def fullRectPoints(self) -> QtCore.QRect: ...
  3482. @typing.overload
  3483. def fullRect(self) -> QtCore.QRectF: ...
  3484. @typing.overload
  3485. def fullRect(self, units: 'QPageLayout.Unit') -> QtCore.QRectF: ...
  3486. def maximumMargins(self) -> QtCore.QMarginsF: ...
  3487. def minimumMargins(self) -> QtCore.QMarginsF: ...
  3488. def setMinimumMargins(self, minMargins: QtCore.QMarginsF) -> None: ...
  3489. def marginsPixels(self, resolution: int) -> QtCore.QMargins: ...
  3490. def marginsPoints(self) -> QtCore.QMargins: ...
  3491. @typing.overload
  3492. def margins(self) -> QtCore.QMarginsF: ...
  3493. @typing.overload
  3494. def margins(self, units: 'QPageLayout.Unit') -> QtCore.QMarginsF: ...
  3495. def setBottomMargin(self, bottomMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ...
  3496. def setTopMargin(self, topMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ...
  3497. def setRightMargin(self, rightMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ...
  3498. def setLeftMargin(self, leftMargin: float, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ...
  3499. def setMargins(self, margins: QtCore.QMarginsF, outOfBoundsPolicy: 'QPageLayout.OutOfBoundsPolicy' = ...) -> bool: ...
  3500. def units(self) -> 'QPageLayout.Unit': ...
  3501. def setUnits(self, units: 'QPageLayout.Unit') -> None: ...
  3502. def orientation(self) -> 'QPageLayout.Orientation': ...
  3503. def setOrientation(self, orientation: 'QPageLayout.Orientation') -> None: ...
  3504. def pageSize(self) -> 'QPageSize': ...
  3505. def setPageSize(self, pageSize: 'QPageSize', minMargins: QtCore.QMarginsF = ...) -> None: ...
  3506. def mode(self) -> 'QPageLayout.Mode': ...
  3507. def setMode(self, mode: 'QPageLayout.Mode') -> None: ...
  3508. def isValid(self) -> bool: ...
  3509. def isEquivalentTo(self, other: 'QPageLayout') -> bool: ...
  3510. def swap(self, other: 'QPageLayout') -> None: ...
  3511. class QPageRanges(PyQt6.sip.simplewrapper):
  3512. class Range(PyQt6.sip.simplewrapper):
  3513. from_ = ... # type: int
  3514. to = ... # type: int
  3515. @typing.overload
  3516. def __init__(self) -> None: ...
  3517. @typing.overload
  3518. def __init__(self, a0: 'QPageRanges.Range') -> None: ...
  3519. def __ge__(self, rhs: 'QPageRanges.Range') -> bool: ...
  3520. def __ne__(self, other: object): ...
  3521. def __eq__(self, other: object): ...
  3522. def __lt__(self, rhs: 'QPageRanges.Range') -> bool: ...
  3523. def contains(self, pageNumber: int) -> bool: ...
  3524. @typing.overload
  3525. def __init__(self) -> None: ...
  3526. @typing.overload
  3527. def __init__(self, other: 'QPageRanges') -> None: ...
  3528. def __ne__(self, other: object): ...
  3529. def __eq__(self, other: object): ...
  3530. def lastPage(self) -> int: ...
  3531. def firstPage(self) -> int: ...
  3532. def isEmpty(self) -> bool: ...
  3533. def contains(self, pageNumber: int) -> bool: ...
  3534. @staticmethod
  3535. def fromString(ranges: str|None) -> 'QPageRanges': ...
  3536. def toString(self) -> str: ...
  3537. def clear(self) -> None: ...
  3538. def toRangeList(self) -> list['QPageRanges.Range']: ...
  3539. def addRange(self, from_: int, to: int) -> None: ...
  3540. def addPage(self, pageNumber: int) -> None: ...
  3541. def swap(self, other: 'QPageRanges') -> None: ...
  3542. class QPageSize(PyQt6.sip.simplewrapper):
  3543. class SizeMatchPolicy(enum.Enum):
  3544. FuzzyMatch = ... # type: QPageSize.SizeMatchPolicy
  3545. FuzzyOrientationMatch = ... # type: QPageSize.SizeMatchPolicy
  3546. ExactMatch = ... # type: QPageSize.SizeMatchPolicy
  3547. class Unit(enum.Enum):
  3548. Millimeter = ... # type: QPageSize.Unit
  3549. Point = ... # type: QPageSize.Unit
  3550. Inch = ... # type: QPageSize.Unit
  3551. Pica = ... # type: QPageSize.Unit
  3552. Didot = ... # type: QPageSize.Unit
  3553. Cicero = ... # type: QPageSize.Unit
  3554. class PageSizeId(enum.Enum):
  3555. A4 = ... # type: QPageSize.PageSizeId
  3556. B5 = ... # type: QPageSize.PageSizeId
  3557. Letter = ... # type: QPageSize.PageSizeId
  3558. Legal = ... # type: QPageSize.PageSizeId
  3559. Executive = ... # type: QPageSize.PageSizeId
  3560. A0 = ... # type: QPageSize.PageSizeId
  3561. A1 = ... # type: QPageSize.PageSizeId
  3562. A2 = ... # type: QPageSize.PageSizeId
  3563. A3 = ... # type: QPageSize.PageSizeId
  3564. A5 = ... # type: QPageSize.PageSizeId
  3565. A6 = ... # type: QPageSize.PageSizeId
  3566. A7 = ... # type: QPageSize.PageSizeId
  3567. A8 = ... # type: QPageSize.PageSizeId
  3568. A9 = ... # type: QPageSize.PageSizeId
  3569. B0 = ... # type: QPageSize.PageSizeId
  3570. B1 = ... # type: QPageSize.PageSizeId
  3571. B10 = ... # type: QPageSize.PageSizeId
  3572. B2 = ... # type: QPageSize.PageSizeId
  3573. B3 = ... # type: QPageSize.PageSizeId
  3574. B4 = ... # type: QPageSize.PageSizeId
  3575. B6 = ... # type: QPageSize.PageSizeId
  3576. B7 = ... # type: QPageSize.PageSizeId
  3577. B8 = ... # type: QPageSize.PageSizeId
  3578. B9 = ... # type: QPageSize.PageSizeId
  3579. C5E = ... # type: QPageSize.PageSizeId
  3580. Comm10E = ... # type: QPageSize.PageSizeId
  3581. DLE = ... # type: QPageSize.PageSizeId
  3582. Folio = ... # type: QPageSize.PageSizeId
  3583. Ledger = ... # type: QPageSize.PageSizeId
  3584. Tabloid = ... # type: QPageSize.PageSizeId
  3585. Custom = ... # type: QPageSize.PageSizeId
  3586. A10 = ... # type: QPageSize.PageSizeId
  3587. A3Extra = ... # type: QPageSize.PageSizeId
  3588. A4Extra = ... # type: QPageSize.PageSizeId
  3589. A4Plus = ... # type: QPageSize.PageSizeId
  3590. A4Small = ... # type: QPageSize.PageSizeId
  3591. A5Extra = ... # type: QPageSize.PageSizeId
  3592. B5Extra = ... # type: QPageSize.PageSizeId
  3593. JisB0 = ... # type: QPageSize.PageSizeId
  3594. JisB1 = ... # type: QPageSize.PageSizeId
  3595. JisB2 = ... # type: QPageSize.PageSizeId
  3596. JisB3 = ... # type: QPageSize.PageSizeId
  3597. JisB4 = ... # type: QPageSize.PageSizeId
  3598. JisB5 = ... # type: QPageSize.PageSizeId
  3599. JisB6 = ... # type: QPageSize.PageSizeId
  3600. JisB7 = ... # type: QPageSize.PageSizeId
  3601. JisB8 = ... # type: QPageSize.PageSizeId
  3602. JisB9 = ... # type: QPageSize.PageSizeId
  3603. JisB10 = ... # type: QPageSize.PageSizeId
  3604. AnsiC = ... # type: QPageSize.PageSizeId
  3605. AnsiD = ... # type: QPageSize.PageSizeId
  3606. AnsiE = ... # type: QPageSize.PageSizeId
  3607. LegalExtra = ... # type: QPageSize.PageSizeId
  3608. LetterExtra = ... # type: QPageSize.PageSizeId
  3609. LetterPlus = ... # type: QPageSize.PageSizeId
  3610. LetterSmall = ... # type: QPageSize.PageSizeId
  3611. TabloidExtra = ... # type: QPageSize.PageSizeId
  3612. ArchA = ... # type: QPageSize.PageSizeId
  3613. ArchB = ... # type: QPageSize.PageSizeId
  3614. ArchC = ... # type: QPageSize.PageSizeId
  3615. ArchD = ... # type: QPageSize.PageSizeId
  3616. ArchE = ... # type: QPageSize.PageSizeId
  3617. Imperial7x9 = ... # type: QPageSize.PageSizeId
  3618. Imperial8x10 = ... # type: QPageSize.PageSizeId
  3619. Imperial9x11 = ... # type: QPageSize.PageSizeId
  3620. Imperial9x12 = ... # type: QPageSize.PageSizeId
  3621. Imperial10x11 = ... # type: QPageSize.PageSizeId
  3622. Imperial10x13 = ... # type: QPageSize.PageSizeId
  3623. Imperial10x14 = ... # type: QPageSize.PageSizeId
  3624. Imperial12x11 = ... # type: QPageSize.PageSizeId
  3625. Imperial15x11 = ... # type: QPageSize.PageSizeId
  3626. ExecutiveStandard = ... # type: QPageSize.PageSizeId
  3627. Note = ... # type: QPageSize.PageSizeId
  3628. Quarto = ... # type: QPageSize.PageSizeId
  3629. Statement = ... # type: QPageSize.PageSizeId
  3630. SuperA = ... # type: QPageSize.PageSizeId
  3631. SuperB = ... # type: QPageSize.PageSizeId
  3632. Postcard = ... # type: QPageSize.PageSizeId
  3633. DoublePostcard = ... # type: QPageSize.PageSizeId
  3634. Prc16K = ... # type: QPageSize.PageSizeId
  3635. Prc32K = ... # type: QPageSize.PageSizeId
  3636. Prc32KBig = ... # type: QPageSize.PageSizeId
  3637. FanFoldUS = ... # type: QPageSize.PageSizeId
  3638. FanFoldGerman = ... # type: QPageSize.PageSizeId
  3639. FanFoldGermanLegal = ... # type: QPageSize.PageSizeId
  3640. EnvelopeB4 = ... # type: QPageSize.PageSizeId
  3641. EnvelopeB5 = ... # type: QPageSize.PageSizeId
  3642. EnvelopeB6 = ... # type: QPageSize.PageSizeId
  3643. EnvelopeC0 = ... # type: QPageSize.PageSizeId
  3644. EnvelopeC1 = ... # type: QPageSize.PageSizeId
  3645. EnvelopeC2 = ... # type: QPageSize.PageSizeId
  3646. EnvelopeC3 = ... # type: QPageSize.PageSizeId
  3647. EnvelopeC4 = ... # type: QPageSize.PageSizeId
  3648. EnvelopeC6 = ... # type: QPageSize.PageSizeId
  3649. EnvelopeC65 = ... # type: QPageSize.PageSizeId
  3650. EnvelopeC7 = ... # type: QPageSize.PageSizeId
  3651. Envelope9 = ... # type: QPageSize.PageSizeId
  3652. Envelope11 = ... # type: QPageSize.PageSizeId
  3653. Envelope12 = ... # type: QPageSize.PageSizeId
  3654. Envelope14 = ... # type: QPageSize.PageSizeId
  3655. EnvelopeMonarch = ... # type: QPageSize.PageSizeId
  3656. EnvelopePersonal = ... # type: QPageSize.PageSizeId
  3657. EnvelopeChou3 = ... # type: QPageSize.PageSizeId
  3658. EnvelopeChou4 = ... # type: QPageSize.PageSizeId
  3659. EnvelopeInvite = ... # type: QPageSize.PageSizeId
  3660. EnvelopeItalian = ... # type: QPageSize.PageSizeId
  3661. EnvelopeKaku2 = ... # type: QPageSize.PageSizeId
  3662. EnvelopeKaku3 = ... # type: QPageSize.PageSizeId
  3663. EnvelopePrc1 = ... # type: QPageSize.PageSizeId
  3664. EnvelopePrc2 = ... # type: QPageSize.PageSizeId
  3665. EnvelopePrc3 = ... # type: QPageSize.PageSizeId
  3666. EnvelopePrc4 = ... # type: QPageSize.PageSizeId
  3667. EnvelopePrc5 = ... # type: QPageSize.PageSizeId
  3668. EnvelopePrc6 = ... # type: QPageSize.PageSizeId
  3669. EnvelopePrc7 = ... # type: QPageSize.PageSizeId
  3670. EnvelopePrc8 = ... # type: QPageSize.PageSizeId
  3671. EnvelopePrc9 = ... # type: QPageSize.PageSizeId
  3672. EnvelopePrc10 = ... # type: QPageSize.PageSizeId
  3673. EnvelopeYou4 = ... # type: QPageSize.PageSizeId
  3674. AnsiA = ... # type: QPageSize.PageSizeId
  3675. AnsiB = ... # type: QPageSize.PageSizeId
  3676. EnvelopeC5 = ... # type: QPageSize.PageSizeId
  3677. EnvelopeDL = ... # type: QPageSize.PageSizeId
  3678. Envelope10 = ... # type: QPageSize.PageSizeId
  3679. LastPageSize = ... # type: QPageSize.PageSizeId
  3680. @typing.overload
  3681. def __init__(self) -> None: ...
  3682. @typing.overload
  3683. def __init__(self, pageSizeId: 'QPageSize.PageSizeId') -> None: ...
  3684. @typing.overload
  3685. def __init__(self, pointSize: QtCore.QSize, name: str|None = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ...
  3686. @typing.overload
  3687. def __init__(self, size: QtCore.QSizeF, units: 'QPageSize.Unit', name: str|None = ..., matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> None: ...
  3688. @typing.overload
  3689. def __init__(self, other: 'QPageSize') -> None: ...
  3690. def __ne__(self, other: object): ...
  3691. def __eq__(self, other: object): ...
  3692. def rectPixels(self, resolution: int) -> QtCore.QRect: ...
  3693. def rectPoints(self) -> QtCore.QRect: ...
  3694. def rect(self, units: 'QPageSize.Unit') -> QtCore.QRectF: ...
  3695. @typing.overload
  3696. def sizePixels(self, resolution: int) -> QtCore.QSize: ...
  3697. @typing.overload
  3698. @staticmethod
  3699. def sizePixels(pageSizeId: 'QPageSize.PageSizeId', resolution: int) -> QtCore.QSize: ...
  3700. @typing.overload
  3701. def sizePoints(self) -> QtCore.QSize: ...
  3702. @typing.overload
  3703. @staticmethod
  3704. def sizePoints(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSize: ...
  3705. @typing.overload
  3706. def size(self, units: 'QPageSize.Unit') -> QtCore.QSizeF: ...
  3707. @typing.overload
  3708. @staticmethod
  3709. def size(pageSizeId: 'QPageSize.PageSizeId', units: 'QPageSize.Unit') -> QtCore.QSizeF: ...
  3710. @typing.overload
  3711. def definitionUnits(self) -> 'QPageSize.Unit': ...
  3712. @typing.overload
  3713. @staticmethod
  3714. def definitionUnits(pageSizeId: 'QPageSize.PageSizeId') -> 'QPageSize.Unit': ...
  3715. @typing.overload
  3716. def definitionSize(self) -> QtCore.QSizeF: ...
  3717. @typing.overload
  3718. @staticmethod
  3719. def definitionSize(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSizeF: ...
  3720. @typing.overload
  3721. def windowsId(self) -> int: ...
  3722. @typing.overload
  3723. @staticmethod
  3724. def windowsId(pageSizeId: 'QPageSize.PageSizeId') -> int: ...
  3725. @typing.overload
  3726. def id(self) -> 'QPageSize.PageSizeId': ...
  3727. @typing.overload
  3728. @staticmethod
  3729. def id(pointSize: QtCore.QSize, matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
  3730. @typing.overload
  3731. @staticmethod
  3732. def id(size: QtCore.QSizeF, units: 'QPageSize.Unit', matchPolicy: 'QPageSize.SizeMatchPolicy' = ...) -> 'QPageSize.PageSizeId': ...
  3733. @typing.overload
  3734. @staticmethod
  3735. def id(windowsId: int) -> 'QPageSize.PageSizeId': ...
  3736. @typing.overload
  3737. def name(self) -> str: ...
  3738. @typing.overload
  3739. @staticmethod
  3740. def name(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
  3741. @typing.overload
  3742. def key(self) -> str: ...
  3743. @typing.overload
  3744. @staticmethod
  3745. def key(pageSizeId: 'QPageSize.PageSizeId') -> str: ...
  3746. def isValid(self) -> bool: ...
  3747. def isEquivalentTo(self, other: 'QPageSize') -> bool: ...
  3748. def swap(self, other: 'QPageSize') -> None: ...
  3749. class QWindow(QtCore.QObject, QSurface):
  3750. class Visibility(enum.Enum):
  3751. Hidden = ... # type: QWindow.Visibility
  3752. AutomaticVisibility = ... # type: QWindow.Visibility
  3753. Windowed = ... # type: QWindow.Visibility
  3754. Minimized = ... # type: QWindow.Visibility
  3755. Maximized = ... # type: QWindow.Visibility
  3756. FullScreen = ... # type: QWindow.Visibility
  3757. class AncestorMode(enum.Enum):
  3758. ExcludeTransients = ... # type: QWindow.AncestorMode
  3759. IncludeTransients = ... # type: QWindow.AncestorMode
  3760. @typing.overload
  3761. def __init__(self, screen: 'QScreen|None' = ...) -> None: ...
  3762. @typing.overload
  3763. def __init__(self, parent: 'QWindow|None') -> None: ...
  3764. flagsChanged: typing.ClassVar[QtCore.pyqtSignal]
  3765. safeAreaMarginsChanged: typing.ClassVar[QtCore.pyqtSignal]
  3766. def safeAreaMargins(self) -> QtCore.QMargins: ...
  3767. def nativeEvent(self, eventType: QtCore.QByteArray|bytes|bytearray|memoryview, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ...
  3768. def closeEvent(self, a0: QCloseEvent|None) -> None: ...
  3769. def paintEvent(self, a0: QPaintEvent|None) -> None: ...
  3770. def startSystemMove(self) -> bool: ...
  3771. def startSystemResize(self, edges: QtCore.Qt.Edge) -> bool: ...
  3772. def setWindowStates(self, states: QtCore.Qt.WindowState) -> None: ...
  3773. def windowStates(self) -> QtCore.Qt.WindowState: ...
  3774. def setFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ...
  3775. opacityChanged: typing.ClassVar[QtCore.pyqtSignal]
  3776. activeChanged: typing.ClassVar[QtCore.pyqtSignal]
  3777. visibilityChanged: typing.ClassVar[QtCore.pyqtSignal]
  3778. @staticmethod
  3779. def fromWinId(id: PyQt6.sip.voidptr) -> 'QWindow|None': ...
  3780. def mask(self) -> 'QRegion': ...
  3781. def setMask(self, region: 'QRegion') -> None: ...
  3782. def opacity(self) -> float: ...
  3783. def setVisibility(self, v: 'QWindow.Visibility') -> None: ...
  3784. def visibility(self) -> 'QWindow.Visibility': ...
  3785. def tabletEvent(self, a0: QTabletEvent|None) -> None: ...
  3786. def touchEvent(self, a0: QTouchEvent|None) -> None: ...
  3787. def wheelEvent(self, a0: QWheelEvent|None) -> None: ...
  3788. def mouseMoveEvent(self, a0: QMouseEvent|None) -> None: ...
  3789. def mouseDoubleClickEvent(self, a0: QMouseEvent|None) -> None: ...
  3790. def mouseReleaseEvent(self, a0: QMouseEvent|None) -> None: ...
  3791. def mousePressEvent(self, a0: QMouseEvent|None) -> None: ...
  3792. def keyReleaseEvent(self, a0: QKeyEvent|None) -> None: ...
  3793. def keyPressEvent(self, a0: QKeyEvent|None) -> None: ...
  3794. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  3795. def hideEvent(self, a0: QHideEvent|None) -> None: ...
  3796. def showEvent(self, a0: QShowEvent|None) -> None: ...
  3797. def focusOutEvent(self, a0: QFocusEvent|None) -> None: ...
  3798. def focusInEvent(self, a0: QFocusEvent|None) -> None: ...
  3799. def moveEvent(self, a0: QMoveEvent|None) -> None: ...
  3800. def resizeEvent(self, a0: QResizeEvent|None) -> None: ...
  3801. def exposeEvent(self, a0: QExposeEvent|None) -> None: ...
  3802. windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3803. focusObjectChanged: typing.ClassVar[QtCore.pyqtSignal]
  3804. contentOrientationChanged: typing.ClassVar[QtCore.pyqtSignal]
  3805. visibleChanged: typing.ClassVar[QtCore.pyqtSignal]
  3806. maximumHeightChanged: typing.ClassVar[QtCore.pyqtSignal]
  3807. maximumWidthChanged: typing.ClassVar[QtCore.pyqtSignal]
  3808. minimumHeightChanged: typing.ClassVar[QtCore.pyqtSignal]
  3809. minimumWidthChanged: typing.ClassVar[QtCore.pyqtSignal]
  3810. heightChanged: typing.ClassVar[QtCore.pyqtSignal]
  3811. widthChanged: typing.ClassVar[QtCore.pyqtSignal]
  3812. yChanged: typing.ClassVar[QtCore.pyqtSignal]
  3813. xChanged: typing.ClassVar[QtCore.pyqtSignal]
  3814. windowStateChanged: typing.ClassVar[QtCore.pyqtSignal]
  3815. modalityChanged: typing.ClassVar[QtCore.pyqtSignal]
  3816. screenChanged: typing.ClassVar[QtCore.pyqtSignal]
  3817. def requestUpdate(self) -> None: ...
  3818. def alert(self, msec: int) -> None: ...
  3819. def setMaximumHeight(self, h: int) -> None: ...
  3820. def setMaximumWidth(self, w: int) -> None: ...
  3821. def setMinimumHeight(self, h: int) -> None: ...
  3822. def setMinimumWidth(self, w: int) -> None: ...
  3823. def setHeight(self, arg: int) -> None: ...
  3824. def setWidth(self, arg: int) -> None: ...
  3825. def setY(self, arg: int) -> None: ...
  3826. def setX(self, arg: int) -> None: ...
  3827. def setTitle(self, a0: str|None) -> None: ...
  3828. def lower(self) -> None: ...
  3829. def raise_(self) -> None: ...
  3830. def close(self) -> bool: ...
  3831. def showNormal(self) -> None: ...
  3832. def showFullScreen(self) -> None: ...
  3833. def showMaximized(self) -> None: ...
  3834. def showMinimized(self) -> None: ...
  3835. def hide(self) -> None: ...
  3836. def show(self) -> None: ...
  3837. def setVisible(self, visible: bool) -> None: ...
  3838. def unsetCursor(self) -> None: ...
  3839. def setCursor(self, a0: QCursor|QtCore.Qt.CursorShape) -> None: ...
  3840. def cursor(self) -> QCursor: ...
  3841. @typing.overload
  3842. def mapFromGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ...
  3843. @typing.overload
  3844. def mapFromGlobal(self, pos: QtCore.QPointF) -> QtCore.QPointF: ...
  3845. @typing.overload
  3846. def mapToGlobal(self, pos: QtCore.QPoint) -> QtCore.QPoint: ...
  3847. @typing.overload
  3848. def mapToGlobal(self, pos: QtCore.QPointF) -> QtCore.QPointF: ...
  3849. def focusObject(self) -> QtCore.QObject|None: ...
  3850. def setScreen(self, screen: 'QScreen|None') -> None: ...
  3851. def screen(self) -> 'QScreen|None': ...
  3852. def setMouseGrabEnabled(self, grab: bool) -> bool: ...
  3853. def setKeyboardGrabEnabled(self, grab: bool) -> bool: ...
  3854. def destroy(self) -> None: ...
  3855. def icon(self) -> QIcon: ...
  3856. def setIcon(self, icon: QIcon) -> None: ...
  3857. def filePath(self) -> str: ...
  3858. def setFilePath(self, filePath: str|None) -> None: ...
  3859. @typing.overload
  3860. def resize(self, newSize: QtCore.QSize) -> None: ...
  3861. @typing.overload
  3862. def resize(self, w: int, h: int) -> None: ...
  3863. @typing.overload
  3864. def setPosition(self, pt: QtCore.QPoint) -> None: ...
  3865. @typing.overload
  3866. def setPosition(self, posx: int, posy: int) -> None: ...
  3867. def position(self) -> QtCore.QPoint: ...
  3868. def size(self) -> QtCore.QSize: ...
  3869. def y(self) -> int: ...
  3870. def x(self) -> int: ...
  3871. def height(self) -> int: ...
  3872. def width(self) -> int: ...
  3873. def setFramePosition(self, point: QtCore.QPoint) -> None: ...
  3874. def framePosition(self) -> QtCore.QPoint: ...
  3875. def frameGeometry(self) -> QtCore.QRect: ...
  3876. def frameMargins(self) -> QtCore.QMargins: ...
  3877. def geometry(self) -> QtCore.QRect: ...
  3878. @typing.overload
  3879. def setGeometry(self, posx: int, posy: int, w: int, h: int) -> None: ...
  3880. @typing.overload
  3881. def setGeometry(self, rect: QtCore.QRect) -> None: ...
  3882. def setSizeIncrement(self, size: QtCore.QSize) -> None: ...
  3883. def setBaseSize(self, size: QtCore.QSize) -> None: ...
  3884. def setMaximumSize(self, size: QtCore.QSize) -> None: ...
  3885. def setMinimumSize(self, size: QtCore.QSize) -> None: ...
  3886. def sizeIncrement(self) -> QtCore.QSize: ...
  3887. def baseSize(self) -> QtCore.QSize: ...
  3888. def maximumSize(self) -> QtCore.QSize: ...
  3889. def minimumSize(self) -> QtCore.QSize: ...
  3890. def maximumHeight(self) -> int: ...
  3891. def maximumWidth(self) -> int: ...
  3892. def minimumHeight(self) -> int: ...
  3893. def minimumWidth(self) -> int: ...
  3894. def isExposed(self) -> bool: ...
  3895. def isAncestorOf(self, child: 'QWindow|None', mode: 'QWindow.AncestorMode' = ...) -> bool: ...
  3896. def transientParent(self) -> 'QWindow|None': ...
  3897. def setTransientParent(self, parent: 'QWindow|None') -> None: ...
  3898. def setWindowState(self, state: QtCore.Qt.WindowState) -> None: ...
  3899. def windowState(self) -> QtCore.Qt.WindowState: ...
  3900. def devicePixelRatio(self) -> float: ...
  3901. def contentOrientation(self) -> QtCore.Qt.ScreenOrientation: ...
  3902. def reportContentOrientationChange(self, orientation: QtCore.Qt.ScreenOrientation) -> None: ...
  3903. def isActive(self) -> bool: ...
  3904. def requestActivate(self) -> None: ...
  3905. def setOpacity(self, level: float) -> None: ...
  3906. def title(self) -> str: ...
  3907. def type(self) -> QtCore.Qt.WindowType: ...
  3908. def flags(self) -> QtCore.Qt.WindowType: ...
  3909. def setFlags(self, flags: QtCore.Qt.WindowType) -> None: ...
  3910. def requestedFormat(self) -> 'QSurfaceFormat': ...
  3911. def format(self) -> 'QSurfaceFormat': ...
  3912. def setFormat(self, format: 'QSurfaceFormat') -> None: ...
  3913. def setModality(self, modality: QtCore.Qt.WindowModality) -> None: ...
  3914. def modality(self) -> QtCore.Qt.WindowModality: ...
  3915. def isModal(self) -> bool: ...
  3916. def isTopLevel(self) -> bool: ...
  3917. def setParent(self, parent: 'QWindow|None') -> None: ...
  3918. def parent(self, mode: 'QWindow.AncestorMode' = ...) -> 'QWindow|None': ...
  3919. def winId(self) -> PyQt6.sip.voidptr: ...
  3920. def create(self) -> None: ...
  3921. def isVisible(self) -> bool: ...
  3922. def surfaceType(self) -> QSurface.SurfaceType: ...
  3923. def setSurfaceType(self, surfaceType: QSurface.SurfaceType) -> None: ...
  3924. class QPaintDeviceWindow(QWindow, QPaintDevice):
  3925. def event(self, event: QtCore.QEvent|None) -> bool: ...
  3926. def exposeEvent(self, a0: QExposeEvent|None) -> None: ...
  3927. def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ...
  3928. def paintEvent(self, event: QPaintEvent|None) -> None: ...
  3929. @typing.overload
  3930. def update(self, rect: QtCore.QRect) -> None: ...
  3931. @typing.overload
  3932. def update(self, region: 'QRegion') -> None: ...
  3933. @typing.overload
  3934. def update(self) -> None: ...
  3935. class QTextItem(PyQt6.sip.simplewrapper):
  3936. class RenderFlag(enum.Flag):
  3937. RightToLeft = ... # type: QTextItem.RenderFlag
  3938. Overline = ... # type: QTextItem.RenderFlag
  3939. Underline = ... # type: QTextItem.RenderFlag
  3940. StrikeOut = ... # type: QTextItem.RenderFlag
  3941. @typing.overload
  3942. def __init__(self) -> None: ...
  3943. @typing.overload
  3944. def __init__(self, a0: 'QTextItem') -> None: ...
  3945. def font(self) -> QFont: ...
  3946. def text(self) -> str: ...
  3947. def renderFlags(self) -> 'QTextItem.RenderFlag': ...
  3948. def width(self) -> float: ...
  3949. def ascent(self) -> float: ...
  3950. def descent(self) -> float: ...
  3951. class QPaintEngine(PyQt6.sip.simplewrapper):
  3952. class Type(enum.Enum):
  3953. X11 = ... # type: QPaintEngine.Type
  3954. Windows = ... # type: QPaintEngine.Type
  3955. QuickDraw = ... # type: QPaintEngine.Type
  3956. CoreGraphics = ... # type: QPaintEngine.Type
  3957. MacPrinter = ... # type: QPaintEngine.Type
  3958. QWindowSystem = ... # type: QPaintEngine.Type
  3959. OpenGL = ... # type: QPaintEngine.Type
  3960. Picture = ... # type: QPaintEngine.Type
  3961. SVG = ... # type: QPaintEngine.Type
  3962. Raster = ... # type: QPaintEngine.Type
  3963. Direct3D = ... # type: QPaintEngine.Type
  3964. Pdf = ... # type: QPaintEngine.Type
  3965. OpenVG = ... # type: QPaintEngine.Type
  3966. OpenGL2 = ... # type: QPaintEngine.Type
  3967. PaintBuffer = ... # type: QPaintEngine.Type
  3968. Blitter = ... # type: QPaintEngine.Type
  3969. Direct2D = ... # type: QPaintEngine.Type
  3970. User = ... # type: QPaintEngine.Type
  3971. MaxUser = ... # type: QPaintEngine.Type
  3972. class PolygonDrawMode(enum.Enum):
  3973. OddEvenMode = ... # type: QPaintEngine.PolygonDrawMode
  3974. WindingMode = ... # type: QPaintEngine.PolygonDrawMode
  3975. ConvexMode = ... # type: QPaintEngine.PolygonDrawMode
  3976. PolylineMode = ... # type: QPaintEngine.PolygonDrawMode
  3977. class DirtyFlag(enum.Flag):
  3978. DirtyPen = ... # type: QPaintEngine.DirtyFlag
  3979. DirtyBrush = ... # type: QPaintEngine.DirtyFlag
  3980. DirtyBrushOrigin = ... # type: QPaintEngine.DirtyFlag
  3981. DirtyFont = ... # type: QPaintEngine.DirtyFlag
  3982. DirtyBackground = ... # type: QPaintEngine.DirtyFlag
  3983. DirtyBackgroundMode = ... # type: QPaintEngine.DirtyFlag
  3984. DirtyTransform = ... # type: QPaintEngine.DirtyFlag
  3985. DirtyClipRegion = ... # type: QPaintEngine.DirtyFlag
  3986. DirtyClipPath = ... # type: QPaintEngine.DirtyFlag
  3987. DirtyHints = ... # type: QPaintEngine.DirtyFlag
  3988. DirtyCompositionMode = ... # type: QPaintEngine.DirtyFlag
  3989. DirtyClipEnabled = ... # type: QPaintEngine.DirtyFlag
  3990. DirtyOpacity = ... # type: QPaintEngine.DirtyFlag
  3991. AllDirty = ... # type: QPaintEngine.DirtyFlag
  3992. class PaintEngineFeature(enum.Flag):
  3993. PrimitiveTransform = ... # type: QPaintEngine.PaintEngineFeature
  3994. PatternTransform = ... # type: QPaintEngine.PaintEngineFeature
  3995. PixmapTransform = ... # type: QPaintEngine.PaintEngineFeature
  3996. PatternBrush = ... # type: QPaintEngine.PaintEngineFeature
  3997. LinearGradientFill = ... # type: QPaintEngine.PaintEngineFeature
  3998. RadialGradientFill = ... # type: QPaintEngine.PaintEngineFeature
  3999. ConicalGradientFill = ... # type: QPaintEngine.PaintEngineFeature
  4000. AlphaBlend = ... # type: QPaintEngine.PaintEngineFeature
  4001. PorterDuff = ... # type: QPaintEngine.PaintEngineFeature
  4002. PainterPaths = ... # type: QPaintEngine.PaintEngineFeature
  4003. Antialiasing = ... # type: QPaintEngine.PaintEngineFeature
  4004. BrushStroke = ... # type: QPaintEngine.PaintEngineFeature
  4005. ConstantOpacity = ... # type: QPaintEngine.PaintEngineFeature
  4006. MaskedBrush = ... # type: QPaintEngine.PaintEngineFeature
  4007. PaintOutsidePaintEvent = ... # type: QPaintEngine.PaintEngineFeature
  4008. PerspectiveTransform = ... # type: QPaintEngine.PaintEngineFeature
  4009. BlendModes = ... # type: QPaintEngine.PaintEngineFeature
  4010. ObjectBoundingModeGradients = ... # type: QPaintEngine.PaintEngineFeature
  4011. RasterOpModes = ... # type: QPaintEngine.PaintEngineFeature
  4012. AllFeatures = ... # type: QPaintEngine.PaintEngineFeature
  4013. def __init__(self, features: 'QPaintEngine.PaintEngineFeature' = ...) -> None: ...
  4014. def hasFeature(self, feature: 'QPaintEngine.PaintEngineFeature') -> bool: ...
  4015. def painter(self) -> 'QPainter|None': ...
  4016. def type(self) -> 'QPaintEngine.Type': ...
  4017. def paintDevice(self) -> QPaintDevice|None: ...
  4018. def setPaintDevice(self, device: QPaintDevice|None) -> None: ...
  4019. def drawImage(self, r: QtCore.QRectF, pm: QImage, sr: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4020. def drawTiledPixmap(self, r: QtCore.QRectF, pixmap: QPixmap, s: QtCore.QPointF) -> None: ...
  4021. def drawTextItem(self, p: QtCore.QPointF, textItem: QTextItem) -> None: ...
  4022. def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ...
  4023. @typing.overload
  4024. def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None], mode: 'QPaintEngine.PolygonDrawMode') -> None: ...
  4025. @typing.overload
  4026. def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None], mode: 'QPaintEngine.PolygonDrawMode') -> None: ...
  4027. @typing.overload
  4028. def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ...
  4029. @typing.overload
  4030. def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ...
  4031. def drawPath(self, path: 'QPainterPath') -> None: ...
  4032. @typing.overload
  4033. def drawEllipse(self, r: QtCore.QRectF) -> None: ...
  4034. @typing.overload
  4035. def drawEllipse(self, r: QtCore.QRect) -> None: ...
  4036. @typing.overload
  4037. def drawLines(self, lines: PyQt6.sip.array[QtCore.QLine|None]) -> None: ...
  4038. @typing.overload
  4039. def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF|None]) -> None: ...
  4040. @typing.overload
  4041. def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect|None]) -> None: ...
  4042. @typing.overload
  4043. def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF|None]) -> None: ...
  4044. def updateState(self, state: 'QPaintEngineState') -> None: ...
  4045. def end(self) -> bool: ...
  4046. def begin(self, pdev: QPaintDevice|None) -> bool: ...
  4047. def setActive(self, newState: bool) -> None: ...
  4048. def isActive(self) -> bool: ...
  4049. class QPaintEngineState(PyQt6.sip.simplewrapper):
  4050. @typing.overload
  4051. def __init__(self) -> None: ...
  4052. @typing.overload
  4053. def __init__(self, a0: 'QPaintEngineState') -> None: ...
  4054. def penNeedsResolving(self) -> bool: ...
  4055. def brushNeedsResolving(self) -> bool: ...
  4056. def transform(self) -> 'QTransform': ...
  4057. def painter(self) -> 'QPainter|None': ...
  4058. def compositionMode(self) -> 'QPainter.CompositionMode': ...
  4059. def renderHints(self) -> 'QPainter.RenderHint': ...
  4060. def isClipEnabled(self) -> bool: ...
  4061. def clipPath(self) -> 'QPainterPath': ...
  4062. def clipRegion(self) -> 'QRegion': ...
  4063. def clipOperation(self) -> QtCore.Qt.ClipOperation: ...
  4064. def opacity(self) -> float: ...
  4065. def font(self) -> QFont: ...
  4066. def backgroundMode(self) -> QtCore.Qt.BGMode: ...
  4067. def backgroundBrush(self) -> QBrush: ...
  4068. def brushOrigin(self) -> QtCore.QPointF: ...
  4069. def brush(self) -> QBrush: ...
  4070. def pen(self) -> 'QPen': ...
  4071. def state(self) -> QPaintEngine.DirtyFlag: ...
  4072. class QPainter(PyQt6.sip.simplewrapper):
  4073. class PixmapFragmentHint(enum.Flag):
  4074. OpaqueHint = ... # type: QPainter.PixmapFragmentHint
  4075. class CompositionMode(enum.Enum):
  4076. CompositionMode_SourceOver = ... # type: QPainter.CompositionMode
  4077. CompositionMode_DestinationOver = ... # type: QPainter.CompositionMode
  4078. CompositionMode_Clear = ... # type: QPainter.CompositionMode
  4079. CompositionMode_Source = ... # type: QPainter.CompositionMode
  4080. CompositionMode_Destination = ... # type: QPainter.CompositionMode
  4081. CompositionMode_SourceIn = ... # type: QPainter.CompositionMode
  4082. CompositionMode_DestinationIn = ... # type: QPainter.CompositionMode
  4083. CompositionMode_SourceOut = ... # type: QPainter.CompositionMode
  4084. CompositionMode_DestinationOut = ... # type: QPainter.CompositionMode
  4085. CompositionMode_SourceAtop = ... # type: QPainter.CompositionMode
  4086. CompositionMode_DestinationAtop = ... # type: QPainter.CompositionMode
  4087. CompositionMode_Xor = ... # type: QPainter.CompositionMode
  4088. CompositionMode_Plus = ... # type: QPainter.CompositionMode
  4089. CompositionMode_Multiply = ... # type: QPainter.CompositionMode
  4090. CompositionMode_Screen = ... # type: QPainter.CompositionMode
  4091. CompositionMode_Overlay = ... # type: QPainter.CompositionMode
  4092. CompositionMode_Darken = ... # type: QPainter.CompositionMode
  4093. CompositionMode_Lighten = ... # type: QPainter.CompositionMode
  4094. CompositionMode_ColorDodge = ... # type: QPainter.CompositionMode
  4095. CompositionMode_ColorBurn = ... # type: QPainter.CompositionMode
  4096. CompositionMode_HardLight = ... # type: QPainter.CompositionMode
  4097. CompositionMode_SoftLight = ... # type: QPainter.CompositionMode
  4098. CompositionMode_Difference = ... # type: QPainter.CompositionMode
  4099. CompositionMode_Exclusion = ... # type: QPainter.CompositionMode
  4100. RasterOp_SourceOrDestination = ... # type: QPainter.CompositionMode
  4101. RasterOp_SourceAndDestination = ... # type: QPainter.CompositionMode
  4102. RasterOp_SourceXorDestination = ... # type: QPainter.CompositionMode
  4103. RasterOp_NotSourceAndNotDestination = ... # type: QPainter.CompositionMode
  4104. RasterOp_NotSourceOrNotDestination = ... # type: QPainter.CompositionMode
  4105. RasterOp_NotSourceXorDestination = ... # type: QPainter.CompositionMode
  4106. RasterOp_NotSource = ... # type: QPainter.CompositionMode
  4107. RasterOp_NotSourceAndDestination = ... # type: QPainter.CompositionMode
  4108. RasterOp_SourceAndNotDestination = ... # type: QPainter.CompositionMode
  4109. RasterOp_NotSourceOrDestination = ... # type: QPainter.CompositionMode
  4110. RasterOp_SourceOrNotDestination = ... # type: QPainter.CompositionMode
  4111. RasterOp_ClearDestination = ... # type: QPainter.CompositionMode
  4112. RasterOp_SetDestination = ... # type: QPainter.CompositionMode
  4113. RasterOp_NotDestination = ... # type: QPainter.CompositionMode
  4114. class RenderHint(enum.Flag):
  4115. Antialiasing = ... # type: QPainter.RenderHint
  4116. TextAntialiasing = ... # type: QPainter.RenderHint
  4117. SmoothPixmapTransform = ... # type: QPainter.RenderHint
  4118. LosslessImageRendering = ... # type: QPainter.RenderHint
  4119. VerticalSubpixelPositioning = ... # type: QPainter.RenderHint
  4120. NonCosmeticBrushPatterns = ... # type: QPainter.RenderHint
  4121. class PixmapFragment(PyQt6.sip.simplewrapper):
  4122. height = ... # type: float
  4123. opacity = ... # type: float
  4124. rotation = ... # type: float
  4125. scaleX = ... # type: float
  4126. scaleY = ... # type: float
  4127. sourceLeft = ... # type: float
  4128. sourceTop = ... # type: float
  4129. width = ... # type: float
  4130. x = ... # type: float
  4131. y = ... # type: float
  4132. @typing.overload
  4133. def __init__(self) -> None: ...
  4134. @typing.overload
  4135. def __init__(self, a0: 'QPainter.PixmapFragment') -> None: ...
  4136. @staticmethod
  4137. def create(pos: QtCore.QPointF, sourceRect: QtCore.QRectF, scaleX: float = ..., scaleY: float = ..., rotation: float = ..., opacity: float = ...) -> 'QPainter.PixmapFragment': ...
  4138. @typing.overload
  4139. def __init__(self) -> None: ...
  4140. @typing.overload
  4141. def __init__(self, a0: QPaintDevice|None) -> None: ...
  4142. def brushOriginF(self) -> QtCore.QPointF: ...
  4143. def drawGlyphRun(self, position: QtCore.QPointF, glyphRun: QGlyphRun) -> None: ...
  4144. def clipBoundingRect(self) -> QtCore.QRectF: ...
  4145. @typing.overload
  4146. def drawStaticText(self, topLeftPosition: QtCore.QPointF, staticText: 'QStaticText') -> None: ...
  4147. @typing.overload
  4148. def drawStaticText(self, p: QtCore.QPoint, staticText: 'QStaticText') -> None: ...
  4149. @typing.overload
  4150. def drawStaticText(self, x: int, y: int, staticText: 'QStaticText') -> None: ...
  4151. def drawPixmapFragments(self, fragments: PyQt6.sip.array['QPainter.PixmapFragment|None'], pixmap: QPixmap, hints: 'QPainter.PixmapFragmentHint' = ...) -> None: ...
  4152. def endNativePainting(self) -> None: ...
  4153. def beginNativePainting(self) -> None: ...
  4154. @typing.overload
  4155. def drawRoundedRect(self, rect: QtCore.QRectF, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ...
  4156. @typing.overload
  4157. def drawRoundedRect(self, x: int, y: int, w: int, h: int, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ...
  4158. @typing.overload
  4159. def drawRoundedRect(self, rect: QtCore.QRect, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ...
  4160. def testRenderHint(self, hint: 'QPainter.RenderHint') -> bool: ...
  4161. def combinedTransform(self) -> 'QTransform': ...
  4162. def worldTransform(self) -> 'QTransform': ...
  4163. def setWorldTransform(self, matrix: 'QTransform', combine: bool = ...) -> None: ...
  4164. def resetTransform(self) -> None: ...
  4165. def deviceTransform(self) -> 'QTransform': ...
  4166. def transform(self) -> 'QTransform': ...
  4167. def setTransform(self, transform: 'QTransform', combine: bool = ...) -> None: ...
  4168. def setWorldMatrixEnabled(self, enabled: bool) -> None: ...
  4169. def worldMatrixEnabled(self) -> bool: ...
  4170. def setOpacity(self, opacity: float) -> None: ...
  4171. def opacity(self) -> float: ...
  4172. @typing.overload
  4173. def drawImage(self, r: QtCore.QRectF, image: QImage) -> None: ...
  4174. @typing.overload
  4175. def drawImage(self, targetRect: QtCore.QRectF, image: QImage, sourceRect: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4176. @typing.overload
  4177. def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ...
  4178. @typing.overload
  4179. def drawImage(self, targetRect: QtCore.QRect, image: QImage, sourceRect: QtCore.QRect, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4180. @typing.overload
  4181. def drawImage(self, p: QtCore.QPointF, image: QImage) -> None: ...
  4182. @typing.overload
  4183. def drawImage(self, p: QtCore.QPointF, image: QImage, sr: QtCore.QRectF, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4184. @typing.overload
  4185. def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ...
  4186. @typing.overload
  4187. def drawImage(self, p: QtCore.QPoint, image: QImage, sr: QtCore.QRect, flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4188. @typing.overload
  4189. def drawImage(self, x: int, y: int, image: QImage, sx: int = ..., sy: int = ..., sw: int = ..., sh: int = ..., flags: QtCore.Qt.ImageConversionFlag = ...) -> None: ...
  4190. @typing.overload
  4191. def drawPoint(self, p: QtCore.QPointF) -> None: ...
  4192. @typing.overload
  4193. def drawPoint(self, x: int, y: int) -> None: ...
  4194. @typing.overload
  4195. def drawPoint(self, p: QtCore.QPoint) -> None: ...
  4196. @typing.overload
  4197. def drawRect(self, rect: QtCore.QRectF) -> None: ...
  4198. @typing.overload
  4199. def drawRect(self, x: int, y: int, w: int, h: int) -> None: ...
  4200. @typing.overload
  4201. def drawRect(self, r: QtCore.QRect) -> None: ...
  4202. @typing.overload
  4203. def drawLine(self, l: QtCore.QLineF) -> None: ...
  4204. @typing.overload
  4205. def drawLine(self, line: QtCore.QLine) -> None: ...
  4206. @typing.overload
  4207. def drawLine(self, x1: int, y1: int, x2: int, y2: int) -> None: ...
  4208. @typing.overload
  4209. def drawLine(self, p1: QtCore.QPoint, p2: QtCore.QPoint) -> None: ...
  4210. @typing.overload
  4211. def drawLine(self, p1: QtCore.QPointF, p2: QtCore.QPointF) -> None: ...
  4212. def paintEngine(self) -> QPaintEngine|None: ...
  4213. def setRenderHints(self, hints: 'QPainter.RenderHint', on: bool = ...) -> None: ...
  4214. def renderHints(self) -> 'QPainter.RenderHint': ...
  4215. def setRenderHint(self, hint: 'QPainter.RenderHint', on: bool = ...) -> None: ...
  4216. @typing.overload
  4217. def eraseRect(self, a0: QtCore.QRectF) -> None: ...
  4218. @typing.overload
  4219. def eraseRect(self, rect: QtCore.QRect) -> None: ...
  4220. @typing.overload
  4221. def eraseRect(self, x: int, y: int, w: int, h: int) -> None: ...
  4222. @typing.overload
  4223. def fillRect(self, a0: QtCore.QRectF, a1: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4224. @typing.overload
  4225. def fillRect(self, a0: QtCore.QRect, a1: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4226. @typing.overload
  4227. def fillRect(self, x: int, y: int, w: int, h: int, b: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4228. @typing.overload
  4229. def fillRect(self, a0: QtCore.QRectF, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4230. @typing.overload
  4231. def fillRect(self, a0: QtCore.QRect, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4232. @typing.overload
  4233. def fillRect(self, x: int, y: int, w: int, h: int, b: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4234. @typing.overload
  4235. def fillRect(self, x: int, y: int, w: int, h: int, c: QtCore.Qt.GlobalColor) -> None: ...
  4236. @typing.overload
  4237. def fillRect(self, r: QtCore.QRect, c: QtCore.Qt.GlobalColor) -> None: ...
  4238. @typing.overload
  4239. def fillRect(self, r: QtCore.QRectF, c: QtCore.Qt.GlobalColor) -> None: ...
  4240. @typing.overload
  4241. def fillRect(self, x: int, y: int, w: int, h: int, style: QtCore.Qt.BrushStyle) -> None: ...
  4242. @typing.overload
  4243. def fillRect(self, r: QtCore.QRect, style: QtCore.Qt.BrushStyle) -> None: ...
  4244. @typing.overload
  4245. def fillRect(self, r: QtCore.QRectF, style: QtCore.Qt.BrushStyle) -> None: ...
  4246. @typing.overload
  4247. def fillRect(self, x: int, y: int, w: int, h: int, preset: QGradient.Preset) -> None: ...
  4248. @typing.overload
  4249. def fillRect(self, r: QtCore.QRect, preset: QGradient.Preset) -> None: ...
  4250. @typing.overload
  4251. def fillRect(self, r: QtCore.QRectF, preset: QGradient.Preset) -> None: ...
  4252. @typing.overload
  4253. def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str|None) -> QtCore.QRectF: ...
  4254. @typing.overload
  4255. def boundingRect(self, rect: QtCore.QRect, flags: int, text: str|None) -> QtCore.QRect: ...
  4256. @typing.overload
  4257. def boundingRect(self, rectangle: QtCore.QRectF, text: str|None, option: 'QTextOption' = ...) -> QtCore.QRectF: ...
  4258. @typing.overload
  4259. def boundingRect(self, x: int, y: int, w: int, h: int, flags: int, text: str|None) -> QtCore.QRect: ...
  4260. @typing.overload
  4261. def drawText(self, p: QtCore.QPointF, s: str|None) -> None: ...
  4262. @typing.overload
  4263. def drawText(self, rectangle: QtCore.QRectF, flags: int, text: str|None) -> QtCore.QRectF|None: ...
  4264. @typing.overload
  4265. def drawText(self, rectangle: QtCore.QRect, flags: int, text: str|None) -> QtCore.QRect|None: ...
  4266. @typing.overload
  4267. def drawText(self, rectangle: QtCore.QRectF, text: str|None, option: 'QTextOption' = ...) -> None: ...
  4268. @typing.overload
  4269. def drawText(self, p: QtCore.QPoint, s: str|None) -> None: ...
  4270. @typing.overload
  4271. def drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str|None) -> QtCore.QRect|None: ...
  4272. @typing.overload
  4273. def drawText(self, x: int, y: int, s: str|None) -> None: ...
  4274. def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ...
  4275. def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ...
  4276. @typing.overload
  4277. def drawPixmap(self, targetRect: QtCore.QRectF, pixmap: QPixmap, sourceRect: QtCore.QRectF) -> None: ...
  4278. @typing.overload
  4279. def drawPixmap(self, targetRect: QtCore.QRect, pixmap: QPixmap, sourceRect: QtCore.QRect) -> None: ...
  4280. @typing.overload
  4281. def drawPixmap(self, p: QtCore.QPointF, pm: QPixmap) -> None: ...
  4282. @typing.overload
  4283. def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap) -> None: ...
  4284. @typing.overload
  4285. def drawPixmap(self, r: QtCore.QRect, pm: QPixmap) -> None: ...
  4286. @typing.overload
  4287. def drawPixmap(self, x: int, y: int, pm: QPixmap) -> None: ...
  4288. @typing.overload
  4289. def drawPixmap(self, x: int, y: int, w: int, h: int, pm: QPixmap) -> None: ...
  4290. @typing.overload
  4291. def drawPixmap(self, x: int, y: int, w: int, h: int, pm: QPixmap, sx: int, sy: int, sw: int, sh: int) -> None: ...
  4292. @typing.overload
  4293. def drawPixmap(self, x: int, y: int, pm: QPixmap, sx: int, sy: int, sw: int, sh: int) -> None: ...
  4294. @typing.overload
  4295. def drawPixmap(self, p: QtCore.QPointF, pm: QPixmap, sr: QtCore.QRectF) -> None: ...
  4296. @typing.overload
  4297. def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap, sr: QtCore.QRect) -> None: ...
  4298. @typing.overload
  4299. def drawPicture(self, p: QtCore.QPointF, picture: 'QPicture') -> None: ...
  4300. @typing.overload
  4301. def drawPicture(self, x: int, y: int, p: 'QPicture') -> None: ...
  4302. @typing.overload
  4303. def drawPicture(self, pt: QtCore.QPoint, p: 'QPicture') -> None: ...
  4304. @typing.overload
  4305. def drawTiledPixmap(self, rectangle: QtCore.QRectF, pixmap: QPixmap, pos: QtCore.QPointF = ...) -> None: ...
  4306. @typing.overload
  4307. def drawTiledPixmap(self, rectangle: QtCore.QRect, pixmap: QPixmap, pos: QtCore.QPoint = ...) -> None: ...
  4308. @typing.overload
  4309. def drawTiledPixmap(self, x: int, y: int, width: int, height: int, pixmap: QPixmap, sx: int = ..., sy: int = ...) -> None: ...
  4310. @typing.overload
  4311. def drawChord(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ...
  4312. @typing.overload
  4313. def drawChord(self, rect: QtCore.QRect, a: int, alen: int) -> None: ...
  4314. @typing.overload
  4315. def drawChord(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ...
  4316. @typing.overload
  4317. def drawPie(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ...
  4318. @typing.overload
  4319. def drawPie(self, rect: QtCore.QRect, a: int, alen: int) -> None: ...
  4320. @typing.overload
  4321. def drawPie(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ...
  4322. @typing.overload
  4323. def drawArc(self, rect: QtCore.QRectF, a: int, alen: int) -> None: ...
  4324. @typing.overload
  4325. def drawArc(self, r: QtCore.QRect, a: int, alen: int) -> None: ...
  4326. @typing.overload
  4327. def drawArc(self, x: int, y: int, w: int, h: int, a: int, alen: int) -> None: ...
  4328. @typing.overload
  4329. def drawConvexPolygon(self, poly: 'QPolygonF') -> None: ...
  4330. @typing.overload
  4331. def drawConvexPolygon(self, poly: 'QPolygon') -> None: ...
  4332. @typing.overload
  4333. def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ...
  4334. @typing.overload
  4335. def drawConvexPolygon(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ...
  4336. @typing.overload
  4337. def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ...
  4338. @typing.overload
  4339. def drawConvexPolygon(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ...
  4340. @typing.overload
  4341. def drawPolygon(self, points: 'QPolygonF', fillRule: QtCore.Qt.FillRule = ...) -> None: ...
  4342. @typing.overload
  4343. def drawPolygon(self, points: 'QPolygon', fillRule: QtCore.Qt.FillRule = ...) -> None: ...
  4344. @typing.overload
  4345. def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPointF|None], fillRule: QtCore.Qt.FillRule = ...) -> None: ...
  4346. @typing.overload
  4347. def drawPolygon(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ...
  4348. @typing.overload
  4349. def drawPolygon(self, points: PyQt6.sip.array[QtCore.QPoint|None], fillRule: QtCore.Qt.FillRule = ...) -> None: ...
  4350. @typing.overload
  4351. def drawPolygon(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ...
  4352. @typing.overload
  4353. def drawPolyline(self, polyline: 'QPolygonF') -> None: ...
  4354. @typing.overload
  4355. def drawPolyline(self, polyline: 'QPolygon') -> None: ...
  4356. @typing.overload
  4357. def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ...
  4358. @typing.overload
  4359. def drawPolyline(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ...
  4360. @typing.overload
  4361. def drawPolyline(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ...
  4362. @typing.overload
  4363. def drawPolyline(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ...
  4364. @typing.overload
  4365. def drawEllipse(self, r: QtCore.QRectF) -> None: ...
  4366. @typing.overload
  4367. def drawEllipse(self, r: QtCore.QRect) -> None: ...
  4368. @typing.overload
  4369. def drawEllipse(self, x: int, y: int, w: int, h: int) -> None: ...
  4370. @typing.overload
  4371. def drawEllipse(self, center: QtCore.QPointF, rx: float, ry: float) -> None: ...
  4372. @typing.overload
  4373. def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ...
  4374. @typing.overload
  4375. def drawRects(self, rects: PyQt6.sip.array[QtCore.QRectF|None]) -> None: ...
  4376. @typing.overload
  4377. def drawRects(self, rect: QtCore.QRectF|None, *args: QtCore.QRectF) -> None: ...
  4378. @typing.overload
  4379. def drawRects(self, rects: PyQt6.sip.array[QtCore.QRect|None]) -> None: ...
  4380. @typing.overload
  4381. def drawRects(self, rect: QtCore.QRect|None, *args: QtCore.QRect) -> None: ...
  4382. @typing.overload
  4383. def drawLines(self, lines: PyQt6.sip.array[QtCore.QLineF|None]) -> None: ...
  4384. @typing.overload
  4385. def drawLines(self, line: QtCore.QLineF|None, *args: QtCore.QLineF) -> None: ...
  4386. @typing.overload
  4387. def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ...
  4388. @typing.overload
  4389. def drawLines(self, pointPair: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ...
  4390. @typing.overload
  4391. def drawLines(self, lines: PyQt6.sip.array[QtCore.QLine|None]) -> None: ...
  4392. @typing.overload
  4393. def drawLines(self, line: QtCore.QLine|None, *args: QtCore.QLine) -> None: ...
  4394. @typing.overload
  4395. def drawLines(self, pointPairs: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ...
  4396. @typing.overload
  4397. def drawLines(self, pointPair: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ...
  4398. @typing.overload
  4399. def drawPoints(self, points: 'QPolygonF') -> None: ...
  4400. @typing.overload
  4401. def drawPoints(self, points: 'QPolygon') -> None: ...
  4402. @typing.overload
  4403. def drawPoints(self, points: PyQt6.sip.array[QtCore.QPointF|None]) -> None: ...
  4404. @typing.overload
  4405. def drawPoints(self, point: QtCore.QPointF|None, *args: QtCore.QPointF) -> None: ...
  4406. @typing.overload
  4407. def drawPoints(self, points: PyQt6.sip.array[QtCore.QPoint|None]) -> None: ...
  4408. @typing.overload
  4409. def drawPoints(self, point: QtCore.QPoint|None, *args: QtCore.QPoint) -> None: ...
  4410. def drawPath(self, path: 'QPainterPath') -> None: ...
  4411. def fillPath(self, path: 'QPainterPath', brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4412. def strokePath(self, path: 'QPainterPath', pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4413. def viewTransformEnabled(self) -> bool: ...
  4414. def setViewTransformEnabled(self, enable: bool) -> None: ...
  4415. @typing.overload
  4416. def setViewport(self, viewport: QtCore.QRect) -> None: ...
  4417. @typing.overload
  4418. def setViewport(self, x: int, y: int, w: int, h: int) -> None: ...
  4419. def viewport(self) -> QtCore.QRect: ...
  4420. @typing.overload
  4421. def setWindow(self, window: QtCore.QRect) -> None: ...
  4422. @typing.overload
  4423. def setWindow(self, x: int, y: int, w: int, h: int) -> None: ...
  4424. def window(self) -> QtCore.QRect: ...
  4425. @typing.overload
  4426. def translate(self, offset: QtCore.QPointF) -> None: ...
  4427. @typing.overload
  4428. def translate(self, dx: float, dy: float) -> None: ...
  4429. @typing.overload
  4430. def translate(self, offset: QtCore.QPoint) -> None: ...
  4431. def rotate(self, a: float) -> None: ...
  4432. def shear(self, sh: float, sv: float) -> None: ...
  4433. def scale(self, sx: float, sy: float) -> None: ...
  4434. def restore(self) -> None: ...
  4435. def save(self) -> None: ...
  4436. def hasClipping(self) -> bool: ...
  4437. def setClipping(self, enable: bool) -> None: ...
  4438. def setClipPath(self, path: 'QPainterPath', operation: QtCore.Qt.ClipOperation = ...) -> None: ...
  4439. def setClipRegion(self, region: 'QRegion', operation: QtCore.Qt.ClipOperation = ...) -> None: ...
  4440. @typing.overload
  4441. def setClipRect(self, rectangle: QtCore.QRectF, operation: QtCore.Qt.ClipOperation = ...) -> None: ...
  4442. @typing.overload
  4443. def setClipRect(self, x: int, y: int, width: int, height: int, operation: QtCore.Qt.ClipOperation = ...) -> None: ...
  4444. @typing.overload
  4445. def setClipRect(self, rectangle: QtCore.QRect, operation: QtCore.Qt.ClipOperation = ...) -> None: ...
  4446. def clipPath(self) -> 'QPainterPath': ...
  4447. def clipRegion(self) -> 'QRegion': ...
  4448. def background(self) -> QBrush: ...
  4449. def setBackground(self, bg: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4450. @typing.overload
  4451. def setBrushOrigin(self, a0: QtCore.QPointF) -> None: ...
  4452. @typing.overload
  4453. def setBrushOrigin(self, x: int, y: int) -> None: ...
  4454. @typing.overload
  4455. def setBrushOrigin(self, p: QtCore.QPoint) -> None: ...
  4456. def brushOrigin(self) -> QtCore.QPoint: ...
  4457. def backgroundMode(self) -> QtCore.Qt.BGMode: ...
  4458. def setBackgroundMode(self, mode: QtCore.Qt.BGMode) -> None: ...
  4459. def brush(self) -> QBrush: ...
  4460. @typing.overload
  4461. def setBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4462. @typing.overload
  4463. def setBrush(self, style: QtCore.Qt.BrushStyle) -> None: ...
  4464. def pen(self) -> 'QPen': ...
  4465. @typing.overload
  4466. def setPen(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4467. @typing.overload
  4468. def setPen(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4469. @typing.overload
  4470. def setPen(self, style: QtCore.Qt.PenStyle) -> None: ...
  4471. def fontInfo(self) -> QFontInfo: ...
  4472. def fontMetrics(self) -> QFontMetrics: ...
  4473. def setFont(self, f: QFont) -> None: ...
  4474. def font(self) -> QFont: ...
  4475. def compositionMode(self) -> 'QPainter.CompositionMode': ...
  4476. def setCompositionMode(self, mode: 'QPainter.CompositionMode') -> None: ...
  4477. def isActive(self) -> bool: ...
  4478. def end(self) -> bool: ...
  4479. def begin(self, a0: QPaintDevice|None) -> bool: ...
  4480. def device(self) -> QPaintDevice|None: ...
  4481. def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ...
  4482. def __enter__(self) -> typing.Any: ...
  4483. class QPainterPath(PyQt6.sip.simplewrapper):
  4484. class ElementType(enum.Enum):
  4485. MoveToElement = ... # type: QPainterPath.ElementType
  4486. LineToElement = ... # type: QPainterPath.ElementType
  4487. CurveToElement = ... # type: QPainterPath.ElementType
  4488. CurveToDataElement = ... # type: QPainterPath.ElementType
  4489. class Element(PyQt6.sip.simplewrapper):
  4490. type = ... # type: 'QPainterPath.ElementType'
  4491. x = ... # type: float
  4492. y = ... # type: float
  4493. @typing.overload
  4494. def __init__(self) -> None: ...
  4495. @typing.overload
  4496. def __init__(self, a0: 'QPainterPath.Element') -> None: ...
  4497. def __ne__(self, other: object): ...
  4498. def __eq__(self, other: object): ...
  4499. def isCurveTo(self) -> bool: ...
  4500. def isLineTo(self) -> bool: ...
  4501. def isMoveTo(self) -> bool: ...
  4502. @typing.overload
  4503. def __init__(self) -> None: ...
  4504. @typing.overload
  4505. def __init__(self, startPoint: QtCore.QPointF) -> None: ...
  4506. @typing.overload
  4507. def __init__(self, other: 'QPainterPath') -> None: ...
  4508. def trimmed(self, fromFraction: float, toFraction: float, offset: float = ...) -> 'QPainterPath': ...
  4509. def setCachingEnabled(self, enabled: bool) -> None: ...
  4510. def isCachingEnabled(self) -> bool: ...
  4511. def capacity(self) -> int: ...
  4512. def reserve(self, size: int) -> None: ...
  4513. def clear(self) -> None: ...
  4514. def swap(self, other: 'QPainterPath') -> None: ...
  4515. @typing.overload
  4516. def translated(self, dx: float, dy: float) -> 'QPainterPath': ...
  4517. @typing.overload
  4518. def translated(self, offset: QtCore.QPointF) -> 'QPainterPath': ...
  4519. @typing.overload
  4520. def translate(self, dx: float, dy: float) -> None: ...
  4521. @typing.overload
  4522. def translate(self, offset: QtCore.QPointF) -> None: ...
  4523. def __isub__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4524. def __iadd__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4525. def __ior__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4526. def __iand__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4527. def __sub__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4528. def __add__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4529. def __or__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4530. def __and__(self, other: 'QPainterPath') -> 'QPainterPath': ...
  4531. def simplified(self) -> 'QPainterPath': ...
  4532. @typing.overload
  4533. def addRoundedRect(self, rect: QtCore.QRectF, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ...
  4534. @typing.overload
  4535. def addRoundedRect(self, x: float, y: float, w: float, h: float, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ...
  4536. def subtracted(self, r: 'QPainterPath') -> 'QPainterPath': ...
  4537. def intersected(self, r: 'QPainterPath') -> 'QPainterPath': ...
  4538. def united(self, r: 'QPainterPath') -> 'QPainterPath': ...
  4539. def slopeAtPercent(self, t: float) -> float: ...
  4540. def angleAtPercent(self, t: float) -> float: ...
  4541. def pointAtPercent(self, t: float) -> QtCore.QPointF: ...
  4542. def percentAtLength(self, t: float) -> float: ...
  4543. def length(self) -> float: ...
  4544. def setElementPositionAt(self, i: int, x: float, y: float) -> None: ...
  4545. def elementAt(self, i: int) -> 'QPainterPath.Element': ...
  4546. def elementCount(self) -> int: ...
  4547. def isEmpty(self) -> bool: ...
  4548. @typing.overload
  4549. def arcMoveTo(self, rect: QtCore.QRectF, angle: float) -> None: ...
  4550. @typing.overload
  4551. def arcMoveTo(self, x: float, y: float, w: float, h: float, angle: float) -> None: ...
  4552. def __ne__(self, other: object): ...
  4553. def __eq__(self, other: object): ...
  4554. def toFillPolygon(self, matrix: 'QTransform' = ...) -> 'QPolygonF': ...
  4555. def toFillPolygons(self, matrix: 'QTransform' = ...) -> list['QPolygonF']: ...
  4556. def toSubpathPolygons(self, matrix: 'QTransform' = ...) -> list['QPolygonF']: ...
  4557. def toReversed(self) -> 'QPainterPath': ...
  4558. def setFillRule(self, fillRule: QtCore.Qt.FillRule) -> None: ...
  4559. def fillRule(self) -> QtCore.Qt.FillRule: ...
  4560. def controlPointRect(self) -> QtCore.QRectF: ...
  4561. def boundingRect(self) -> QtCore.QRectF: ...
  4562. @typing.overload
  4563. def intersects(self, rect: QtCore.QRectF) -> bool: ...
  4564. @typing.overload
  4565. def intersects(self, p: 'QPainterPath') -> bool: ...
  4566. @typing.overload
  4567. def contains(self, pt: QtCore.QPointF) -> bool: ...
  4568. @typing.overload
  4569. def contains(self, rect: QtCore.QRectF) -> bool: ...
  4570. @typing.overload
  4571. def contains(self, p: 'QPainterPath') -> bool: ...
  4572. def connectPath(self, path: 'QPainterPath') -> None: ...
  4573. def addRegion(self, region: 'QRegion') -> None: ...
  4574. def addPath(self, path: 'QPainterPath') -> None: ...
  4575. @typing.overload
  4576. def addText(self, point: QtCore.QPointF, f: QFont, text: str|None) -> None: ...
  4577. @typing.overload
  4578. def addText(self, x: float, y: float, f: QFont, text: str|None) -> None: ...
  4579. def addPolygon(self, polygon: 'QPolygonF') -> None: ...
  4580. @typing.overload
  4581. def addEllipse(self, rect: QtCore.QRectF) -> None: ...
  4582. @typing.overload
  4583. def addEllipse(self, x: float, y: float, w: float, h: float) -> None: ...
  4584. @typing.overload
  4585. def addEllipse(self, center: QtCore.QPointF, rx: float, ry: float) -> None: ...
  4586. @typing.overload
  4587. def addRect(self, rect: QtCore.QRectF) -> None: ...
  4588. @typing.overload
  4589. def addRect(self, x: float, y: float, w: float, h: float) -> None: ...
  4590. def currentPosition(self) -> QtCore.QPointF: ...
  4591. @typing.overload
  4592. def quadTo(self, ctrlPt: QtCore.QPointF, endPt: QtCore.QPointF) -> None: ...
  4593. @typing.overload
  4594. def quadTo(self, ctrlPtx: float, ctrlPty: float, endPtx: float, endPty: float) -> None: ...
  4595. @typing.overload
  4596. def cubicTo(self, ctrlPt1: QtCore.QPointF, ctrlPt2: QtCore.QPointF, endPt: QtCore.QPointF) -> None: ...
  4597. @typing.overload
  4598. def cubicTo(self, ctrlPt1x: float, ctrlPt1y: float, ctrlPt2x: float, ctrlPt2y: float, endPtx: float, endPty: float) -> None: ...
  4599. @typing.overload
  4600. def arcTo(self, rect: QtCore.QRectF, startAngle: float, arcLength: float) -> None: ...
  4601. @typing.overload
  4602. def arcTo(self, x: float, y: float, w: float, h: float, startAngle: float, arcLenght: float) -> None: ...
  4603. @typing.overload
  4604. def lineTo(self, p: QtCore.QPointF) -> None: ...
  4605. @typing.overload
  4606. def lineTo(self, x: float, y: float) -> None: ...
  4607. @typing.overload
  4608. def moveTo(self, p: QtCore.QPointF) -> None: ...
  4609. @typing.overload
  4610. def moveTo(self, x: float, y: float) -> None: ...
  4611. def closeSubpath(self) -> None: ...
  4612. class QPainterPathStroker(PyQt6.sip.simplewrapper):
  4613. @typing.overload
  4614. def __init__(self) -> None: ...
  4615. @typing.overload
  4616. def __init__(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4617. def dashOffset(self) -> float: ...
  4618. def setDashOffset(self, offset: float) -> None: ...
  4619. def createStroke(self, path: QPainterPath) -> QPainterPath: ...
  4620. def dashPattern(self) -> list[float]: ...
  4621. @typing.overload
  4622. def setDashPattern(self, a0: QtCore.Qt.PenStyle) -> None: ...
  4623. @typing.overload
  4624. def setDashPattern(self, dashPattern: collections.abc.Iterable[float]) -> None: ...
  4625. def curveThreshold(self) -> float: ...
  4626. def setCurveThreshold(self, threshold: float) -> None: ...
  4627. def miterLimit(self) -> float: ...
  4628. def setMiterLimit(self, length: float) -> None: ...
  4629. def joinStyle(self) -> QtCore.Qt.PenJoinStyle: ...
  4630. def setJoinStyle(self, style: QtCore.Qt.PenJoinStyle) -> None: ...
  4631. def capStyle(self) -> QtCore.Qt.PenCapStyle: ...
  4632. def setCapStyle(self, style: QtCore.Qt.PenCapStyle) -> None: ...
  4633. def width(self) -> float: ...
  4634. def setWidth(self, width: float) -> None: ...
  4635. class QPainterStateGuard(PyQt6.sip.simplewrapper):
  4636. class InitialState(enum.Enum):
  4637. Save = ... # type: QPainterStateGuard.InitialState
  4638. NoSave = ... # type: QPainterStateGuard.InitialState
  4639. def __init__(self, painter: QPainter|None, state: 'QPainterStateGuard.InitialState' = ...) -> None: ...
  4640. def restore(self) -> None: ...
  4641. def save(self) -> None: ...
  4642. def swap(self, other: 'QPainterStateGuard') -> None: ...
  4643. class QPalette(PyQt6.sip.simplewrapper):
  4644. class ColorRole(enum.Enum):
  4645. WindowText = ... # type: QPalette.ColorRole
  4646. Button = ... # type: QPalette.ColorRole
  4647. Light = ... # type: QPalette.ColorRole
  4648. Midlight = ... # type: QPalette.ColorRole
  4649. Dark = ... # type: QPalette.ColorRole
  4650. Mid = ... # type: QPalette.ColorRole
  4651. Text = ... # type: QPalette.ColorRole
  4652. BrightText = ... # type: QPalette.ColorRole
  4653. ButtonText = ... # type: QPalette.ColorRole
  4654. Base = ... # type: QPalette.ColorRole
  4655. Window = ... # type: QPalette.ColorRole
  4656. Shadow = ... # type: QPalette.ColorRole
  4657. Highlight = ... # type: QPalette.ColorRole
  4658. HighlightedText = ... # type: QPalette.ColorRole
  4659. Link = ... # type: QPalette.ColorRole
  4660. LinkVisited = ... # type: QPalette.ColorRole
  4661. AlternateBase = ... # type: QPalette.ColorRole
  4662. ToolTipBase = ... # type: QPalette.ColorRole
  4663. ToolTipText = ... # type: QPalette.ColorRole
  4664. PlaceholderText = ... # type: QPalette.ColorRole
  4665. Accent = ... # type: QPalette.ColorRole
  4666. NoRole = ... # type: QPalette.ColorRole
  4667. NColorRoles = ... # type: QPalette.ColorRole
  4668. class ColorGroup(enum.Enum):
  4669. Active = ... # type: QPalette.ColorGroup
  4670. Disabled = ... # type: QPalette.ColorGroup
  4671. Inactive = ... # type: QPalette.ColorGroup
  4672. NColorGroups = ... # type: QPalette.ColorGroup
  4673. Current = ... # type: QPalette.ColorGroup
  4674. All = ... # type: QPalette.ColorGroup
  4675. Normal = ... # type: QPalette.ColorGroup
  4676. @typing.overload
  4677. def __init__(self) -> None: ...
  4678. @typing.overload
  4679. def __init__(self, button: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4680. @typing.overload
  4681. def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ...
  4682. @typing.overload
  4683. def __init__(self, button: QColor|QtCore.Qt.GlobalColor|int, background: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4684. @typing.overload
  4685. def __init__(self, foreground: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, button: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, light: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, dark: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, mid: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, bright_text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, base: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, background: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4686. @typing.overload
  4687. def __init__(self, palette: 'QPalette') -> None: ...
  4688. @typing.overload
  4689. def __init__(self, variant: typing.Any) -> None: ...
  4690. def accent(self) -> QBrush: ...
  4691. def swap(self, other: 'QPalette') -> None: ...
  4692. def cacheKey(self) -> int: ...
  4693. def isBrushSet(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> bool: ...
  4694. @typing.overload
  4695. def setColor(self, acg: 'QPalette.ColorGroup', acr: 'QPalette.ColorRole', acolor: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4696. @typing.overload
  4697. def setColor(self, acr: 'QPalette.ColorRole', acolor: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4698. def resolve(self, a0: 'QPalette') -> 'QPalette': ...
  4699. def isCopyOf(self, p: 'QPalette') -> bool: ...
  4700. def __ne__(self, other: object): ...
  4701. def __eq__(self, other: object): ...
  4702. def placeholderText(self) -> QBrush: ...
  4703. def toolTipText(self) -> QBrush: ...
  4704. def toolTipBase(self) -> QBrush: ...
  4705. def linkVisited(self) -> QBrush: ...
  4706. def link(self) -> QBrush: ...
  4707. def highlightedText(self) -> QBrush: ...
  4708. def highlight(self) -> QBrush: ...
  4709. def shadow(self) -> QBrush: ...
  4710. def buttonText(self) -> QBrush: ...
  4711. def brightText(self) -> QBrush: ...
  4712. def midlight(self) -> QBrush: ...
  4713. def window(self) -> QBrush: ...
  4714. def alternateBase(self) -> QBrush: ...
  4715. def base(self) -> QBrush: ...
  4716. def text(self) -> QBrush: ...
  4717. def mid(self) -> QBrush: ...
  4718. def dark(self) -> QBrush: ...
  4719. def light(self) -> QBrush: ...
  4720. def button(self) -> QBrush: ...
  4721. def windowText(self) -> QBrush: ...
  4722. def isEqual(self, cr1: 'QPalette.ColorGroup', cr2: 'QPalette.ColorGroup') -> bool: ...
  4723. def setColorGroup(self, cr: 'QPalette.ColorGroup', foreground: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, button: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, light: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, dark: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, mid: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, bright_text: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, base: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, background: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4724. @typing.overload
  4725. def setBrush(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole', brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4726. @typing.overload
  4727. def setBrush(self, acr: 'QPalette.ColorRole', abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4728. @typing.overload
  4729. def brush(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> QBrush: ...
  4730. @typing.overload
  4731. def brush(self, cr: 'QPalette.ColorRole') -> QBrush: ...
  4732. @typing.overload
  4733. def color(self, cg: 'QPalette.ColorGroup', cr: 'QPalette.ColorRole') -> QColor: ...
  4734. @typing.overload
  4735. def color(self, cr: 'QPalette.ColorRole') -> QColor: ...
  4736. def setCurrentColorGroup(self, cg: 'QPalette.ColorGroup') -> None: ...
  4737. def currentColorGroup(self) -> 'QPalette.ColorGroup': ...
  4738. class QPdfOutputIntent(PyQt6.sip.simplewrapper):
  4739. @typing.overload
  4740. def __init__(self) -> None: ...
  4741. @typing.overload
  4742. def __init__(self, other: 'QPdfOutputIntent') -> None: ...
  4743. def setOutputProfile(self, profile: QColorSpace) -> None: ...
  4744. def outputProfile(self) -> QColorSpace: ...
  4745. def setRegistryName(self, name: QtCore.QUrl) -> None: ...
  4746. def registryName(self) -> QtCore.QUrl: ...
  4747. def setOutputCondition(self, condition: str|None) -> None: ...
  4748. def outputCondition(self) -> str: ...
  4749. def setOutputConditionIdentifier(self, identifier: str|None) -> None: ...
  4750. def outputConditionIdentifier(self) -> str: ...
  4751. def swap(self, other: 'QPdfOutputIntent') -> None: ...
  4752. class QPdfWriter(QtCore.QObject, QPagedPaintDevice):
  4753. class ColorModel(enum.Enum):
  4754. RGB = ... # type: QPdfWriter.ColorModel
  4755. Grayscale = ... # type: QPdfWriter.ColorModel
  4756. CMYK = ... # type: QPdfWriter.ColorModel
  4757. Auto = ... # type: QPdfWriter.ColorModel
  4758. @typing.overload
  4759. def __init__(self, filename: str|None) -> None: ...
  4760. @typing.overload
  4761. def __init__(self, device: QtCore.QIODevice|None) -> None: ...
  4762. def setAuthor(self, author: str|None) -> None: ...
  4763. def author(self) -> str: ...
  4764. def setOutputIntent(self, intent: QPdfOutputIntent) -> None: ...
  4765. def outputIntent(self) -> QPdfOutputIntent: ...
  4766. def setColorModel(self, model: 'QPdfWriter.ColorModel') -> None: ...
  4767. def colorModel(self) -> 'QPdfWriter.ColorModel': ...
  4768. def setDocumentId(self, documentId: QtCore.QUuid) -> None: ...
  4769. def documentId(self) -> QtCore.QUuid: ...
  4770. def addFileAttachment(self, fileName: str|None, data: QtCore.QByteArray|bytes|bytearray|memoryview, mimeType: str|None = ...) -> None: ...
  4771. def documentXmpMetadata(self) -> QtCore.QByteArray: ...
  4772. def setDocumentXmpMetadata(self, xmpMetadata: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  4773. def pdfVersion(self) -> QPagedPaintDevice.PdfVersion: ...
  4774. def setPdfVersion(self, version: QPagedPaintDevice.PdfVersion) -> None: ...
  4775. def resolution(self) -> int: ...
  4776. def setResolution(self, resolution: int) -> None: ...
  4777. def metric(self, id: QPaintDevice.PaintDeviceMetric) -> int: ...
  4778. def paintEngine(self) -> QPaintEngine|None: ...
  4779. def newPage(self) -> bool: ...
  4780. def setCreator(self, creator: str|None) -> None: ...
  4781. def creator(self) -> str: ...
  4782. def setTitle(self, title: str|None) -> None: ...
  4783. def title(self) -> str: ...
  4784. class QPen(PyQt6.sip.simplewrapper):
  4785. @typing.overload
  4786. def __init__(self) -> None: ...
  4787. @typing.overload
  4788. def __init__(self, a0: QtCore.Qt.PenStyle) -> None: ...
  4789. @typing.overload
  4790. def __init__(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient, width: float, style: QtCore.Qt.PenStyle = ..., cap: QtCore.Qt.PenCapStyle = ..., join: QtCore.Qt.PenJoinStyle = ...) -> None: ...
  4791. @typing.overload
  4792. def __init__(self, pen: 'QPen'|QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4793. @typing.overload
  4794. def __init__(self, variant: typing.Any) -> None: ...
  4795. def swap(self, other: 'QPen') -> None: ...
  4796. def setCosmetic(self, cosmetic: bool) -> None: ...
  4797. def isCosmetic(self) -> bool: ...
  4798. def setDashOffset(self, doffset: float) -> None: ...
  4799. def dashOffset(self) -> float: ...
  4800. def __ne__(self, other: object): ...
  4801. def __eq__(self, other: object): ...
  4802. def setMiterLimit(self, limit: float) -> None: ...
  4803. def miterLimit(self) -> float: ...
  4804. def setDashPattern(self, pattern: collections.abc.Iterable[float]) -> None: ...
  4805. def dashPattern(self) -> list[float]: ...
  4806. def setJoinStyle(self, pcs: QtCore.Qt.PenJoinStyle) -> None: ...
  4807. def joinStyle(self) -> QtCore.Qt.PenJoinStyle: ...
  4808. def setCapStyle(self, pcs: QtCore.Qt.PenCapStyle) -> None: ...
  4809. def capStyle(self) -> QtCore.Qt.PenCapStyle: ...
  4810. def isSolid(self) -> bool: ...
  4811. def setBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  4812. def brush(self) -> QBrush: ...
  4813. def setColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  4814. def color(self) -> QColor: ...
  4815. def setWidth(self, width: int) -> None: ...
  4816. def width(self) -> int: ...
  4817. def setWidthF(self, width: float) -> None: ...
  4818. def widthF(self) -> float: ...
  4819. def setStyle(self, a0: QtCore.Qt.PenStyle) -> None: ...
  4820. def style(self) -> QtCore.Qt.PenStyle: ...
  4821. class QPicture(QPaintDevice):
  4822. @typing.overload
  4823. def __init__(self, formatVersion: int = ...) -> None: ...
  4824. @typing.overload
  4825. def __init__(self, a0: 'QPicture') -> None: ...
  4826. def swap(self, other: 'QPicture') -> None: ...
  4827. def metric(self, m: QPaintDevice.PaintDeviceMetric) -> int: ...
  4828. def paintEngine(self) -> QPaintEngine|None: ...
  4829. def isDetached(self) -> bool: ...
  4830. def detach(self) -> None: ...
  4831. def setBoundingRect(self, r: QtCore.QRect) -> None: ...
  4832. def boundingRect(self) -> QtCore.QRect: ...
  4833. @typing.overload
  4834. def save(self, fileName: str|None) -> bool: ...
  4835. @typing.overload
  4836. def save(self, dev: QtCore.QIODevice|None) -> bool: ...
  4837. @typing.overload
  4838. def load(self, fileName: str|None) -> bool: ...
  4839. @typing.overload
  4840. def load(self, dev: QtCore.QIODevice|None) -> bool: ...
  4841. def play(self, p: QPainter|None) -> bool: ...
  4842. def setData(self, data: PyQt6.sip.array[bytes]) -> None: ...
  4843. def data(self) -> bytes: ...
  4844. def size(self) -> int: ...
  4845. def devType(self) -> int: ...
  4846. def isNull(self) -> bool: ...
  4847. class QPixelFormat(PyQt6.sip.simplewrapper):
  4848. class ByteOrder(enum.Enum):
  4849. LittleEndian = ... # type: QPixelFormat.ByteOrder
  4850. BigEndian = ... # type: QPixelFormat.ByteOrder
  4851. CurrentSystemEndian = ... # type: QPixelFormat.ByteOrder
  4852. class YUVLayout(enum.Enum):
  4853. YUV444 = ... # type: QPixelFormat.YUVLayout
  4854. YUV422 = ... # type: QPixelFormat.YUVLayout
  4855. YUV411 = ... # type: QPixelFormat.YUVLayout
  4856. YUV420P = ... # type: QPixelFormat.YUVLayout
  4857. YUV420SP = ... # type: QPixelFormat.YUVLayout
  4858. YV12 = ... # type: QPixelFormat.YUVLayout
  4859. UYVY = ... # type: QPixelFormat.YUVLayout
  4860. YUYV = ... # type: QPixelFormat.YUVLayout
  4861. NV12 = ... # type: QPixelFormat.YUVLayout
  4862. NV21 = ... # type: QPixelFormat.YUVLayout
  4863. IMC1 = ... # type: QPixelFormat.YUVLayout
  4864. IMC2 = ... # type: QPixelFormat.YUVLayout
  4865. IMC3 = ... # type: QPixelFormat.YUVLayout
  4866. IMC4 = ... # type: QPixelFormat.YUVLayout
  4867. Y8 = ... # type: QPixelFormat.YUVLayout
  4868. Y16 = ... # type: QPixelFormat.YUVLayout
  4869. class TypeInterpretation(enum.Enum):
  4870. UnsignedInteger = ... # type: QPixelFormat.TypeInterpretation
  4871. UnsignedShort = ... # type: QPixelFormat.TypeInterpretation
  4872. UnsignedByte = ... # type: QPixelFormat.TypeInterpretation
  4873. FloatingPoint = ... # type: QPixelFormat.TypeInterpretation
  4874. class AlphaPremultiplied(enum.Enum):
  4875. NotPremultiplied = ... # type: QPixelFormat.AlphaPremultiplied
  4876. Premultiplied = ... # type: QPixelFormat.AlphaPremultiplied
  4877. class AlphaPosition(enum.Enum):
  4878. AtBeginning = ... # type: QPixelFormat.AlphaPosition
  4879. AtEnd = ... # type: QPixelFormat.AlphaPosition
  4880. class AlphaUsage(enum.Enum):
  4881. UsesAlpha = ... # type: QPixelFormat.AlphaUsage
  4882. IgnoresAlpha = ... # type: QPixelFormat.AlphaUsage
  4883. class ColorModel(enum.Enum):
  4884. RGB = ... # type: QPixelFormat.ColorModel
  4885. BGR = ... # type: QPixelFormat.ColorModel
  4886. Indexed = ... # type: QPixelFormat.ColorModel
  4887. Grayscale = ... # type: QPixelFormat.ColorModel
  4888. CMYK = ... # type: QPixelFormat.ColorModel
  4889. HSL = ... # type: QPixelFormat.ColorModel
  4890. HSV = ... # type: QPixelFormat.ColorModel
  4891. YUV = ... # type: QPixelFormat.ColorModel
  4892. Alpha = ... # type: QPixelFormat.ColorModel
  4893. @typing.overload
  4894. def __init__(self) -> None: ...
  4895. @typing.overload
  4896. def __init__(self, mdl: 'QPixelFormat.ColorModel', firstSize: int, secondSize: int, thirdSize: int, fourthSize: int, fifthSize: int, alfa: int, usage: 'QPixelFormat.AlphaUsage', position: 'QPixelFormat.AlphaPosition', premult: 'QPixelFormat.AlphaPremultiplied', typeInterp: 'QPixelFormat.TypeInterpretation', byteOrder: 'QPixelFormat.ByteOrder' = ..., subEnum: int = ...) -> None: ...
  4897. @typing.overload
  4898. def __init__(self, a0: 'QPixelFormat') -> None: ...
  4899. def __ne__(self, other: object): ...
  4900. def __eq__(self, other: object): ...
  4901. def subEnum(self) -> int: ...
  4902. def yuvLayout(self) -> 'QPixelFormat.YUVLayout': ...
  4903. def byteOrder(self) -> 'QPixelFormat.ByteOrder': ...
  4904. def typeInterpretation(self) -> 'QPixelFormat.TypeInterpretation': ...
  4905. def premultiplied(self) -> 'QPixelFormat.AlphaPremultiplied': ...
  4906. def alphaPosition(self) -> 'QPixelFormat.AlphaPosition': ...
  4907. def alphaUsage(self) -> 'QPixelFormat.AlphaUsage': ...
  4908. def bitsPerPixel(self) -> int: ...
  4909. def alphaSize(self) -> int: ...
  4910. def brightnessSize(self) -> int: ...
  4911. def lightnessSize(self) -> int: ...
  4912. def saturationSize(self) -> int: ...
  4913. def hueSize(self) -> int: ...
  4914. def blackSize(self) -> int: ...
  4915. def yellowSize(self) -> int: ...
  4916. def magentaSize(self) -> int: ...
  4917. def cyanSize(self) -> int: ...
  4918. def blueSize(self) -> int: ...
  4919. def greenSize(self) -> int: ...
  4920. def redSize(self) -> int: ...
  4921. def channelCount(self) -> int: ...
  4922. def colorModel(self) -> 'QPixelFormat.ColorModel': ...
  4923. class QPixmapCache(PyQt6.sip.simplewrapper):
  4924. class Key(PyQt6.sip.simplewrapper):
  4925. @typing.overload
  4926. def __init__(self) -> None: ...
  4927. @typing.overload
  4928. def __init__(self, other: 'QPixmapCache.Key') -> None: ...
  4929. def __hash__(self) -> int: ...
  4930. def isValid(self) -> bool: ...
  4931. def swap(self, other: 'QPixmapCache.Key') -> None: ...
  4932. def __ne__(self, other: object): ...
  4933. def __eq__(self, other: object): ...
  4934. @typing.overload
  4935. def __init__(self) -> None: ...
  4936. @typing.overload
  4937. def __init__(self, a0: 'QPixmapCache') -> None: ...
  4938. @staticmethod
  4939. def setCacheLimit(a0: int) -> None: ...
  4940. @staticmethod
  4941. def replace(key: 'QPixmapCache.Key', pixmap: QPixmap) -> bool: ...
  4942. @typing.overload
  4943. @staticmethod
  4944. def remove(key: str|None) -> None: ...
  4945. @typing.overload
  4946. @staticmethod
  4947. def remove(key: 'QPixmapCache.Key') -> None: ...
  4948. @typing.overload
  4949. @staticmethod
  4950. def insert(key: str|None, a1: QPixmap) -> bool: ...
  4951. @typing.overload
  4952. @staticmethod
  4953. def insert(pixmap: QPixmap) -> 'QPixmapCache.Key': ...
  4954. @typing.overload
  4955. @staticmethod
  4956. def find(key: str|None) -> QPixmap: ...
  4957. @typing.overload
  4958. @staticmethod
  4959. def find(key: 'QPixmapCache.Key') -> QPixmap: ...
  4960. @staticmethod
  4961. def clear() -> None: ...
  4962. @staticmethod
  4963. def cacheLimit() -> int: ...
  4964. class QPointingDeviceUniqueId(PyQt6.sip.simplewrapper):
  4965. @typing.overload
  4966. def __init__(self) -> None: ...
  4967. @typing.overload
  4968. def __init__(self, a0: 'QPointingDeviceUniqueId') -> None: ...
  4969. def __ne__(self, other: object): ...
  4970. def __eq__(self, other: object): ...
  4971. def __hash__(self) -> int: ...
  4972. def numericId(self) -> int: ...
  4973. def isValid(self) -> bool: ...
  4974. @staticmethod
  4975. def fromNumericId(id: int) -> 'QPointingDeviceUniqueId': ...
  4976. class QPointingDevice(QInputDevice):
  4977. class PointerType(enum.Flag):
  4978. Unknown = ... # type: QPointingDevice.PointerType
  4979. Generic = ... # type: QPointingDevice.PointerType
  4980. Finger = ... # type: QPointingDevice.PointerType
  4981. Pen = ... # type: QPointingDevice.PointerType
  4982. Eraser = ... # type: QPointingDevice.PointerType
  4983. Cursor = ... # type: QPointingDevice.PointerType
  4984. AllPointerTypes = ... # type: QPointingDevice.PointerType
  4985. @typing.overload
  4986. def __init__(self, name: str|None, systemId: int, devType: QInputDevice.DeviceType, pType: 'QPointingDevice.PointerType', caps: QInputDevice.Capability, maxPoints: int, buttonCount: int, seatName: str|None = ..., uniqueId: QPointingDeviceUniqueId = ..., parent: QtCore.QObject|None = ...) -> None: ...
  4987. @typing.overload
  4988. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  4989. def __ne__(self, other: object): ...
  4990. def __eq__(self, other: object): ...
  4991. @staticmethod
  4992. def primaryPointingDevice(seatName: str|None = ...) -> 'QPointingDevice|None': ...
  4993. def uniqueId(self) -> QPointingDeviceUniqueId: ...
  4994. def buttonCount(self) -> int: ...
  4995. def maximumPoints(self) -> int: ...
  4996. def pointerType(self) -> 'QPointingDevice.PointerType': ...
  4997. class QPolygon(PyQt6.sip.simplewrapper):
  4998. @typing.overload
  4999. def __init__(self) -> None: ...
  5000. @typing.overload
  5001. def __init__(self, r: QtCore.QRect, closed: bool = ...) -> None: ...
  5002. @typing.overload
  5003. def __init__(self, v: collections.abc.Iterable[QtCore.QPoint]) -> None: ...
  5004. @typing.overload
  5005. def __init__(self, variant: typing.Any) -> None: ...
  5006. @typing.overload
  5007. def __init__(self, a0: 'QPolygon') -> None: ...
  5008. def __mul__(self, m: 'QTransform') -> 'QPolygon': ...
  5009. def toPolygonF(self) -> 'QPolygonF': ...
  5010. def __contains__(self, value: QtCore.QPoint) -> int: ...
  5011. @typing.overload
  5012. def __delitem__(self, i: int) -> None: ...
  5013. @typing.overload
  5014. def __delitem__(self, slice: slice) -> None: ...
  5015. @typing.overload
  5016. def __setitem__(self, i: int, value: QtCore.QPoint) -> None: ...
  5017. @typing.overload
  5018. def __setitem__(self, slice: slice, list: 'QPolygon') -> None: ...
  5019. @typing.overload
  5020. def __getitem__(self, i: int) -> QtCore.QPoint: ...
  5021. @typing.overload
  5022. def __getitem__(self, slice: slice) -> 'QPolygon': ...
  5023. def __lshift__(self, value: QtCore.QPoint) -> typing.Any: ...
  5024. def __eq__(self, other: object): ...
  5025. @typing.overload
  5026. def __iadd__(self, other: 'QPolygon') -> 'QPolygon': ...
  5027. @typing.overload
  5028. def __iadd__(self, value: QtCore.QPoint) -> 'QPolygon': ...
  5029. def __add__(self, other: 'QPolygon') -> 'QPolygon': ...
  5030. def __ne__(self, other: object): ...
  5031. @typing.overload
  5032. def value(self, i: int) -> QtCore.QPoint: ...
  5033. @typing.overload
  5034. def value(self, i: int, defaultValue: QtCore.QPoint) -> QtCore.QPoint: ...
  5035. def size(self) -> int: ...
  5036. def resize(self, size: int) -> None: ...
  5037. def replace(self, i: int, value: QtCore.QPoint) -> None: ...
  5038. @typing.overload
  5039. def remove(self, i: int) -> None: ...
  5040. @typing.overload
  5041. def remove(self, i: int, count: int) -> None: ...
  5042. def prepend(self, value: QtCore.QPoint) -> None: ...
  5043. def mid(self, pos: int, length: int = ...) -> 'QPolygon': ...
  5044. def lastIndexOf(self, value: QtCore.QPoint, from_: int = ...) -> int: ...
  5045. def last(self) -> QtCore.QPoint: ...
  5046. def isEmpty(self) -> bool: ...
  5047. def insert(self, i: int, value: QtCore.QPoint) -> None: ...
  5048. def indexOf(self, value: QtCore.QPoint, from_: int = ...) -> int: ...
  5049. def first(self) -> QtCore.QPoint: ...
  5050. def fill(self, value: QtCore.QPoint, size: int = ...) -> None: ...
  5051. def data(self) -> PyQt6.sip.voidptr: ...
  5052. def __len__(self) -> int: ...
  5053. @typing.overload
  5054. def count(self, value: QtCore.QPoint) -> int: ...
  5055. @typing.overload
  5056. def count(self) -> int: ...
  5057. def contains(self, value: QtCore.QPoint) -> bool: ...
  5058. def clear(self) -> None: ...
  5059. def at(self, i: int) -> QtCore.QPoint: ...
  5060. def append(self, value: QtCore.QPoint) -> None: ...
  5061. def intersects(self, r: 'QPolygon') -> bool: ...
  5062. def subtracted(self, r: 'QPolygon') -> 'QPolygon': ...
  5063. def intersected(self, r: 'QPolygon') -> 'QPolygon': ...
  5064. def united(self, r: 'QPolygon') -> 'QPolygon': ...
  5065. def containsPoint(self, pt: QtCore.QPoint, fillRule: QtCore.Qt.FillRule) -> bool: ...
  5066. @typing.overload
  5067. def putPoints(self, index: int, firstx: int, firsty: int, *args: int) -> None: ...
  5068. @typing.overload
  5069. def putPoints(self, index: int, nPoints: int, fromPolygon: 'QPolygon', from_: int = ...) -> None: ...
  5070. def setPoints(self, firstx: int, firsty: int, *args: int) -> None: ...
  5071. @typing.overload
  5072. def setPoint(self, index: int, x: int, y: int) -> None: ...
  5073. @typing.overload
  5074. def setPoint(self, index: int, p: QtCore.QPoint) -> None: ...
  5075. def point(self, i: int) -> QtCore.QPoint: ...
  5076. def boundingRect(self) -> QtCore.QRect: ...
  5077. @typing.overload
  5078. def translated(self, dx: int, dy: int) -> 'QPolygon': ...
  5079. @typing.overload
  5080. def translated(self, offset: QtCore.QPoint) -> 'QPolygon': ...
  5081. @typing.overload
  5082. def translate(self, dx: int, dy: int) -> None: ...
  5083. @typing.overload
  5084. def translate(self, offset: QtCore.QPoint) -> None: ...
  5085. def swap(self, other: 'QPolygon') -> None: ...
  5086. class QPolygonF(PyQt6.sip.simplewrapper):
  5087. @typing.overload
  5088. def __init__(self) -> None: ...
  5089. @typing.overload
  5090. def __init__(self, v: collections.abc.Iterable[QtCore.QPointF]) -> None: ...
  5091. @typing.overload
  5092. def __init__(self, r: QtCore.QRectF) -> None: ...
  5093. @typing.overload
  5094. def __init__(self, a: QPolygon) -> None: ...
  5095. @typing.overload
  5096. def __init__(self, variant: typing.Any) -> None: ...
  5097. @typing.overload
  5098. def __init__(self, a0: 'QPolygonF') -> None: ...
  5099. def __mul__(self, m: 'QTransform') -> 'QPolygonF': ...
  5100. def __contains__(self, value: QtCore.QPointF) -> int: ...
  5101. @typing.overload
  5102. def __delitem__(self, i: int) -> None: ...
  5103. @typing.overload
  5104. def __delitem__(self, slice: slice) -> None: ...
  5105. @typing.overload
  5106. def __setitem__(self, i: int, value: QtCore.QPointF) -> None: ...
  5107. @typing.overload
  5108. def __setitem__(self, slice: slice, list: 'QPolygonF') -> None: ...
  5109. @typing.overload
  5110. def __getitem__(self, i: int) -> QtCore.QPointF: ...
  5111. @typing.overload
  5112. def __getitem__(self, slice: slice) -> 'QPolygonF': ...
  5113. def __lshift__(self, value: QtCore.QPointF) -> typing.Any: ...
  5114. def __eq__(self, other: object): ...
  5115. @typing.overload
  5116. def __iadd__(self, other: 'QPolygonF') -> 'QPolygonF': ...
  5117. @typing.overload
  5118. def __iadd__(self, value: QtCore.QPointF) -> 'QPolygonF': ...
  5119. def __add__(self, other: 'QPolygonF') -> 'QPolygonF': ...
  5120. def __ne__(self, other: object): ...
  5121. @typing.overload
  5122. def value(self, i: int) -> QtCore.QPointF: ...
  5123. @typing.overload
  5124. def value(self, i: int, defaultValue: QtCore.QPointF) -> QtCore.QPointF: ...
  5125. def size(self) -> int: ...
  5126. def resize(self, size: int) -> None: ...
  5127. def replace(self, i: int, value: QtCore.QPointF) -> None: ...
  5128. @typing.overload
  5129. def remove(self, i: int) -> None: ...
  5130. @typing.overload
  5131. def remove(self, i: int, count: int) -> None: ...
  5132. def prepend(self, value: QtCore.QPointF) -> None: ...
  5133. def mid(self, pos: int, length: int = ...) -> 'QPolygonF': ...
  5134. def lastIndexOf(self, value: QtCore.QPointF, from_: int = ...) -> int: ...
  5135. def last(self) -> QtCore.QPointF: ...
  5136. def isEmpty(self) -> bool: ...
  5137. def insert(self, i: int, value: QtCore.QPointF) -> None: ...
  5138. def indexOf(self, value: QtCore.QPointF, from_: int = ...) -> int: ...
  5139. def first(self) -> QtCore.QPointF: ...
  5140. def fill(self, value: QtCore.QPointF, size: int = ...) -> None: ...
  5141. def data(self) -> PyQt6.sip.voidptr: ...
  5142. def __len__(self) -> int: ...
  5143. @typing.overload
  5144. def count(self, value: QtCore.QPointF) -> int: ...
  5145. @typing.overload
  5146. def count(self) -> int: ...
  5147. def contains(self, value: QtCore.QPointF) -> bool: ...
  5148. def clear(self) -> None: ...
  5149. def at(self, i: int) -> QtCore.QPointF: ...
  5150. def append(self, value: QtCore.QPointF) -> None: ...
  5151. def intersects(self, r: 'QPolygonF') -> bool: ...
  5152. def subtracted(self, r: 'QPolygonF') -> 'QPolygonF': ...
  5153. def intersected(self, r: 'QPolygonF') -> 'QPolygonF': ...
  5154. def united(self, r: 'QPolygonF') -> 'QPolygonF': ...
  5155. def containsPoint(self, pt: QtCore.QPointF, fillRule: QtCore.Qt.FillRule) -> bool: ...
  5156. def boundingRect(self) -> QtCore.QRectF: ...
  5157. def isClosed(self) -> bool: ...
  5158. def toPolygon(self) -> QPolygon: ...
  5159. @typing.overload
  5160. def translated(self, dx: float, dy: float) -> 'QPolygonF': ...
  5161. @typing.overload
  5162. def translated(self, offset: QtCore.QPointF) -> 'QPolygonF': ...
  5163. @typing.overload
  5164. def translate(self, dx: float, dy: float) -> None: ...
  5165. @typing.overload
  5166. def translate(self, offset: QtCore.QPointF) -> None: ...
  5167. def swap(self, other: 'QPolygonF') -> None: ...
  5168. class QQuaternion(PyQt6.sip.simplewrapper):
  5169. class Axis(PyQt6.sip.simplewrapper):
  5170. x = ... # type: float
  5171. y = ... # type: float
  5172. z = ... # type: float
  5173. @typing.overload
  5174. def __init__(self) -> None: ...
  5175. @typing.overload
  5176. def __init__(self, a0: 'QQuaternion.Axis') -> None: ...
  5177. def toVector3D(self) -> 'QVector3D': ...
  5178. @staticmethod
  5179. def fromVector3D(v: 'QVector3D') -> 'QQuaternion.Axis': ...
  5180. class Axes(PyQt6.sip.simplewrapper):
  5181. x = ... # type: 'QQuaternion.Axis'
  5182. y = ... # type: 'QQuaternion.Axis'
  5183. z = ... # type: 'QQuaternion.Axis'
  5184. @typing.overload
  5185. def __init__(self) -> None: ...
  5186. @typing.overload
  5187. def __init__(self, a0: 'QQuaternion.Axes') -> None: ...
  5188. @typing.overload
  5189. def __init__(self) -> None: ...
  5190. @typing.overload
  5191. def __init__(self, aScalar: float, xpos: float, ypos: float, zpos: float) -> None: ...
  5192. @typing.overload
  5193. def __init__(self, aScalar: float, aVector: 'QVector3D') -> None: ...
  5194. @typing.overload
  5195. def __init__(self, aVector: 'QVector4D') -> None: ...
  5196. @typing.overload
  5197. def __init__(self, a0: 'QQuaternion') -> None: ...
  5198. def __ne__(self, other: object): ...
  5199. def __eq__(self, other: object): ...
  5200. def __truediv__(self, divisor: float) -> 'QQuaternion': ...
  5201. def __add__(self, q2: 'QQuaternion') -> 'QQuaternion': ...
  5202. def __sub__(self, q2: 'QQuaternion') -> 'QQuaternion': ...
  5203. @typing.overload
  5204. def __mul__(self, q2: 'QQuaternion') -> 'QQuaternion': ...
  5205. @typing.overload
  5206. def __mul__(self, factor: float) -> 'QQuaternion': ...
  5207. @typing.overload
  5208. def __mul__(self, vec: 'QVector3D') -> 'QVector3D': ...
  5209. def __rmul__(self, factor: float) -> 'QQuaternion': ...
  5210. def __neg__(self) -> 'QQuaternion': ...
  5211. def toAxes(self) -> 'QQuaternion.Axes': ...
  5212. def toEulerAngles(self) -> 'QVector3D': ...
  5213. def conjugated(self) -> 'QQuaternion': ...
  5214. def inverted(self) -> 'QQuaternion': ...
  5215. @staticmethod
  5216. def dotProduct(q1: 'QQuaternion', q2: 'QQuaternion') -> float: ...
  5217. @staticmethod
  5218. def rotationTo(from_: 'QVector3D', to: 'QVector3D') -> 'QQuaternion': ...
  5219. @staticmethod
  5220. def fromDirection(direction: 'QVector3D', up: 'QVector3D') -> 'QQuaternion': ...
  5221. @typing.overload
  5222. @staticmethod
  5223. def fromAxes(axes: 'QQuaternion.Axes') -> 'QQuaternion': ...
  5224. @typing.overload
  5225. @staticmethod
  5226. def fromAxes(xAxis: 'QVector3D', yAxis: 'QVector3D', zAxis: 'QVector3D') -> 'QQuaternion': ...
  5227. def getAxes(self) -> typing.Tuple['QVector3D|None', 'QVector3D|None', 'QVector3D|None']: ...
  5228. @staticmethod
  5229. def fromRotationMatrix(rot3x3: QMatrix3x3) -> 'QQuaternion': ...
  5230. def toRotationMatrix(self) -> QMatrix3x3: ...
  5231. @typing.overload
  5232. @staticmethod
  5233. def fromEulerAngles(pitch: float, yaw: float, roll: float) -> 'QQuaternion': ...
  5234. @typing.overload
  5235. @staticmethod
  5236. def fromEulerAngles(eulerAngles: 'QVector3D') -> 'QQuaternion': ...
  5237. def getEulerAngles(self) -> typing.Tuple[float, float, float]: ...
  5238. def getAxisAndAngle(self) -> typing.Tuple['QVector3D|None', float]: ...
  5239. def toVector4D(self) -> 'QVector4D': ...
  5240. def vector(self) -> 'QVector3D': ...
  5241. @typing.overload
  5242. def setVector(self, aVector: 'QVector3D') -> None: ...
  5243. @typing.overload
  5244. def setVector(self, aX: float, aY: float, aZ: float) -> None: ...
  5245. def __itruediv__(self, divisor: float) -> 'QQuaternion': ...
  5246. @typing.overload
  5247. def __imul__(self, factor: float) -> 'QQuaternion': ...
  5248. @typing.overload
  5249. def __imul__(self, quaternion: 'QQuaternion') -> 'QQuaternion': ...
  5250. def __isub__(self, quaternion: 'QQuaternion') -> 'QQuaternion': ...
  5251. def __iadd__(self, quaternion: 'QQuaternion') -> 'QQuaternion': ...
  5252. def setScalar(self, aScalar: float) -> None: ...
  5253. def setZ(self, aZ: float) -> None: ...
  5254. def setY(self, aY: float) -> None: ...
  5255. def setX(self, aX: float) -> None: ...
  5256. def scalar(self) -> float: ...
  5257. def z(self) -> float: ...
  5258. def y(self) -> float: ...
  5259. def x(self) -> float: ...
  5260. def isIdentity(self) -> bool: ...
  5261. def isNull(self) -> bool: ...
  5262. @staticmethod
  5263. def nlerp(q1: 'QQuaternion', q2: 'QQuaternion', t: float) -> 'QQuaternion': ...
  5264. @staticmethod
  5265. def slerp(q1: 'QQuaternion', q2: 'QQuaternion', t: float) -> 'QQuaternion': ...
  5266. @typing.overload
  5267. @staticmethod
  5268. def fromAxisAndAngle(axis: 'QVector3D', angle: float) -> 'QQuaternion': ...
  5269. @typing.overload
  5270. @staticmethod
  5271. def fromAxisAndAngle(x: float, y: float, z: float, angle: float) -> 'QQuaternion': ...
  5272. def rotatedVector(self, vector: 'QVector3D') -> 'QVector3D': ...
  5273. def normalize(self) -> None: ...
  5274. def normalized(self) -> 'QQuaternion': ...
  5275. def lengthSquared(self) -> float: ...
  5276. def length(self) -> float: ...
  5277. def __repr__(self) -> str: ...
  5278. class QRasterWindow(QPaintDeviceWindow):
  5279. def __init__(self, parent: QWindow|None = ...) -> None: ...
  5280. def resizeEvent(self, event: QResizeEvent|None) -> None: ...
  5281. def metric(self, metric: QPaintDevice.PaintDeviceMetric) -> int: ...
  5282. class QRawFont(PyQt6.sip.simplewrapper):
  5283. class LayoutFlag(enum.Flag):
  5284. SeparateAdvances = ... # type: QRawFont.LayoutFlag
  5285. KernedAdvances = ... # type: QRawFont.LayoutFlag
  5286. UseDesignMetrics = ... # type: QRawFont.LayoutFlag
  5287. class AntialiasingType(enum.Enum):
  5288. PixelAntialiasing = ... # type: QRawFont.AntialiasingType
  5289. SubPixelAntialiasing = ... # type: QRawFont.AntialiasingType
  5290. @typing.overload
  5291. def __init__(self) -> None: ...
  5292. @typing.overload
  5293. def __init__(self, fileName: str|None, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ...
  5294. @typing.overload
  5295. def __init__(self, fontData: QtCore.QByteArray|bytes|bytearray|memoryview, pixelSize: float, hintingPreference: QFont.HintingPreference = ...) -> None: ...
  5296. @typing.overload
  5297. def __init__(self, other: 'QRawFont') -> None: ...
  5298. def glyphName(self, glyphIndex: int) -> str: ...
  5299. def glyphCount(self) -> int: ...
  5300. def __hash__(self) -> int: ...
  5301. def capHeight(self) -> float: ...
  5302. def swap(self, other: 'QRawFont') -> None: ...
  5303. def underlinePosition(self) -> float: ...
  5304. def lineThickness(self) -> float: ...
  5305. def boundingRect(self, glyphIndex: int) -> QtCore.QRectF: ...
  5306. @staticmethod
  5307. def fromFont(font: QFont, writingSystem: QFontDatabase.WritingSystem = ...) -> 'QRawFont': ...
  5308. @typing.overload
  5309. def fontTable(self, tagName: str) -> QtCore.QByteArray: ...
  5310. @typing.overload
  5311. def fontTable(self, tag: QFont.Tag) -> QtCore.QByteArray: ...
  5312. def supportedWritingSystems(self) -> list[QFontDatabase.WritingSystem]: ...
  5313. @typing.overload
  5314. def supportsCharacter(self, ucs4: int) -> bool: ...
  5315. @typing.overload
  5316. def supportsCharacter(self, character: str) -> bool: ...
  5317. def loadFromData(self, fontData: QtCore.QByteArray|bytes|bytearray|memoryview, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ...
  5318. def loadFromFile(self, fileName: str|None, pixelSize: float, hintingPreference: QFont.HintingPreference) -> None: ...
  5319. def unitsPerEm(self) -> float: ...
  5320. def maxCharWidth(self) -> float: ...
  5321. def averageCharWidth(self) -> float: ...
  5322. def xHeight(self) -> float: ...
  5323. def leading(self) -> float: ...
  5324. def descent(self) -> float: ...
  5325. def ascent(self) -> float: ...
  5326. def hintingPreference(self) -> QFont.HintingPreference: ...
  5327. def pixelSize(self) -> float: ...
  5328. def setPixelSize(self, pixelSize: float) -> None: ...
  5329. def pathForGlyph(self, glyphIndex: int) -> QPainterPath: ...
  5330. def alphaMapForGlyph(self, glyphIndex: int, antialiasingType: 'QRawFont.AntialiasingType' = ..., transform: 'QTransform' = ...) -> QImage: ...
  5331. @typing.overload
  5332. def advancesForGlyphIndexes(self, glyphIndexes: collections.abc.Iterable[int], layoutFlags: 'QRawFont.LayoutFlag') -> list[QtCore.QPointF]: ...
  5333. @typing.overload
  5334. def advancesForGlyphIndexes(self, glyphIndexes: collections.abc.Iterable[int]) -> list[QtCore.QPointF]: ...
  5335. def glyphIndexesForString(self, text: str|None) -> list[int]: ...
  5336. def weight(self) -> int: ...
  5337. def style(self) -> QFont.Style: ...
  5338. def styleName(self) -> str: ...
  5339. def familyName(self) -> str: ...
  5340. def __ne__(self, other: object): ...
  5341. def __eq__(self, other: object): ...
  5342. def isValid(self) -> bool: ...
  5343. class QRegion(PyQt6.sip.simplewrapper):
  5344. class RegionType(enum.Enum):
  5345. Rectangle = ... # type: QRegion.RegionType
  5346. Ellipse = ... # type: QRegion.RegionType
  5347. @typing.overload
  5348. def __init__(self) -> None: ...
  5349. @typing.overload
  5350. def __init__(self, x: int, y: int, w: int, h: int, type: 'QRegion.RegionType' = ...) -> None: ...
  5351. @typing.overload
  5352. def __init__(self, r: QtCore.QRect, type: 'QRegion.RegionType' = ...) -> None: ...
  5353. @typing.overload
  5354. def __init__(self, a: QPolygon, fillRule: QtCore.Qt.FillRule = ...) -> None: ...
  5355. @typing.overload
  5356. def __init__(self, bitmap: QBitmap) -> None: ...
  5357. @typing.overload
  5358. def __init__(self, region: 'QRegion') -> None: ...
  5359. @typing.overload
  5360. def __init__(self, variant: typing.Any) -> None: ...
  5361. def __mul__(self, m: 'QTransform') -> 'QRegion': ...
  5362. def isNull(self) -> bool: ...
  5363. def swap(self, other: 'QRegion') -> None: ...
  5364. def rectCount(self) -> int: ...
  5365. @typing.overload
  5366. def intersects(self, r: 'QRegion') -> bool: ...
  5367. @typing.overload
  5368. def intersects(self, r: QtCore.QRect) -> bool: ...
  5369. def xored(self, r: 'QRegion') -> 'QRegion': ...
  5370. def subtracted(self, r: 'QRegion') -> 'QRegion': ...
  5371. @typing.overload
  5372. def intersected(self, r: 'QRegion') -> 'QRegion': ...
  5373. @typing.overload
  5374. def intersected(self, r: QtCore.QRect) -> 'QRegion': ...
  5375. def __ne__(self, other: object): ...
  5376. def __eq__(self, other: object): ...
  5377. def __ixor__(self, r: 'QRegion') -> 'QRegion': ...
  5378. def __isub__(self, r: 'QRegion') -> 'QRegion': ...
  5379. @typing.overload
  5380. def __iand__(self, r: 'QRegion') -> 'QRegion': ...
  5381. @typing.overload
  5382. def __iand__(self, r: QtCore.QRect) -> 'QRegion': ...
  5383. @typing.overload
  5384. def __iadd__(self, r: 'QRegion') -> 'QRegion': ...
  5385. @typing.overload
  5386. def __iadd__(self, r: QtCore.QRect) -> 'QRegion': ...
  5387. def __ior__(self, r: 'QRegion') -> 'QRegion': ...
  5388. def __xor__(self, r: 'QRegion') -> 'QRegion': ...
  5389. def __sub__(self, r: 'QRegion') -> 'QRegion': ...
  5390. @typing.overload
  5391. def __and__(self, r: 'QRegion') -> 'QRegion': ...
  5392. @typing.overload
  5393. def __and__(self, r: QtCore.QRect) -> 'QRegion': ...
  5394. @typing.overload
  5395. def __add__(self, r: 'QRegion') -> 'QRegion': ...
  5396. @typing.overload
  5397. def __add__(self, r: QtCore.QRect) -> 'QRegion': ...
  5398. def setRects(self, a0: collections.abc.Iterable[QtCore.QRect]) -> None: ...
  5399. def __or__(self, r: 'QRegion') -> 'QRegion': ...
  5400. def boundingRect(self) -> QtCore.QRect: ...
  5401. @typing.overload
  5402. def united(self, r: 'QRegion') -> 'QRegion': ...
  5403. @typing.overload
  5404. def united(self, r: QtCore.QRect) -> 'QRegion': ...
  5405. @typing.overload
  5406. def translated(self, dx: int, dy: int) -> 'QRegion': ...
  5407. @typing.overload
  5408. def translated(self, p: QtCore.QPoint) -> 'QRegion': ...
  5409. @typing.overload
  5410. def translate(self, dx: int, dy: int) -> None: ...
  5411. @typing.overload
  5412. def translate(self, p: QtCore.QPoint) -> None: ...
  5413. @typing.overload
  5414. def __contains__(self, p: QtCore.QPoint) -> int: ...
  5415. @typing.overload
  5416. def __contains__(self, r: QtCore.QRect) -> int: ...
  5417. @typing.overload
  5418. def contains(self, p: QtCore.QPoint) -> bool: ...
  5419. @typing.overload
  5420. def contains(self, r: QtCore.QRect) -> bool: ...
  5421. def __bool__(self) -> int: ...
  5422. def isEmpty(self) -> bool: ...
  5423. class QRgba64(PyQt6.sip.simplewrapper):
  5424. @typing.overload
  5425. def __init__(self) -> None: ...
  5426. @typing.overload
  5427. def __init__(self, a0: 'QRgba64') -> None: ...
  5428. def __int__(self) -> int: ...
  5429. def unpremultiplied(self) -> 'QRgba64': ...
  5430. def premultiplied(self) -> 'QRgba64': ...
  5431. def toRgb16(self) -> int: ...
  5432. def toArgb32(self) -> int: ...
  5433. def alpha8(self) -> int: ...
  5434. def blue8(self) -> int: ...
  5435. def green8(self) -> int: ...
  5436. def red8(self) -> int: ...
  5437. def setAlpha(self, _alpha: int) -> None: ...
  5438. def setBlue(self, _blue: int) -> None: ...
  5439. def setGreen(self, _green: int) -> None: ...
  5440. def setRed(self, _red: int) -> None: ...
  5441. def alpha(self) -> int: ...
  5442. def blue(self) -> int: ...
  5443. def green(self) -> int: ...
  5444. def red(self) -> int: ...
  5445. def isTransparent(self) -> bool: ...
  5446. def isOpaque(self) -> bool: ...
  5447. @staticmethod
  5448. def fromArgb32(rgb: int) -> 'QRgba64': ...
  5449. @staticmethod
  5450. def fromRgba(red: int, green: int, blue: int, alpha: int) -> 'QRgba64': ...
  5451. @typing.overload
  5452. @staticmethod
  5453. def fromRgba64(c: int) -> 'QRgba64': ...
  5454. @typing.overload
  5455. @staticmethod
  5456. def fromRgba64(red: int, green: int, blue: int, alpha: int) -> 'QRgba64': ...
  5457. class QScreen(QtCore.QObject):
  5458. def virtualSiblingAt(self, point: QtCore.QPoint) -> 'QScreen|None': ...
  5459. def serialNumber(self) -> str: ...
  5460. def model(self) -> str: ...
  5461. def manufacturer(self) -> str: ...
  5462. availableGeometryChanged: typing.ClassVar[QtCore.pyqtSignal]
  5463. virtualGeometryChanged: typing.ClassVar[QtCore.pyqtSignal]
  5464. physicalSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  5465. refreshRateChanged: typing.ClassVar[QtCore.pyqtSignal]
  5466. orientationChanged: typing.ClassVar[QtCore.pyqtSignal]
  5467. primaryOrientationChanged: typing.ClassVar[QtCore.pyqtSignal]
  5468. logicalDotsPerInchChanged: typing.ClassVar[QtCore.pyqtSignal]
  5469. physicalDotsPerInchChanged: typing.ClassVar[QtCore.pyqtSignal]
  5470. geometryChanged: typing.ClassVar[QtCore.pyqtSignal]
  5471. def devicePixelRatio(self) -> float: ...
  5472. def refreshRate(self) -> float: ...
  5473. def grabWindow(self, window: PyQt6.sip.voidptr = ..., x: int = ..., y: int = ..., width: int = ..., height: int = ...) -> QPixmap: ...
  5474. def isLandscape(self, orientation: QtCore.Qt.ScreenOrientation) -> bool: ...
  5475. def isPortrait(self, orientation: QtCore.Qt.ScreenOrientation) -> bool: ...
  5476. def mapBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation, rect: QtCore.QRect) -> QtCore.QRect: ...
  5477. def transformBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation, target: QtCore.QRect) -> 'QTransform': ...
  5478. def angleBetween(self, a: QtCore.Qt.ScreenOrientation, b: QtCore.Qt.ScreenOrientation) -> int: ...
  5479. def orientation(self) -> QtCore.Qt.ScreenOrientation: ...
  5480. def primaryOrientation(self) -> QtCore.Qt.ScreenOrientation: ...
  5481. def nativeOrientation(self) -> QtCore.Qt.ScreenOrientation: ...
  5482. def availableVirtualGeometry(self) -> QtCore.QRect: ...
  5483. def availableVirtualSize(self) -> QtCore.QSize: ...
  5484. def virtualGeometry(self) -> QtCore.QRect: ...
  5485. def virtualSize(self) -> QtCore.QSize: ...
  5486. def virtualSiblings(self) -> list['QScreen']: ...
  5487. def availableGeometry(self) -> QtCore.QRect: ...
  5488. def availableSize(self) -> QtCore.QSize: ...
  5489. def logicalDotsPerInch(self) -> float: ...
  5490. def logicalDotsPerInchY(self) -> float: ...
  5491. def logicalDotsPerInchX(self) -> float: ...
  5492. def physicalDotsPerInch(self) -> float: ...
  5493. def physicalDotsPerInchY(self) -> float: ...
  5494. def physicalDotsPerInchX(self) -> float: ...
  5495. def physicalSize(self) -> QtCore.QSizeF: ...
  5496. def geometry(self) -> QtCore.QRect: ...
  5497. def size(self) -> QtCore.QSize: ...
  5498. def depth(self) -> int: ...
  5499. def name(self) -> str: ...
  5500. class QSessionManager(QtCore.QObject):
  5501. class RestartHint(enum.Enum):
  5502. RestartIfRunning = ... # type: QSessionManager.RestartHint
  5503. RestartAnyway = ... # type: QSessionManager.RestartHint
  5504. RestartImmediately = ... # type: QSessionManager.RestartHint
  5505. RestartNever = ... # type: QSessionManager.RestartHint
  5506. def requestPhase2(self) -> None: ...
  5507. def isPhase2(self) -> bool: ...
  5508. @typing.overload
  5509. def setManagerProperty(self, name: str|None, value: str|None) -> None: ...
  5510. @typing.overload
  5511. def setManagerProperty(self, name: str|None, value: collections.abc.Iterable[str|None]) -> None: ...
  5512. def discardCommand(self) -> list[str]: ...
  5513. def setDiscardCommand(self, a0: collections.abc.Iterable[str|None]) -> None: ...
  5514. def restartCommand(self) -> list[str]: ...
  5515. def setRestartCommand(self, a0: collections.abc.Iterable[str|None]) -> None: ...
  5516. def restartHint(self) -> 'QSessionManager.RestartHint': ...
  5517. def setRestartHint(self, a0: 'QSessionManager.RestartHint') -> None: ...
  5518. def cancel(self) -> None: ...
  5519. def release(self) -> None: ...
  5520. def allowsErrorInteraction(self) -> bool: ...
  5521. def allowsInteraction(self) -> bool: ...
  5522. def sessionKey(self) -> str: ...
  5523. def sessionId(self) -> str: ...
  5524. class QShortcut(QtCore.QObject):
  5525. @typing.overload
  5526. def __init__(self, key: QKeySequence.StandardKey, parent: QtCore.QObject|None, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ...
  5527. @typing.overload
  5528. def __init__(self, key: QKeySequence|QKeySequence.StandardKey|str|None|int, parent: QtCore.QObject|None, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ...
  5529. @typing.overload
  5530. def __init__(self, parent: QtCore.QObject|None) -> None: ...
  5531. def event(self, e: QtCore.QEvent|None) -> bool: ...
  5532. def keys(self) -> list[QKeySequence]: ...
  5533. @typing.overload
  5534. def setKeys(self, keys: collections.abc.Iterable[QKeySequence|QKeySequence.StandardKey|str|None|int]) -> None: ...
  5535. @typing.overload
  5536. def setKeys(self, key: QKeySequence.StandardKey) -> None: ...
  5537. activatedAmbiguously: typing.ClassVar[QtCore.pyqtSignal]
  5538. activated: typing.ClassVar[QtCore.pyqtSignal]
  5539. def autoRepeat(self) -> bool: ...
  5540. def setAutoRepeat(self, on: bool) -> None: ...
  5541. def whatsThis(self) -> str: ...
  5542. def setWhatsThis(self, text: str|None) -> None: ...
  5543. def context(self) -> QtCore.Qt.ShortcutContext: ...
  5544. def setContext(self, context: QtCore.Qt.ShortcutContext) -> None: ...
  5545. def isEnabled(self) -> bool: ...
  5546. def setEnabled(self, enable: bool) -> None: ...
  5547. def key(self) -> QKeySequence: ...
  5548. def setKey(self, key: QKeySequence|QKeySequence.StandardKey|str|None|int) -> None: ...
  5549. class QStandardItemModel(QtCore.QAbstractItemModel):
  5550. @typing.overload
  5551. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  5552. @typing.overload
  5553. def __init__(self, rows: int, columns: int, parent: QtCore.QObject|None = ...) -> None: ...
  5554. itemChanged: typing.ClassVar[QtCore.pyqtSignal]
  5555. def roleNames(self) -> dict[int, QtCore.QByteArray]: ...
  5556. def clearItemData(self, index: QtCore.QModelIndex) -> bool: ...
  5557. def setItemRoleNames(self, roleNames: dict[int, QtCore.QByteArray|bytes|bytearray|memoryview]) -> None: ...
  5558. def dropMimeData(self, data: QtCore.QMimeData|None, action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ...
  5559. def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> QtCore.QMimeData|None: ...
  5560. def mimeTypes(self) -> list[str]: ...
  5561. def setSortRole(self, role: int) -> None: ...
  5562. def sortRole(self) -> int: ...
  5563. def findItems(self, text: str|None, flags: QtCore.Qt.MatchFlag = ..., column: int = ...) -> list['QStandardItem']: ...
  5564. def setItemPrototype(self, item: 'QStandardItem|None') -> None: ...
  5565. def itemPrototype(self) -> 'QStandardItem|None': ...
  5566. def takeVerticalHeaderItem(self, row: int) -> 'QStandardItem|None': ...
  5567. def takeHorizontalHeaderItem(self, column: int) -> 'QStandardItem|None': ...
  5568. def takeColumn(self, column: int) -> list['QStandardItem']: ...
  5569. def takeRow(self, row: int) -> list['QStandardItem']: ...
  5570. def takeItem(self, row: int, column: int = ...) -> 'QStandardItem|None': ...
  5571. @typing.overload
  5572. def insertColumn(self, column: int, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5573. @typing.overload
  5574. def insertColumn(self, column: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5575. @typing.overload
  5576. def insertRow(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5577. @typing.overload
  5578. def insertRow(self, arow: int, aitem: 'QStandardItem|None') -> None: ...
  5579. @typing.overload
  5580. def insertRow(self, row: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5581. def appendColumn(self, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5582. @typing.overload
  5583. def appendRow(self, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5584. @typing.overload
  5585. def appendRow(self, aitem: 'QStandardItem|None') -> None: ...
  5586. def setColumnCount(self, columns: int) -> None: ...
  5587. def setRowCount(self, rows: int) -> None: ...
  5588. def setVerticalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ...
  5589. def setHorizontalHeaderLabels(self, labels: collections.abc.Iterable[str|None]) -> None: ...
  5590. def setVerticalHeaderItem(self, row: int, item: 'QStandardItem|None') -> None: ...
  5591. def verticalHeaderItem(self, row: int) -> 'QStandardItem|None': ...
  5592. def setHorizontalHeaderItem(self, column: int, item: 'QStandardItem|None') -> None: ...
  5593. def horizontalHeaderItem(self, column: int) -> 'QStandardItem|None': ...
  5594. def invisibleRootItem(self) -> 'QStandardItem|None': ...
  5595. @typing.overload
  5596. def setItem(self, row: int, column: int, item: 'QStandardItem|None') -> None: ...
  5597. @typing.overload
  5598. def setItem(self, arow: int, aitem: 'QStandardItem|None') -> None: ...
  5599. def item(self, row: int, column: int = ...) -> 'QStandardItem|None': ...
  5600. def indexFromItem(self, item: 'QStandardItem|None') -> QtCore.QModelIndex: ...
  5601. def itemFromIndex(self, index: QtCore.QModelIndex) -> 'QStandardItem|None': ...
  5602. def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ...
  5603. def setItemData(self, index: QtCore.QModelIndex, roles: dict[int, typing.Any]) -> bool: ...
  5604. def itemData(self, index: QtCore.QModelIndex) -> dict[int, typing.Any]: ...
  5605. def supportedDropActions(self) -> QtCore.Qt.DropAction: ...
  5606. def clear(self) -> None: ...
  5607. def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
  5608. def removeColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5609. def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5610. def insertColumns(self, column: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5611. def insertRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
  5612. def setHeaderData(self, section: int, orientation: QtCore.Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ...
  5613. def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
  5614. def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
  5615. def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
  5616. def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ...
  5617. def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
  5618. def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
  5619. @typing.overload
  5620. def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
  5621. @typing.overload
  5622. def parent(self) -> QtCore.QObject|None: ...
  5623. def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
  5624. class QStandardItem(PyQt6.sip.wrapper):
  5625. class ItemType(enum.Enum):
  5626. Type = ... # type: QStandardItem.ItemType
  5627. UserType = ... # type: QStandardItem.ItemType
  5628. @typing.overload
  5629. def __init__(self) -> None: ...
  5630. @typing.overload
  5631. def __init__(self, text: str|None) -> None: ...
  5632. @typing.overload
  5633. def __init__(self, icon: QIcon, text: str|None) -> None: ...
  5634. @typing.overload
  5635. def __init__(self, rows: int, columns: int = ...) -> None: ...
  5636. @typing.overload
  5637. def __init__(self, other: 'QStandardItem') -> None: ...
  5638. def __ge__(self, other: 'QStandardItem') -> bool: ...
  5639. def clearData(self) -> None: ...
  5640. def setUserTristate(self, tristate: bool) -> None: ...
  5641. def isUserTristate(self) -> bool: ...
  5642. def setAutoTristate(self, tristate: bool) -> None: ...
  5643. def isAutoTristate(self) -> bool: ...
  5644. def emitDataChanged(self) -> None: ...
  5645. def appendRows(self, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5646. def appendColumn(self, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5647. @typing.overload
  5648. def appendRow(self, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5649. @typing.overload
  5650. def appendRow(self, aitem: 'QStandardItem|None') -> None: ...
  5651. def setAccessibleDescription(self, aaccessibleDescription: str|None) -> None: ...
  5652. def setAccessibleText(self, aaccessibleText: str|None) -> None: ...
  5653. def setCheckState(self, acheckState: QtCore.Qt.CheckState) -> None: ...
  5654. def setForeground(self, abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  5655. def setBackground(self, abrush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  5656. def setTextAlignment(self, atextAlignment: QtCore.Qt.AlignmentFlag) -> None: ...
  5657. def setFont(self, afont: QFont) -> None: ...
  5658. def setSizeHint(self, asizeHint: QtCore.QSize) -> None: ...
  5659. def setWhatsThis(self, awhatsThis: str|None) -> None: ...
  5660. def setStatusTip(self, astatusTip: str|None) -> None: ...
  5661. def setToolTip(self, atoolTip: str|None) -> None: ...
  5662. def setIcon(self, aicon: QIcon) -> None: ...
  5663. def setText(self, atext: str|None) -> None: ...
  5664. def __lt__(self, other: 'QStandardItem') -> bool: ...
  5665. def write(self, out: QtCore.QDataStream) -> None: ...
  5666. def read(self, in_: QtCore.QDataStream) -> None: ...
  5667. def type(self) -> int: ...
  5668. def clone(self) -> 'QStandardItem|None': ...
  5669. def sortChildren(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ...
  5670. def takeColumn(self, column: int) -> list['QStandardItem']: ...
  5671. def takeRow(self, row: int) -> list['QStandardItem']: ...
  5672. def takeChild(self, row: int, column: int = ...) -> 'QStandardItem|None': ...
  5673. def removeColumns(self, column: int, count: int) -> None: ...
  5674. def removeRows(self, row: int, count: int) -> None: ...
  5675. def removeColumn(self, column: int) -> None: ...
  5676. def removeRow(self, row: int) -> None: ...
  5677. def insertColumns(self, column: int, count: int) -> None: ...
  5678. def insertColumn(self, column: int, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5679. @typing.overload
  5680. def insertRows(self, row: int, count: int) -> None: ...
  5681. @typing.overload
  5682. def insertRows(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5683. @typing.overload
  5684. def insertRow(self, row: int, items: collections.abc.Iterable['QStandardItem']) -> None: ...
  5685. @typing.overload
  5686. def insertRow(self, arow: int, aitem: 'QStandardItem|None') -> None: ...
  5687. @typing.overload
  5688. def setChild(self, row: int, column: int, item: 'QStandardItem|None') -> None: ...
  5689. @typing.overload
  5690. def setChild(self, arow: int, aitem: 'QStandardItem|None') -> None: ...
  5691. def child(self, row: int, column: int = ...) -> 'QStandardItem|None': ...
  5692. def hasChildren(self) -> bool: ...
  5693. def setColumnCount(self, columns: int) -> None: ...
  5694. def columnCount(self) -> int: ...
  5695. def setRowCount(self, rows: int) -> None: ...
  5696. def rowCount(self) -> int: ...
  5697. def model(self) -> QStandardItemModel|None: ...
  5698. def index(self) -> QtCore.QModelIndex: ...
  5699. def column(self) -> int: ...
  5700. def row(self) -> int: ...
  5701. def parent(self) -> 'QStandardItem|None': ...
  5702. def setDropEnabled(self, dropEnabled: bool) -> None: ...
  5703. def isDropEnabled(self) -> bool: ...
  5704. def setDragEnabled(self, dragEnabled: bool) -> None: ...
  5705. def isDragEnabled(self) -> bool: ...
  5706. def setCheckable(self, checkable: bool) -> None: ...
  5707. def isCheckable(self) -> bool: ...
  5708. def setSelectable(self, selectable: bool) -> None: ...
  5709. def isSelectable(self) -> bool: ...
  5710. def setEditable(self, editable: bool) -> None: ...
  5711. def isEditable(self) -> bool: ...
  5712. def setEnabled(self, enabled: bool) -> None: ...
  5713. def isEnabled(self) -> bool: ...
  5714. def setFlags(self, flags: QtCore.Qt.ItemFlag) -> None: ...
  5715. def flags(self) -> QtCore.Qt.ItemFlag: ...
  5716. def accessibleDescription(self) -> str: ...
  5717. def accessibleText(self) -> str: ...
  5718. def checkState(self) -> QtCore.Qt.CheckState: ...
  5719. def foreground(self) -> QBrush: ...
  5720. def background(self) -> QBrush: ...
  5721. def textAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
  5722. def font(self) -> QFont: ...
  5723. def sizeHint(self) -> QtCore.QSize: ...
  5724. def whatsThis(self) -> str: ...
  5725. def statusTip(self) -> str: ...
  5726. def toolTip(self) -> str: ...
  5727. def icon(self) -> QIcon: ...
  5728. def text(self) -> str: ...
  5729. def setData(self, value: typing.Any, role: int = ...) -> None: ...
  5730. def data(self, role: int = ...) -> typing.Any: ...
  5731. class QStaticText(PyQt6.sip.simplewrapper):
  5732. class PerformanceHint(enum.Enum):
  5733. ModerateCaching = ... # type: QStaticText.PerformanceHint
  5734. AggressiveCaching = ... # type: QStaticText.PerformanceHint
  5735. @typing.overload
  5736. def __init__(self) -> None: ...
  5737. @typing.overload
  5738. def __init__(self, text: str|None) -> None: ...
  5739. @typing.overload
  5740. def __init__(self, other: 'QStaticText') -> None: ...
  5741. def swap(self, other: 'QStaticText') -> None: ...
  5742. def __ne__(self, other: object): ...
  5743. def __eq__(self, other: object): ...
  5744. def performanceHint(self) -> 'QStaticText.PerformanceHint': ...
  5745. def setPerformanceHint(self, performanceHint: 'QStaticText.PerformanceHint') -> None: ...
  5746. def prepare(self, matrix: 'QTransform' = ..., font: QFont = ...) -> None: ...
  5747. def size(self) -> QtCore.QSizeF: ...
  5748. def textOption(self) -> 'QTextOption': ...
  5749. def setTextOption(self, textOption: 'QTextOption') -> None: ...
  5750. def textWidth(self) -> float: ...
  5751. def setTextWidth(self, textWidth: float) -> None: ...
  5752. def textFormat(self) -> QtCore.Qt.TextFormat: ...
  5753. def setTextFormat(self, textFormat: QtCore.Qt.TextFormat) -> None: ...
  5754. def text(self) -> str: ...
  5755. def setText(self, text: str|None) -> None: ...
  5756. class QStyleHints(QtCore.QObject):
  5757. def accessibility(self) -> QAccessibilityHints|None: ...
  5758. def menuSelectionWraps(self) -> bool: ...
  5759. contextMenuTriggerChanged: typing.ClassVar[QtCore.pyqtSignal]
  5760. def unsetColorScheme(self) -> None: ...
  5761. def setColorScheme(self, scheme: QtCore.Qt.ColorScheme) -> None: ...
  5762. def setContextMenuTrigger(self, contextMenuTrigger: QtCore.Qt.ContextMenuTrigger) -> None: ...
  5763. def contextMenuTrigger(self) -> QtCore.Qt.ContextMenuTrigger: ...
  5764. colorSchemeChanged: typing.ClassVar[QtCore.pyqtSignal]
  5765. def colorScheme(self) -> QtCore.Qt.ColorScheme: ...
  5766. def keyboardAutoRepeatRateF(self) -> float: ...
  5767. def touchDoubleTapDistance(self) -> int: ...
  5768. def mouseDoubleClickDistance(self) -> int: ...
  5769. showShortcutsInContextMenusChanged: typing.ClassVar[QtCore.pyqtSignal]
  5770. def setShowShortcutsInContextMenus(self, showShortcutsInContextMenus: bool) -> None: ...
  5771. mouseQuickSelectionThresholdChanged: typing.ClassVar[QtCore.pyqtSignal]
  5772. def mouseQuickSelectionThreshold(self) -> int: ...
  5773. def showShortcutsInContextMenus(self) -> bool: ...
  5774. wheelScrollLinesChanged: typing.ClassVar[QtCore.pyqtSignal]
  5775. def wheelScrollLines(self) -> int: ...
  5776. useHoverEffectsChanged: typing.ClassVar[QtCore.pyqtSignal]
  5777. def setUseHoverEffects(self, useHoverEffects: bool) -> None: ...
  5778. def useHoverEffects(self) -> bool: ...
  5779. def showIsMaximized(self) -> bool: ...
  5780. tabFocusBehaviorChanged: typing.ClassVar[QtCore.pyqtSignal]
  5781. mousePressAndHoldIntervalChanged: typing.ClassVar[QtCore.pyqtSignal]
  5782. startDragTimeChanged: typing.ClassVar[QtCore.pyqtSignal]
  5783. startDragDistanceChanged: typing.ClassVar[QtCore.pyqtSignal]
  5784. mouseDoubleClickIntervalChanged: typing.ClassVar[QtCore.pyqtSignal]
  5785. keyboardInputIntervalChanged: typing.ClassVar[QtCore.pyqtSignal]
  5786. cursorFlashTimeChanged: typing.ClassVar[QtCore.pyqtSignal]
  5787. def singleClickActivation(self) -> bool: ...
  5788. def tabFocusBehavior(self) -> QtCore.Qt.TabFocusBehavior: ...
  5789. def mousePressAndHoldInterval(self) -> int: ...
  5790. def setFocusOnTouchRelease(self) -> bool: ...
  5791. def passwordMaskCharacter(self) -> str: ...
  5792. def useRtlExtensions(self) -> bool: ...
  5793. def fontSmoothingGamma(self) -> float: ...
  5794. def passwordMaskDelay(self) -> int: ...
  5795. def showIsFullScreen(self) -> bool: ...
  5796. def cursorFlashTime(self) -> int: ...
  5797. def keyboardAutoRepeatRate(self) -> int: ...
  5798. def keyboardInputInterval(self) -> int: ...
  5799. def startDragVelocity(self) -> int: ...
  5800. def startDragTime(self) -> int: ...
  5801. def startDragDistance(self) -> int: ...
  5802. def mouseDoubleClickInterval(self) -> int: ...
  5803. class QSurfaceFormat(PyQt6.sip.simplewrapper):
  5804. class OpenGLContextProfile(enum.Enum):
  5805. NoProfile = ... # type: QSurfaceFormat.OpenGLContextProfile
  5806. CoreProfile = ... # type: QSurfaceFormat.OpenGLContextProfile
  5807. CompatibilityProfile = ... # type: QSurfaceFormat.OpenGLContextProfile
  5808. class RenderableType(enum.Enum):
  5809. DefaultRenderableType = ... # type: QSurfaceFormat.RenderableType
  5810. OpenGL = ... # type: QSurfaceFormat.RenderableType
  5811. OpenGLES = ... # type: QSurfaceFormat.RenderableType
  5812. OpenVG = ... # type: QSurfaceFormat.RenderableType
  5813. class SwapBehavior(enum.Enum):
  5814. DefaultSwapBehavior = ... # type: QSurfaceFormat.SwapBehavior
  5815. SingleBuffer = ... # type: QSurfaceFormat.SwapBehavior
  5816. DoubleBuffer = ... # type: QSurfaceFormat.SwapBehavior
  5817. TripleBuffer = ... # type: QSurfaceFormat.SwapBehavior
  5818. class FormatOption(enum.Flag):
  5819. StereoBuffers = ... # type: QSurfaceFormat.FormatOption
  5820. DebugContext = ... # type: QSurfaceFormat.FormatOption
  5821. DeprecatedFunctions = ... # type: QSurfaceFormat.FormatOption
  5822. ResetNotification = ... # type: QSurfaceFormat.FormatOption
  5823. ProtectedContent = ... # type: QSurfaceFormat.FormatOption
  5824. @typing.overload
  5825. def __init__(self) -> None: ...
  5826. @typing.overload
  5827. def __init__(self, options: 'QSurfaceFormat.FormatOption') -> None: ...
  5828. @typing.overload
  5829. def __init__(self, other: 'QSurfaceFormat') -> None: ...
  5830. def __ne__(self, other: object): ...
  5831. def __eq__(self, other: object): ...
  5832. def setColorSpace(self, colorSpace: QColorSpace) -> None: ...
  5833. def colorSpace(self) -> QColorSpace: ...
  5834. @staticmethod
  5835. def defaultFormat() -> 'QSurfaceFormat': ...
  5836. @staticmethod
  5837. def setDefaultFormat(format: 'QSurfaceFormat') -> None: ...
  5838. def setSwapInterval(self, interval: int) -> None: ...
  5839. def swapInterval(self) -> int: ...
  5840. def options(self) -> 'QSurfaceFormat.FormatOption': ...
  5841. def testOption(self, option: 'QSurfaceFormat.FormatOption') -> bool: ...
  5842. def setOption(self, option: 'QSurfaceFormat.FormatOption', on: bool = ...) -> None: ...
  5843. def setOptions(self, options: 'QSurfaceFormat.FormatOption') -> None: ...
  5844. def setVersion(self, major: int, minor: int) -> None: ...
  5845. def version(self) -> tuple[int, int]: ...
  5846. def stereo(self) -> bool: ...
  5847. def setStereo(self, enable: bool) -> None: ...
  5848. def minorVersion(self) -> int: ...
  5849. def setMinorVersion(self, minorVersion: int) -> None: ...
  5850. def majorVersion(self) -> int: ...
  5851. def setMajorVersion(self, majorVersion: int) -> None: ...
  5852. def renderableType(self) -> 'QSurfaceFormat.RenderableType': ...
  5853. def setRenderableType(self, type: 'QSurfaceFormat.RenderableType') -> None: ...
  5854. def profile(self) -> 'QSurfaceFormat.OpenGLContextProfile': ...
  5855. def setProfile(self, profile: 'QSurfaceFormat.OpenGLContextProfile') -> None: ...
  5856. def hasAlpha(self) -> bool: ...
  5857. def swapBehavior(self) -> 'QSurfaceFormat.SwapBehavior': ...
  5858. def setSwapBehavior(self, behavior: 'QSurfaceFormat.SwapBehavior') -> None: ...
  5859. def samples(self) -> int: ...
  5860. def setSamples(self, numSamples: int) -> None: ...
  5861. def alphaBufferSize(self) -> int: ...
  5862. def setAlphaBufferSize(self, size: int) -> None: ...
  5863. def blueBufferSize(self) -> int: ...
  5864. def setBlueBufferSize(self, size: int) -> None: ...
  5865. def greenBufferSize(self) -> int: ...
  5866. def setGreenBufferSize(self, size: int) -> None: ...
  5867. def redBufferSize(self) -> int: ...
  5868. def setRedBufferSize(self, size: int) -> None: ...
  5869. def stencilBufferSize(self) -> int: ...
  5870. def setStencilBufferSize(self, size: int) -> None: ...
  5871. def depthBufferSize(self) -> int: ...
  5872. def setDepthBufferSize(self, size: int) -> None: ...
  5873. class QSyntaxHighlighter(QtCore.QObject):
  5874. @typing.overload
  5875. def __init__(self, parent: 'QTextDocument|None') -> None: ...
  5876. @typing.overload
  5877. def __init__(self, parent: QtCore.QObject|None) -> None: ...
  5878. def currentBlock(self) -> 'QTextBlock': ...
  5879. def currentBlockUserData(self) -> 'QTextBlockUserData|None': ...
  5880. def setCurrentBlockUserData(self, data: 'QTextBlockUserData|None') -> None: ...
  5881. def setCurrentBlockState(self, newState: int) -> None: ...
  5882. def currentBlockState(self) -> int: ...
  5883. def previousBlockState(self) -> int: ...
  5884. def format(self, pos: int) -> 'QTextCharFormat': ...
  5885. @typing.overload
  5886. def setFormat(self, start: int, count: int, format: 'QTextCharFormat') -> None: ...
  5887. @typing.overload
  5888. def setFormat(self, start: int, count: int, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  5889. @typing.overload
  5890. def setFormat(self, start: int, count: int, font: QFont) -> None: ...
  5891. def highlightBlock(self, text: str|None) -> None: ...
  5892. def rehighlightBlock(self, block: 'QTextBlock') -> None: ...
  5893. def rehighlight(self) -> None: ...
  5894. def document(self) -> 'QTextDocument|None': ...
  5895. def setDocument(self, doc: 'QTextDocument|None') -> None: ...
  5896. class QTextCursor(PyQt6.sip.simplewrapper):
  5897. class SelectionType(enum.Enum):
  5898. WordUnderCursor = ... # type: QTextCursor.SelectionType
  5899. LineUnderCursor = ... # type: QTextCursor.SelectionType
  5900. BlockUnderCursor = ... # type: QTextCursor.SelectionType
  5901. Document = ... # type: QTextCursor.SelectionType
  5902. class MoveOperation(enum.Enum):
  5903. NoMove = ... # type: QTextCursor.MoveOperation
  5904. Start = ... # type: QTextCursor.MoveOperation
  5905. Up = ... # type: QTextCursor.MoveOperation
  5906. StartOfLine = ... # type: QTextCursor.MoveOperation
  5907. StartOfBlock = ... # type: QTextCursor.MoveOperation
  5908. StartOfWord = ... # type: QTextCursor.MoveOperation
  5909. PreviousBlock = ... # type: QTextCursor.MoveOperation
  5910. PreviousCharacter = ... # type: QTextCursor.MoveOperation
  5911. PreviousWord = ... # type: QTextCursor.MoveOperation
  5912. Left = ... # type: QTextCursor.MoveOperation
  5913. WordLeft = ... # type: QTextCursor.MoveOperation
  5914. End = ... # type: QTextCursor.MoveOperation
  5915. Down = ... # type: QTextCursor.MoveOperation
  5916. EndOfLine = ... # type: QTextCursor.MoveOperation
  5917. EndOfWord = ... # type: QTextCursor.MoveOperation
  5918. EndOfBlock = ... # type: QTextCursor.MoveOperation
  5919. NextBlock = ... # type: QTextCursor.MoveOperation
  5920. NextCharacter = ... # type: QTextCursor.MoveOperation
  5921. NextWord = ... # type: QTextCursor.MoveOperation
  5922. Right = ... # type: QTextCursor.MoveOperation
  5923. WordRight = ... # type: QTextCursor.MoveOperation
  5924. NextCell = ... # type: QTextCursor.MoveOperation
  5925. PreviousCell = ... # type: QTextCursor.MoveOperation
  5926. NextRow = ... # type: QTextCursor.MoveOperation
  5927. PreviousRow = ... # type: QTextCursor.MoveOperation
  5928. class MoveMode(enum.Enum):
  5929. MoveAnchor = ... # type: QTextCursor.MoveMode
  5930. KeepAnchor = ... # type: QTextCursor.MoveMode
  5931. @typing.overload
  5932. def __init__(self) -> None: ...
  5933. @typing.overload
  5934. def __init__(self, document: 'QTextDocument|None') -> None: ...
  5935. @typing.overload
  5936. def __init__(self, frame: 'QTextFrame|None') -> None: ...
  5937. @typing.overload
  5938. def __init__(self, block: 'QTextBlock') -> None: ...
  5939. @typing.overload
  5940. def __init__(self, cursor: 'QTextCursor') -> None: ...
  5941. def insertMarkdown(self, markdown: str|None, features: 'QTextDocument.MarkdownFeature' = ...) -> None: ...
  5942. def swap(self, other: 'QTextCursor') -> None: ...
  5943. def keepPositionOnInsert(self) -> bool: ...
  5944. def setKeepPositionOnInsert(self, b: bool) -> None: ...
  5945. def verticalMovementX(self) -> int: ...
  5946. def setVerticalMovementX(self, x: int) -> None: ...
  5947. def positionInBlock(self) -> int: ...
  5948. def document(self) -> 'QTextDocument|None': ...
  5949. def setVisualNavigation(self, b: bool) -> None: ...
  5950. def visualNavigation(self) -> bool: ...
  5951. def isCopyOf(self, other: 'QTextCursor') -> bool: ...
  5952. def __gt__(self, rhs: 'QTextCursor') -> bool: ...
  5953. def __ge__(self, rhs: 'QTextCursor') -> bool: ...
  5954. def __eq__(self, other: object): ...
  5955. def __le__(self, rhs: 'QTextCursor') -> bool: ...
  5956. def __lt__(self, rhs: 'QTextCursor') -> bool: ...
  5957. def __ne__(self, other: object): ...
  5958. def columnNumber(self) -> int: ...
  5959. def blockNumber(self) -> int: ...
  5960. def endEditBlock(self) -> None: ...
  5961. def joinPreviousEditBlock(self) -> None: ...
  5962. def beginEditBlock(self) -> None: ...
  5963. @typing.overload
  5964. def insertImage(self, format: 'QTextImageFormat') -> None: ...
  5965. @typing.overload
  5966. def insertImage(self, format: 'QTextImageFormat', alignment: 'QTextFrameFormat.Position') -> None: ...
  5967. @typing.overload
  5968. def insertImage(self, name: str|None) -> None: ...
  5969. @typing.overload
  5970. def insertImage(self, image: QImage, name: str|None = ...) -> None: ...
  5971. def insertHtml(self, html: str|None) -> None: ...
  5972. def insertFragment(self, fragment: 'QTextDocumentFragment') -> None: ...
  5973. def currentFrame(self) -> 'QTextFrame|None': ...
  5974. def insertFrame(self, format: 'QTextFrameFormat') -> 'QTextFrame|None': ...
  5975. def currentTable(self) -> 'QTextTable|None': ...
  5976. @typing.overload
  5977. def insertTable(self, rows: int, cols: int, format: 'QTextTableFormat') -> 'QTextTable|None': ...
  5978. @typing.overload
  5979. def insertTable(self, rows: int, cols: int) -> 'QTextTable|None': ...
  5980. def currentList(self) -> 'QTextList|None': ...
  5981. @typing.overload
  5982. def createList(self, format: 'QTextListFormat') -> 'QTextList|None': ...
  5983. @typing.overload
  5984. def createList(self, style: 'QTextListFormat.Style') -> 'QTextList|None': ...
  5985. @typing.overload
  5986. def insertList(self, format: 'QTextListFormat') -> 'QTextList|None': ...
  5987. @typing.overload
  5988. def insertList(self, style: 'QTextListFormat.Style') -> 'QTextList|None': ...
  5989. @typing.overload
  5990. def insertBlock(self) -> None: ...
  5991. @typing.overload
  5992. def insertBlock(self, format: 'QTextBlockFormat') -> None: ...
  5993. @typing.overload
  5994. def insertBlock(self, format: 'QTextBlockFormat', charFormat: 'QTextCharFormat') -> None: ...
  5995. def atEnd(self) -> bool: ...
  5996. def atStart(self) -> bool: ...
  5997. def atBlockEnd(self) -> bool: ...
  5998. def atBlockStart(self) -> bool: ...
  5999. def mergeBlockCharFormat(self, modifier: 'QTextCharFormat') -> None: ...
  6000. def setBlockCharFormat(self, format: 'QTextCharFormat') -> None: ...
  6001. def blockCharFormat(self) -> 'QTextCharFormat': ...
  6002. def mergeBlockFormat(self, modifier: 'QTextBlockFormat') -> None: ...
  6003. def setBlockFormat(self, format: 'QTextBlockFormat') -> None: ...
  6004. def blockFormat(self) -> 'QTextBlockFormat': ...
  6005. def mergeCharFormat(self, modifier: 'QTextCharFormat') -> None: ...
  6006. def setCharFormat(self, format: 'QTextCharFormat') -> None: ...
  6007. def charFormat(self) -> 'QTextCharFormat': ...
  6008. def block(self) -> 'QTextBlock': ...
  6009. def selectedTableCells(self) -> typing.Tuple[int, int, int, int]: ...
  6010. def selection(self) -> 'QTextDocumentFragment': ...
  6011. def selectedText(self) -> str: ...
  6012. def selectionEnd(self) -> int: ...
  6013. def selectionStart(self) -> int: ...
  6014. def clearSelection(self) -> None: ...
  6015. def removeSelectedText(self) -> None: ...
  6016. def hasComplexSelection(self) -> bool: ...
  6017. def hasSelection(self) -> bool: ...
  6018. def select(self, selection: 'QTextCursor.SelectionType') -> None: ...
  6019. def deletePreviousChar(self) -> None: ...
  6020. def deleteChar(self) -> None: ...
  6021. def movePosition(self, op: 'QTextCursor.MoveOperation', mode: 'QTextCursor.MoveMode' = ..., n: int = ...) -> bool: ...
  6022. @typing.overload
  6023. def insertText(self, text: str|None) -> None: ...
  6024. @typing.overload
  6025. def insertText(self, text: str|None, format: 'QTextCharFormat') -> None: ...
  6026. def anchor(self) -> int: ...
  6027. def position(self) -> int: ...
  6028. def setPosition(self, pos: int, mode: 'QTextCursor.MoveMode' = ...) -> None: ...
  6029. def isNull(self) -> bool: ...
  6030. class QTextDocument(QtCore.QObject):
  6031. class MarkdownFeature(enum.Flag):
  6032. MarkdownNoHTML = ... # type: QTextDocument.MarkdownFeature
  6033. MarkdownDialectCommonMark = ... # type: QTextDocument.MarkdownFeature
  6034. MarkdownDialectGitHub = ... # type: QTextDocument.MarkdownFeature
  6035. class Stacks(enum.Enum):
  6036. UndoStack = ... # type: QTextDocument.Stacks
  6037. RedoStack = ... # type: QTextDocument.Stacks
  6038. UndoAndRedoStacks = ... # type: QTextDocument.Stacks
  6039. class ResourceType(enum.IntEnum):
  6040. UnknownResource = ... # type: QTextDocument.ResourceType
  6041. HtmlResource = ... # type: QTextDocument.ResourceType
  6042. ImageResource = ... # type: QTextDocument.ResourceType
  6043. StyleSheetResource = ... # type: QTextDocument.ResourceType
  6044. MarkdownResource = ... # type: QTextDocument.ResourceType
  6045. UserResource = ... # type: QTextDocument.ResourceType
  6046. class FindFlag(enum.Flag):
  6047. FindBackward = ... # type: QTextDocument.FindFlag
  6048. FindCaseSensitively = ... # type: QTextDocument.FindFlag
  6049. FindWholeWords = ... # type: QTextDocument.FindFlag
  6050. class MetaInformation(enum.Enum):
  6051. DocumentTitle = ... # type: QTextDocument.MetaInformation
  6052. DocumentUrl = ... # type: QTextDocument.MetaInformation
  6053. CssMedia = ... # type: QTextDocument.MetaInformation
  6054. FrontMatter = ... # type: QTextDocument.MetaInformation
  6055. @typing.overload
  6056. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  6057. @typing.overload
  6058. def __init__(self, text: str|None, parent: QtCore.QObject|None = ...) -> None: ...
  6059. def isLayoutEnabled(self) -> bool: ...
  6060. def setLayoutEnabled(self, b: bool) -> None: ...
  6061. @staticmethod
  6062. def setDefaultResourceProvider(provider: collections.abc.Callable[[QtCore.QUrl], typing.Any]) -> None: ...
  6063. @staticmethod
  6064. def defaultResourceProvider() -> collections.abc.Callable[[QtCore.QUrl], typing.Any]: ...
  6065. def setResourceProvider(self, provider: collections.abc.Callable[[QtCore.QUrl], typing.Any]) -> None: ...
  6066. def resourceProvider(self) -> collections.abc.Callable[[QtCore.QUrl], typing.Any]: ...
  6067. def baselineOffset(self) -> float: ...
  6068. def setBaselineOffset(self, baseline: float) -> None: ...
  6069. def subScriptBaseline(self) -> float: ...
  6070. def setSubScriptBaseline(self, baseline: float) -> None: ...
  6071. def superScriptBaseline(self) -> float: ...
  6072. def setSuperScriptBaseline(self, baseline: float) -> None: ...
  6073. def setMarkdown(self, markdown: str|None, features: 'QTextDocument.MarkdownFeature' = ...) -> None: ...
  6074. def toMarkdown(self, features: 'QTextDocument.MarkdownFeature' = ...) -> str: ...
  6075. def toRawText(self) -> str: ...
  6076. baseUrlChanged: typing.ClassVar[QtCore.pyqtSignal]
  6077. def setBaseUrl(self, url: QtCore.QUrl) -> None: ...
  6078. def baseUrl(self) -> QtCore.QUrl: ...
  6079. def setDefaultCursorMoveStyle(self, style: QtCore.Qt.CursorMoveStyle) -> None: ...
  6080. def defaultCursorMoveStyle(self) -> QtCore.Qt.CursorMoveStyle: ...
  6081. def clearUndoRedoStacks(self, stacks: 'QTextDocument.Stacks' = ...) -> None: ...
  6082. def availableRedoSteps(self) -> int: ...
  6083. def availableUndoSteps(self) -> int: ...
  6084. def characterCount(self) -> int: ...
  6085. def lineCount(self) -> int: ...
  6086. def setDocumentMargin(self, margin: float) -> None: ...
  6087. def documentMargin(self) -> float: ...
  6088. def characterAt(self, pos: int) -> str: ...
  6089. documentLayoutChanged: typing.ClassVar[QtCore.pyqtSignal]
  6090. undoCommandAdded: typing.ClassVar[QtCore.pyqtSignal]
  6091. def setIndentWidth(self, width: float) -> None: ...
  6092. def indentWidth(self) -> float: ...
  6093. def lastBlock(self) -> 'QTextBlock': ...
  6094. def firstBlock(self) -> 'QTextBlock': ...
  6095. def findBlockByLineNumber(self, blockNumber: int) -> 'QTextBlock': ...
  6096. def findBlockByNumber(self, blockNumber: int) -> 'QTextBlock': ...
  6097. def revision(self) -> int: ...
  6098. def setDefaultTextOption(self, option: 'QTextOption') -> None: ...
  6099. def defaultTextOption(self) -> 'QTextOption': ...
  6100. def setMaximumBlockCount(self, maximum: int) -> None: ...
  6101. def maximumBlockCount(self) -> int: ...
  6102. def defaultStyleSheet(self) -> str: ...
  6103. def setDefaultStyleSheet(self, sheet: str|None) -> None: ...
  6104. def blockCount(self) -> int: ...
  6105. def size(self) -> QtCore.QSizeF: ...
  6106. def adjustSize(self) -> None: ...
  6107. def idealWidth(self) -> float: ...
  6108. def textWidth(self) -> float: ...
  6109. def setTextWidth(self, width: float) -> None: ...
  6110. def drawContents(self, p: QPainter|None, rect: QtCore.QRectF = ...) -> None: ...
  6111. def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ...
  6112. def createObject(self, f: 'QTextFormat') -> 'QTextObject|None': ...
  6113. def setModified(self, on: bool = ...) -> None: ...
  6114. @typing.overload
  6115. def redo(self) -> None: ...
  6116. @typing.overload
  6117. def redo(self, cursor: QTextCursor|None) -> None: ...
  6118. @typing.overload
  6119. def undo(self) -> None: ...
  6120. @typing.overload
  6121. def undo(self, cursor: QTextCursor|None) -> None: ...
  6122. undoAvailable: typing.ClassVar[QtCore.pyqtSignal]
  6123. redoAvailable: typing.ClassVar[QtCore.pyqtSignal]
  6124. modificationChanged: typing.ClassVar[QtCore.pyqtSignal]
  6125. cursorPositionChanged: typing.ClassVar[QtCore.pyqtSignal]
  6126. contentsChanged: typing.ClassVar[QtCore.pyqtSignal]
  6127. contentsChange: typing.ClassVar[QtCore.pyqtSignal]
  6128. blockCountChanged: typing.ClassVar[QtCore.pyqtSignal]
  6129. def useDesignMetrics(self) -> bool: ...
  6130. def setUseDesignMetrics(self, b: bool) -> None: ...
  6131. def markContentsDirty(self, from_: int, length: int) -> None: ...
  6132. def allFormats(self) -> list['QTextFormat']: ...
  6133. def addResource(self, type: int, name: QtCore.QUrl, resource: typing.Any) -> None: ...
  6134. def resource(self, type: int, name: QtCore.QUrl) -> typing.Any: ...
  6135. def print(self, printer: QPagedPaintDevice|None) -> None: ...
  6136. def isModified(self) -> bool: ...
  6137. def pageCount(self) -> int: ...
  6138. def defaultFont(self) -> QFont: ...
  6139. def setDefaultFont(self, font: QFont) -> None: ...
  6140. def pageSize(self) -> QtCore.QSizeF: ...
  6141. def setPageSize(self, size: QtCore.QSizeF) -> None: ...
  6142. def end(self) -> 'QTextBlock': ...
  6143. def begin(self) -> 'QTextBlock': ...
  6144. def findBlock(self, pos: int) -> 'QTextBlock': ...
  6145. def objectForFormat(self, a0: 'QTextFormat') -> 'QTextObject|None': ...
  6146. def object(self, objectIndex: int) -> 'QTextObject|None': ...
  6147. def rootFrame(self) -> 'QTextFrame|None': ...
  6148. @typing.overload
  6149. def find(self, expr: QtCore.QRegularExpression, cursor: QTextCursor, options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ...
  6150. @typing.overload
  6151. def find(self, expr: QtCore.QRegularExpression, position: int = ..., options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ...
  6152. @typing.overload
  6153. def find(self, subString: str|None, cursor: QTextCursor, options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ...
  6154. @typing.overload
  6155. def find(self, subString: str|None, position: int = ..., options: 'QTextDocument.FindFlag' = ...) -> QTextCursor: ...
  6156. def setPlainText(self, text: str|None) -> None: ...
  6157. def toPlainText(self) -> str: ...
  6158. def setHtml(self, html: str|None) -> None: ...
  6159. def toHtml(self) -> str: ...
  6160. def metaInformation(self, info: 'QTextDocument.MetaInformation') -> str: ...
  6161. def setMetaInformation(self, info: 'QTextDocument.MetaInformation', a1: str|None) -> None: ...
  6162. def documentLayout(self) -> QAbstractTextDocumentLayout|None: ...
  6163. def setDocumentLayout(self, layout: QAbstractTextDocumentLayout|None) -> None: ...
  6164. def isRedoAvailable(self) -> bool: ...
  6165. def isUndoAvailable(self) -> bool: ...
  6166. def isUndoRedoEnabled(self) -> bool: ...
  6167. def setUndoRedoEnabled(self, enable: bool) -> None: ...
  6168. def clear(self) -> None: ...
  6169. def isEmpty(self) -> bool: ...
  6170. def clone(self, parent: QtCore.QObject|None = ...) -> 'QTextDocument|None': ...
  6171. class QTextDocumentFragment(PyQt6.sip.simplewrapper):
  6172. @typing.overload
  6173. def __init__(self) -> None: ...
  6174. @typing.overload
  6175. def __init__(self, document: QTextDocument|None) -> None: ...
  6176. @typing.overload
  6177. def __init__(self, range: QTextCursor) -> None: ...
  6178. @typing.overload
  6179. def __init__(self, rhs: 'QTextDocumentFragment') -> None: ...
  6180. @staticmethod
  6181. def fromMarkdown(markdown: str|None, features: QTextDocument.MarkdownFeature = ...) -> 'QTextDocumentFragment': ...
  6182. def toMarkdown(self, features: QTextDocument.MarkdownFeature = ...) -> str: ...
  6183. def toRawText(self) -> str: ...
  6184. @staticmethod
  6185. def fromHtml(html: str|None, resourceProvider: QTextDocument|None = ...) -> 'QTextDocumentFragment': ...
  6186. @staticmethod
  6187. def fromPlainText(plainText: str|None) -> 'QTextDocumentFragment': ...
  6188. def toHtml(self) -> str: ...
  6189. def toPlainText(self) -> str: ...
  6190. def isEmpty(self) -> bool: ...
  6191. class QTextDocumentWriter(PyQt6.sip.simplewrapper):
  6192. @typing.overload
  6193. def __init__(self) -> None: ...
  6194. @typing.overload
  6195. def __init__(self, device: QtCore.QIODevice|None, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  6196. @typing.overload
  6197. def __init__(self, fileName: str|None, format: QtCore.QByteArray|bytes|bytearray|memoryview = ...) -> None: ...
  6198. @staticmethod
  6199. def supportedDocumentFormats() -> list[QtCore.QByteArray]: ...
  6200. @typing.overload
  6201. def write(self, document: QTextDocument|None) -> bool: ...
  6202. @typing.overload
  6203. def write(self, fragment: QTextDocumentFragment) -> bool: ...
  6204. def fileName(self) -> str: ...
  6205. def setFileName(self, fileName: str|None) -> None: ...
  6206. def device(self) -> QtCore.QIODevice|None: ...
  6207. def setDevice(self, device: QtCore.QIODevice|None) -> None: ...
  6208. def format(self) -> QtCore.QByteArray: ...
  6209. def setFormat(self, format: QtCore.QByteArray|bytes|bytearray|memoryview) -> None: ...
  6210. class QTextLength(PyQt6.sip.simplewrapper):
  6211. class Type(enum.Enum):
  6212. VariableLength = ... # type: QTextLength.Type
  6213. FixedLength = ... # type: QTextLength.Type
  6214. PercentageLength = ... # type: QTextLength.Type
  6215. @typing.overload
  6216. def __init__(self) -> None: ...
  6217. @typing.overload
  6218. def __init__(self, atype: 'QTextLength.Type', avalue: float) -> None: ...
  6219. @typing.overload
  6220. def __init__(self, variant: typing.Any) -> None: ...
  6221. @typing.overload
  6222. def __init__(self, a0: 'QTextLength') -> None: ...
  6223. def __ne__(self, other: object): ...
  6224. def __eq__(self, other: object): ...
  6225. def rawValue(self) -> float: ...
  6226. def value(self, maximumLength: float) -> float: ...
  6227. def type(self) -> 'QTextLength.Type': ...
  6228. class QTextFormat(PyQt6.sip.simplewrapper):
  6229. class Property(enum.IntEnum):
  6230. ObjectIndex = ... # type: QTextFormat.Property
  6231. CssFloat = ... # type: QTextFormat.Property
  6232. LayoutDirection = ... # type: QTextFormat.Property
  6233. OutlinePen = ... # type: QTextFormat.Property
  6234. BackgroundBrush = ... # type: QTextFormat.Property
  6235. ForegroundBrush = ... # type: QTextFormat.Property
  6236. BlockAlignment = ... # type: QTextFormat.Property
  6237. BlockTopMargin = ... # type: QTextFormat.Property
  6238. BlockBottomMargin = ... # type: QTextFormat.Property
  6239. BlockLeftMargin = ... # type: QTextFormat.Property
  6240. BlockRightMargin = ... # type: QTextFormat.Property
  6241. TextIndent = ... # type: QTextFormat.Property
  6242. BlockIndent = ... # type: QTextFormat.Property
  6243. BlockNonBreakableLines = ... # type: QTextFormat.Property
  6244. BlockTrailingHorizontalRulerWidth = ... # type: QTextFormat.Property
  6245. FontPointSize = ... # type: QTextFormat.Property
  6246. FontSizeAdjustment = ... # type: QTextFormat.Property
  6247. FontSizeIncrement = ... # type: QTextFormat.Property
  6248. FontWeight = ... # type: QTextFormat.Property
  6249. FontItalic = ... # type: QTextFormat.Property
  6250. FontUnderline = ... # type: QTextFormat.Property
  6251. FontOverline = ... # type: QTextFormat.Property
  6252. FontStrikeOut = ... # type: QTextFormat.Property
  6253. FontFixedPitch = ... # type: QTextFormat.Property
  6254. FontPixelSize = ... # type: QTextFormat.Property
  6255. TextUnderlineColor = ... # type: QTextFormat.Property
  6256. TextVerticalAlignment = ... # type: QTextFormat.Property
  6257. TextOutline = ... # type: QTextFormat.Property
  6258. IsAnchor = ... # type: QTextFormat.Property
  6259. AnchorHref = ... # type: QTextFormat.Property
  6260. AnchorName = ... # type: QTextFormat.Property
  6261. ObjectType = ... # type: QTextFormat.Property
  6262. ListStyle = ... # type: QTextFormat.Property
  6263. ListIndent = ... # type: QTextFormat.Property
  6264. FrameBorder = ... # type: QTextFormat.Property
  6265. FrameMargin = ... # type: QTextFormat.Property
  6266. FramePadding = ... # type: QTextFormat.Property
  6267. FrameWidth = ... # type: QTextFormat.Property
  6268. FrameHeight = ... # type: QTextFormat.Property
  6269. TableColumns = ... # type: QTextFormat.Property
  6270. TableColumnWidthConstraints = ... # type: QTextFormat.Property
  6271. TableCellSpacing = ... # type: QTextFormat.Property
  6272. TableCellPadding = ... # type: QTextFormat.Property
  6273. TableCellRowSpan = ... # type: QTextFormat.Property
  6274. TableCellColumnSpan = ... # type: QTextFormat.Property
  6275. ImageName = ... # type: QTextFormat.Property
  6276. ImageWidth = ... # type: QTextFormat.Property
  6277. ImageHeight = ... # type: QTextFormat.Property
  6278. TextUnderlineStyle = ... # type: QTextFormat.Property
  6279. TableHeaderRowCount = ... # type: QTextFormat.Property
  6280. FullWidthSelection = ... # type: QTextFormat.Property
  6281. PageBreakPolicy = ... # type: QTextFormat.Property
  6282. TextToolTip = ... # type: QTextFormat.Property
  6283. FrameTopMargin = ... # type: QTextFormat.Property
  6284. FrameBottomMargin = ... # type: QTextFormat.Property
  6285. FrameLeftMargin = ... # type: QTextFormat.Property
  6286. FrameRightMargin = ... # type: QTextFormat.Property
  6287. FrameBorderBrush = ... # type: QTextFormat.Property
  6288. FrameBorderStyle = ... # type: QTextFormat.Property
  6289. BackgroundImageUrl = ... # type: QTextFormat.Property
  6290. TabPositions = ... # type: QTextFormat.Property
  6291. FirstFontProperty = ... # type: QTextFormat.Property
  6292. FontCapitalization = ... # type: QTextFormat.Property
  6293. FontLetterSpacing = ... # type: QTextFormat.Property
  6294. FontWordSpacing = ... # type: QTextFormat.Property
  6295. LastFontProperty = ... # type: QTextFormat.Property
  6296. TableCellTopPadding = ... # type: QTextFormat.Property
  6297. TableCellBottomPadding = ... # type: QTextFormat.Property
  6298. TableCellLeftPadding = ... # type: QTextFormat.Property
  6299. TableCellRightPadding = ... # type: QTextFormat.Property
  6300. FontStyleHint = ... # type: QTextFormat.Property
  6301. FontStyleStrategy = ... # type: QTextFormat.Property
  6302. FontKerning = ... # type: QTextFormat.Property
  6303. LineHeight = ... # type: QTextFormat.Property
  6304. LineHeightType = ... # type: QTextFormat.Property
  6305. FontHintingPreference = ... # type: QTextFormat.Property
  6306. ListNumberPrefix = ... # type: QTextFormat.Property
  6307. ListNumberSuffix = ... # type: QTextFormat.Property
  6308. FontStretch = ... # type: QTextFormat.Property
  6309. FontLetterSpacingType = ... # type: QTextFormat.Property
  6310. HeadingLevel = ... # type: QTextFormat.Property
  6311. ImageQuality = ... # type: QTextFormat.Property
  6312. FontFamilies = ... # type: QTextFormat.Property
  6313. FontStyleName = ... # type: QTextFormat.Property
  6314. BlockQuoteLevel = ... # type: QTextFormat.Property
  6315. BlockCodeLanguage = ... # type: QTextFormat.Property
  6316. BlockCodeFence = ... # type: QTextFormat.Property
  6317. BlockMarker = ... # type: QTextFormat.Property
  6318. TableBorderCollapse = ... # type: QTextFormat.Property
  6319. TableCellTopBorder = ... # type: QTextFormat.Property
  6320. TableCellBottomBorder = ... # type: QTextFormat.Property
  6321. TableCellLeftBorder = ... # type: QTextFormat.Property
  6322. TableCellRightBorder = ... # type: QTextFormat.Property
  6323. TableCellTopBorderStyle = ... # type: QTextFormat.Property
  6324. TableCellBottomBorderStyle = ... # type: QTextFormat.Property
  6325. TableCellLeftBorderStyle = ... # type: QTextFormat.Property
  6326. TableCellRightBorderStyle = ... # type: QTextFormat.Property
  6327. TableCellTopBorderBrush = ... # type: QTextFormat.Property
  6328. TableCellBottomBorderBrush = ... # type: QTextFormat.Property
  6329. TableCellLeftBorderBrush = ... # type: QTextFormat.Property
  6330. TableCellRightBorderBrush = ... # type: QTextFormat.Property
  6331. ImageTitle = ... # type: QTextFormat.Property
  6332. ImageAltText = ... # type: QTextFormat.Property
  6333. TextSuperScriptBaseline = ... # type: QTextFormat.Property
  6334. TextSubScriptBaseline = ... # type: QTextFormat.Property
  6335. TextBaselineOffset = ... # type: QTextFormat.Property
  6336. OldFontLetterSpacingType = ... # type: QTextFormat.Property
  6337. OldFontStretch = ... # type: QTextFormat.Property
  6338. OldTextUnderlineColor = ... # type: QTextFormat.Property
  6339. OldFontFamily = ... # type: QTextFormat.Property
  6340. ListStart = ... # type: QTextFormat.Property
  6341. ImageMaxWidth = ... # type: QTextFormat.Property
  6342. FontFeatures = ... # type: QTextFormat.Property
  6343. FontVariableAxes = ... # type: QTextFormat.Property
  6344. UserProperty = ... # type: QTextFormat.Property
  6345. class PageBreakFlag(enum.Flag):
  6346. PageBreak_Auto = ... # type: QTextFormat.PageBreakFlag
  6347. PageBreak_AlwaysBefore = ... # type: QTextFormat.PageBreakFlag
  6348. PageBreak_AlwaysAfter = ... # type: QTextFormat.PageBreakFlag
  6349. class ObjectTypes(enum.IntEnum):
  6350. NoObject = ... # type: QTextFormat.ObjectTypes
  6351. ImageObject = ... # type: QTextFormat.ObjectTypes
  6352. TableObject = ... # type: QTextFormat.ObjectTypes
  6353. TableCellObject = ... # type: QTextFormat.ObjectTypes
  6354. UserObject = ... # type: QTextFormat.ObjectTypes
  6355. class FormatType(enum.IntEnum):
  6356. InvalidFormat = ... # type: QTextFormat.FormatType
  6357. BlockFormat = ... # type: QTextFormat.FormatType
  6358. CharFormat = ... # type: QTextFormat.FormatType
  6359. ListFormat = ... # type: QTextFormat.FormatType
  6360. FrameFormat = ... # type: QTextFormat.FormatType
  6361. UserFormat = ... # type: QTextFormat.FormatType
  6362. @typing.overload
  6363. def __init__(self) -> None: ...
  6364. @typing.overload
  6365. def __init__(self, type: int) -> None: ...
  6366. @typing.overload
  6367. def __init__(self, rhs: 'QTextFormat') -> None: ...
  6368. @typing.overload
  6369. def __init__(self, variant: typing.Any) -> None: ...
  6370. def isEmpty(self) -> bool: ...
  6371. def swap(self, other: 'QTextFormat') -> None: ...
  6372. def toTableCellFormat(self) -> 'QTextTableCellFormat': ...
  6373. def isTableCellFormat(self) -> bool: ...
  6374. def propertyCount(self) -> int: ...
  6375. def setObjectType(self, atype: int) -> None: ...
  6376. def clearForeground(self) -> None: ...
  6377. def foreground(self) -> QBrush: ...
  6378. def setForeground(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6379. def clearBackground(self) -> None: ...
  6380. def background(self) -> QBrush: ...
  6381. def setBackground(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6382. def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ...
  6383. def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ...
  6384. def __ne__(self, other: object): ...
  6385. def __eq__(self, other: object): ...
  6386. def toImageFormat(self) -> 'QTextImageFormat': ...
  6387. def toFrameFormat(self) -> 'QTextFrameFormat': ...
  6388. def toTableFormat(self) -> 'QTextTableFormat': ...
  6389. def toListFormat(self) -> 'QTextListFormat': ...
  6390. def toCharFormat(self) -> 'QTextCharFormat': ...
  6391. def toBlockFormat(self) -> 'QTextBlockFormat': ...
  6392. def isTableFormat(self) -> bool: ...
  6393. def isImageFormat(self) -> bool: ...
  6394. def isFrameFormat(self) -> bool: ...
  6395. def isListFormat(self) -> bool: ...
  6396. def isBlockFormat(self) -> bool: ...
  6397. def isCharFormat(self) -> bool: ...
  6398. def objectType(self) -> int: ...
  6399. def properties(self) -> dict[int, typing.Any]: ...
  6400. def lengthVectorProperty(self, propertyId: int) -> list[QTextLength]: ...
  6401. def lengthProperty(self, propertyId: int) -> QTextLength: ...
  6402. def brushProperty(self, propertyId: int) -> QBrush: ...
  6403. def penProperty(self, propertyId: int) -> QPen: ...
  6404. def colorProperty(self, propertyId: int) -> QColor: ...
  6405. def stringProperty(self, propertyId: int) -> str: ...
  6406. def doubleProperty(self, propertyId: int) -> float: ...
  6407. def intProperty(self, propertyId: int) -> int: ...
  6408. def boolProperty(self, propertyId: int) -> bool: ...
  6409. def hasProperty(self, propertyId: int) -> bool: ...
  6410. def clearProperty(self, propertyId: int) -> None: ...
  6411. @typing.overload
  6412. def setProperty(self, propertyId: int, lengths: collections.abc.Iterable[QTextLength]) -> None: ...
  6413. @typing.overload
  6414. def setProperty(self, propertyId: int, value: typing.Any) -> None: ...
  6415. def property(self, propertyId: int) -> typing.Any: ...
  6416. def setObjectIndex(self, object: int) -> None: ...
  6417. def objectIndex(self) -> int: ...
  6418. def type(self) -> int: ...
  6419. def isValid(self) -> bool: ...
  6420. def merge(self, other: 'QTextFormat') -> None: ...
  6421. class QTextCharFormat(QTextFormat):
  6422. class FontPropertiesInheritanceBehavior(enum.Enum):
  6423. FontPropertiesSpecifiedOnly = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior
  6424. FontPropertiesAll = ... # type: QTextCharFormat.FontPropertiesInheritanceBehavior
  6425. class UnderlineStyle(enum.Enum):
  6426. NoUnderline = ... # type: QTextCharFormat.UnderlineStyle
  6427. SingleUnderline = ... # type: QTextCharFormat.UnderlineStyle
  6428. DashUnderline = ... # type: QTextCharFormat.UnderlineStyle
  6429. DotLine = ... # type: QTextCharFormat.UnderlineStyle
  6430. DashDotLine = ... # type: QTextCharFormat.UnderlineStyle
  6431. DashDotDotLine = ... # type: QTextCharFormat.UnderlineStyle
  6432. WaveUnderline = ... # type: QTextCharFormat.UnderlineStyle
  6433. SpellCheckUnderline = ... # type: QTextCharFormat.UnderlineStyle
  6434. class VerticalAlignment(enum.Enum):
  6435. AlignNormal = ... # type: QTextCharFormat.VerticalAlignment
  6436. AlignSuperScript = ... # type: QTextCharFormat.VerticalAlignment
  6437. AlignSubScript = ... # type: QTextCharFormat.VerticalAlignment
  6438. AlignMiddle = ... # type: QTextCharFormat.VerticalAlignment
  6439. AlignTop = ... # type: QTextCharFormat.VerticalAlignment
  6440. AlignBottom = ... # type: QTextCharFormat.VerticalAlignment
  6441. AlignBaseline = ... # type: QTextCharFormat.VerticalAlignment
  6442. @typing.overload
  6443. def __init__(self) -> None: ...
  6444. @typing.overload
  6445. def __init__(self, a0: 'QTextCharFormat') -> None: ...
  6446. def fontVariableAxes(self) -> dict[QFont.Tag, float]: ...
  6447. def setFontVariableAxes(self, fontVariableAxes: dict[QFont.Tag, float]) -> None: ...
  6448. def fontFeatures(self) -> dict[QFont.Tag, int]: ...
  6449. def setFontFeatures(self, fontFeatures: dict[QFont.Tag, int]) -> None: ...
  6450. def baselineOffset(self) -> float: ...
  6451. def setBaselineOffset(self, baseline: float) -> None: ...
  6452. def subScriptBaseline(self) -> float: ...
  6453. def setSubScriptBaseline(self, baseline: float) -> None: ...
  6454. def superScriptBaseline(self) -> float: ...
  6455. def setSuperScriptBaseline(self, baseline: float) -> None: ...
  6456. def fontStyleName(self) -> typing.Any: ...
  6457. def setFontStyleName(self, styleName: str|None) -> None: ...
  6458. def fontFamilies(self) -> typing.Any: ...
  6459. def setFontFamilies(self, families: collections.abc.Iterable[str|None]) -> None: ...
  6460. def fontLetterSpacingType(self) -> QFont.SpacingType: ...
  6461. def setFontLetterSpacingType(self, letterSpacingType: QFont.SpacingType) -> None: ...
  6462. def setFontStretch(self, factor: int) -> None: ...
  6463. def fontStretch(self) -> int: ...
  6464. def fontHintingPreference(self) -> QFont.HintingPreference: ...
  6465. def setFontHintingPreference(self, hintingPreference: QFont.HintingPreference) -> None: ...
  6466. def fontKerning(self) -> bool: ...
  6467. def setFontKerning(self, enable: bool) -> None: ...
  6468. def fontStyleStrategy(self) -> QFont.StyleStrategy: ...
  6469. def fontStyleHint(self) -> QFont.StyleHint: ...
  6470. def setFontStyleStrategy(self, strategy: QFont.StyleStrategy) -> None: ...
  6471. def setFontStyleHint(self, hint: QFont.StyleHint, strategy: QFont.StyleStrategy = ...) -> None: ...
  6472. def fontWordSpacing(self) -> float: ...
  6473. def setFontWordSpacing(self, spacing: float) -> None: ...
  6474. def fontLetterSpacing(self) -> float: ...
  6475. def setFontLetterSpacing(self, spacing: float) -> None: ...
  6476. def fontCapitalization(self) -> QFont.Capitalization: ...
  6477. def setFontCapitalization(self, capitalization: QFont.Capitalization) -> None: ...
  6478. def anchorNames(self) -> list[str]: ...
  6479. def setAnchorNames(self, names: collections.abc.Iterable[str|None]) -> None: ...
  6480. def toolTip(self) -> str: ...
  6481. def setToolTip(self, tip: str|None) -> None: ...
  6482. def underlineStyle(self) -> 'QTextCharFormat.UnderlineStyle': ...
  6483. def setUnderlineStyle(self, style: 'QTextCharFormat.UnderlineStyle') -> None: ...
  6484. def textOutline(self) -> QPen: ...
  6485. def setTextOutline(self, pen: QPen|QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  6486. def setTableCellColumnSpan(self, atableCellColumnSpan: int) -> None: ...
  6487. def setTableCellRowSpan(self, atableCellRowSpan: int) -> None: ...
  6488. def tableCellColumnSpan(self) -> int: ...
  6489. def tableCellRowSpan(self) -> int: ...
  6490. def anchorHref(self) -> str: ...
  6491. def setAnchorHref(self, value: str|None) -> None: ...
  6492. def isAnchor(self) -> bool: ...
  6493. def setAnchor(self, anchor: bool) -> None: ...
  6494. def verticalAlignment(self) -> 'QTextCharFormat.VerticalAlignment': ...
  6495. def setVerticalAlignment(self, alignment: 'QTextCharFormat.VerticalAlignment') -> None: ...
  6496. def fontFixedPitch(self) -> bool: ...
  6497. def setFontFixedPitch(self, fixedPitch: bool) -> None: ...
  6498. def underlineColor(self) -> QColor: ...
  6499. def setUnderlineColor(self, color: QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  6500. def fontStrikeOut(self) -> bool: ...
  6501. def setFontStrikeOut(self, strikeOut: bool) -> None: ...
  6502. def fontOverline(self) -> bool: ...
  6503. def setFontOverline(self, overline: bool) -> None: ...
  6504. def fontUnderline(self) -> bool: ...
  6505. def setFontUnderline(self, underline: bool) -> None: ...
  6506. def fontItalic(self) -> bool: ...
  6507. def setFontItalic(self, italic: bool) -> None: ...
  6508. def fontWeight(self) -> int: ...
  6509. def setFontWeight(self, weight: int) -> None: ...
  6510. def fontPointSize(self) -> float: ...
  6511. def setFontPointSize(self, size: float) -> None: ...
  6512. def fontFamily(self) -> str: ...
  6513. def setFontFamily(self, family: str|None) -> None: ...
  6514. def font(self) -> QFont: ...
  6515. def setFont(self, font: QFont, behavior: 'QTextCharFormat.FontPropertiesInheritanceBehavior' = ...) -> None: ...
  6516. def isValid(self) -> bool: ...
  6517. class QTextBlockFormat(QTextFormat):
  6518. class MarkerType(enum.Enum):
  6519. NoMarker = ... # type: QTextBlockFormat.MarkerType
  6520. Unchecked = ... # type: QTextBlockFormat.MarkerType
  6521. Checked = ... # type: QTextBlockFormat.MarkerType
  6522. class LineHeightTypes(enum.Enum):
  6523. SingleHeight = ... # type: QTextBlockFormat.LineHeightTypes
  6524. ProportionalHeight = ... # type: QTextBlockFormat.LineHeightTypes
  6525. FixedHeight = ... # type: QTextBlockFormat.LineHeightTypes
  6526. MinimumHeight = ... # type: QTextBlockFormat.LineHeightTypes
  6527. LineDistanceHeight = ... # type: QTextBlockFormat.LineHeightTypes
  6528. @typing.overload
  6529. def __init__(self) -> None: ...
  6530. @typing.overload
  6531. def __init__(self, a0: 'QTextBlockFormat') -> None: ...
  6532. def marker(self) -> 'QTextBlockFormat.MarkerType': ...
  6533. def setMarker(self, marker: 'QTextBlockFormat.MarkerType') -> None: ...
  6534. def headingLevel(self) -> int: ...
  6535. def setHeadingLevel(self, alevel: int) -> None: ...
  6536. def lineHeightType(self) -> int: ...
  6537. @typing.overload
  6538. def lineHeight(self) -> float: ...
  6539. @typing.overload
  6540. def lineHeight(self, scriptLineHeight: float, scaling: float = ...) -> float: ...
  6541. def setLineHeight(self, height: float, heightType: int) -> None: ...
  6542. def tabPositions(self) -> list['QTextOption.Tab']: ...
  6543. def setTabPositions(self, tabs: collections.abc.Iterable['QTextOption.Tab']) -> None: ...
  6544. def pageBreakPolicy(self) -> QTextFormat.PageBreakFlag: ...
  6545. def setPageBreakPolicy(self, flags: QTextFormat.PageBreakFlag) -> None: ...
  6546. def setIndent(self, aindent: int) -> None: ...
  6547. def setAlignment(self, aalignment: QtCore.Qt.AlignmentFlag) -> None: ...
  6548. def nonBreakableLines(self) -> bool: ...
  6549. def setNonBreakableLines(self, b: bool) -> None: ...
  6550. def indent(self) -> int: ...
  6551. def textIndent(self) -> float: ...
  6552. def setTextIndent(self, margin: float) -> None: ...
  6553. def rightMargin(self) -> float: ...
  6554. def setRightMargin(self, margin: float) -> None: ...
  6555. def leftMargin(self) -> float: ...
  6556. def setLeftMargin(self, margin: float) -> None: ...
  6557. def bottomMargin(self) -> float: ...
  6558. def setBottomMargin(self, margin: float) -> None: ...
  6559. def topMargin(self) -> float: ...
  6560. def setTopMargin(self, margin: float) -> None: ...
  6561. def alignment(self) -> QtCore.Qt.AlignmentFlag: ...
  6562. def isValid(self) -> bool: ...
  6563. class QTextListFormat(QTextFormat):
  6564. class Style(enum.Enum):
  6565. ListDisc = ... # type: QTextListFormat.Style
  6566. ListCircle = ... # type: QTextListFormat.Style
  6567. ListSquare = ... # type: QTextListFormat.Style
  6568. ListDecimal = ... # type: QTextListFormat.Style
  6569. ListLowerAlpha = ... # type: QTextListFormat.Style
  6570. ListUpperAlpha = ... # type: QTextListFormat.Style
  6571. ListLowerRoman = ... # type: QTextListFormat.Style
  6572. ListUpperRoman = ... # type: QTextListFormat.Style
  6573. @typing.overload
  6574. def __init__(self) -> None: ...
  6575. @typing.overload
  6576. def __init__(self, a0: 'QTextListFormat') -> None: ...
  6577. def start(self) -> int: ...
  6578. def setStart(self, indent: int) -> None: ...
  6579. def setNumberSuffix(self, ns: str|None) -> None: ...
  6580. def setNumberPrefix(self, np: str|None) -> None: ...
  6581. def numberSuffix(self) -> str: ...
  6582. def numberPrefix(self) -> str: ...
  6583. def setIndent(self, aindent: int) -> None: ...
  6584. def setStyle(self, astyle: 'QTextListFormat.Style') -> None: ...
  6585. def indent(self) -> int: ...
  6586. def style(self) -> 'QTextListFormat.Style': ...
  6587. def isValid(self) -> bool: ...
  6588. class QTextImageFormat(QTextCharFormat):
  6589. @typing.overload
  6590. def __init__(self) -> None: ...
  6591. @typing.overload
  6592. def __init__(self, a0: 'QTextImageFormat') -> None: ...
  6593. def maximumWidth(self) -> QTextLength: ...
  6594. def setMaximumWidth(self, maxWidth: QTextLength) -> None: ...
  6595. def setQuality(self, quality: int = ...) -> None: ...
  6596. def setHeight(self, aheight: float) -> None: ...
  6597. def setWidth(self, awidth: float) -> None: ...
  6598. def setName(self, aname: str|None) -> None: ...
  6599. def quality(self) -> int: ...
  6600. def height(self) -> float: ...
  6601. def width(self) -> float: ...
  6602. def name(self) -> str: ...
  6603. def isValid(self) -> bool: ...
  6604. class QTextFrameFormat(QTextFormat):
  6605. class BorderStyle(enum.Enum):
  6606. BorderStyle_None = ... # type: QTextFrameFormat.BorderStyle
  6607. BorderStyle_Dotted = ... # type: QTextFrameFormat.BorderStyle
  6608. BorderStyle_Dashed = ... # type: QTextFrameFormat.BorderStyle
  6609. BorderStyle_Solid = ... # type: QTextFrameFormat.BorderStyle
  6610. BorderStyle_Double = ... # type: QTextFrameFormat.BorderStyle
  6611. BorderStyle_DotDash = ... # type: QTextFrameFormat.BorderStyle
  6612. BorderStyle_DotDotDash = ... # type: QTextFrameFormat.BorderStyle
  6613. BorderStyle_Groove = ... # type: QTextFrameFormat.BorderStyle
  6614. BorderStyle_Ridge = ... # type: QTextFrameFormat.BorderStyle
  6615. BorderStyle_Inset = ... # type: QTextFrameFormat.BorderStyle
  6616. BorderStyle_Outset = ... # type: QTextFrameFormat.BorderStyle
  6617. class Position(enum.Enum):
  6618. InFlow = ... # type: QTextFrameFormat.Position
  6619. FloatLeft = ... # type: QTextFrameFormat.Position
  6620. FloatRight = ... # type: QTextFrameFormat.Position
  6621. @typing.overload
  6622. def __init__(self) -> None: ...
  6623. @typing.overload
  6624. def __init__(self, a0: 'QTextFrameFormat') -> None: ...
  6625. def setRightMargin(self, amargin: float) -> None: ...
  6626. def setLeftMargin(self, amargin: float) -> None: ...
  6627. def setBottomMargin(self, amargin: float) -> None: ...
  6628. def setTopMargin(self, amargin: float) -> None: ...
  6629. def rightMargin(self) -> float: ...
  6630. def leftMargin(self) -> float: ...
  6631. def bottomMargin(self) -> float: ...
  6632. def topMargin(self) -> float: ...
  6633. def borderStyle(self) -> 'QTextFrameFormat.BorderStyle': ...
  6634. def setBorderStyle(self, style: 'QTextFrameFormat.BorderStyle') -> None: ...
  6635. def borderBrush(self) -> QBrush: ...
  6636. def setBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6637. def pageBreakPolicy(self) -> QTextFormat.PageBreakFlag: ...
  6638. def setPageBreakPolicy(self, flags: QTextFormat.PageBreakFlag) -> None: ...
  6639. @typing.overload
  6640. def setHeight(self, aheight: float) -> None: ...
  6641. @typing.overload
  6642. def setHeight(self, aheight: QTextLength) -> None: ...
  6643. def setPadding(self, apadding: float) -> None: ...
  6644. def setMargin(self, amargin: float) -> None: ...
  6645. def setBorder(self, aborder: float) -> None: ...
  6646. def height(self) -> QTextLength: ...
  6647. def width(self) -> QTextLength: ...
  6648. @typing.overload
  6649. def setWidth(self, length: QTextLength) -> None: ...
  6650. @typing.overload
  6651. def setWidth(self, awidth: float) -> None: ...
  6652. def padding(self) -> float: ...
  6653. def margin(self) -> float: ...
  6654. def border(self) -> float: ...
  6655. def position(self) -> 'QTextFrameFormat.Position': ...
  6656. def setPosition(self, f: 'QTextFrameFormat.Position') -> None: ...
  6657. def isValid(self) -> bool: ...
  6658. class QTextTableFormat(QTextFrameFormat):
  6659. @typing.overload
  6660. def __init__(self) -> None: ...
  6661. @typing.overload
  6662. def __init__(self, a0: 'QTextTableFormat') -> None: ...
  6663. def borderCollapse(self) -> bool: ...
  6664. def setBorderCollapse(self, borderCollapse: bool) -> None: ...
  6665. def headerRowCount(self) -> int: ...
  6666. def setHeaderRowCount(self, count: int) -> None: ...
  6667. def setAlignment(self, aalignment: QtCore.Qt.AlignmentFlag) -> None: ...
  6668. def setCellPadding(self, apadding: float) -> None: ...
  6669. def setColumns(self, acolumns: int) -> None: ...
  6670. def alignment(self) -> QtCore.Qt.AlignmentFlag: ...
  6671. def cellPadding(self) -> float: ...
  6672. def setCellSpacing(self, spacing: float) -> None: ...
  6673. def cellSpacing(self) -> float: ...
  6674. def clearColumnWidthConstraints(self) -> None: ...
  6675. def columnWidthConstraints(self) -> list[QTextLength]: ...
  6676. def setColumnWidthConstraints(self, constraints: collections.abc.Iterable[QTextLength]) -> None: ...
  6677. def columns(self) -> int: ...
  6678. def isValid(self) -> bool: ...
  6679. class QTextTableCellFormat(QTextCharFormat):
  6680. @typing.overload
  6681. def __init__(self) -> None: ...
  6682. @typing.overload
  6683. def __init__(self, a0: 'QTextTableCellFormat') -> None: ...
  6684. def setBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6685. def rightBorderBrush(self) -> QBrush: ...
  6686. def setRightBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6687. def leftBorderBrush(self) -> QBrush: ...
  6688. def setLeftBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6689. def bottomBorderBrush(self) -> QBrush: ...
  6690. def setBottomBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6691. def topBorderBrush(self) -> QBrush: ...
  6692. def setTopBorderBrush(self, brush: QBrush|QColor|QtCore.Qt.GlobalColor|int|QGradient) -> None: ...
  6693. def setBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ...
  6694. def rightBorderStyle(self) -> QTextFrameFormat.BorderStyle: ...
  6695. def setRightBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ...
  6696. def leftBorderStyle(self) -> QTextFrameFormat.BorderStyle: ...
  6697. def setLeftBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ...
  6698. def bottomBorderStyle(self) -> QTextFrameFormat.BorderStyle: ...
  6699. def setBottomBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ...
  6700. def topBorderStyle(self) -> QTextFrameFormat.BorderStyle: ...
  6701. def setTopBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ...
  6702. def setBorder(self, width: float) -> None: ...
  6703. def rightBorder(self) -> float: ...
  6704. def setRightBorder(self, width: float) -> None: ...
  6705. def leftBorder(self) -> float: ...
  6706. def setLeftBorder(self, width: float) -> None: ...
  6707. def bottomBorder(self) -> float: ...
  6708. def setBottomBorder(self, width: float) -> None: ...
  6709. def topBorder(self) -> float: ...
  6710. def setTopBorder(self, width: float) -> None: ...
  6711. def setPadding(self, padding: float) -> None: ...
  6712. def rightPadding(self) -> float: ...
  6713. def setRightPadding(self, padding: float) -> None: ...
  6714. def leftPadding(self) -> float: ...
  6715. def setLeftPadding(self, padding: float) -> None: ...
  6716. def bottomPadding(self) -> float: ...
  6717. def setBottomPadding(self, padding: float) -> None: ...
  6718. def topPadding(self) -> float: ...
  6719. def setTopPadding(self, padding: float) -> None: ...
  6720. def isValid(self) -> bool: ...
  6721. class QTextInlineObject(PyQt6.sip.simplewrapper):
  6722. @typing.overload
  6723. def __init__(self) -> None: ...
  6724. @typing.overload
  6725. def __init__(self, a0: 'QTextInlineObject') -> None: ...
  6726. def format(self) -> QTextFormat: ...
  6727. def formatIndex(self) -> int: ...
  6728. def textPosition(self) -> int: ...
  6729. def setDescent(self, d: float) -> None: ...
  6730. def setAscent(self, a: float) -> None: ...
  6731. def setWidth(self, w: float) -> None: ...
  6732. def textDirection(self) -> QtCore.Qt.LayoutDirection: ...
  6733. def height(self) -> float: ...
  6734. def descent(self) -> float: ...
  6735. def ascent(self) -> float: ...
  6736. def width(self) -> float: ...
  6737. def rect(self) -> QtCore.QRectF: ...
  6738. def isValid(self) -> bool: ...
  6739. class QTextLayout(PyQt6.sip.simplewrapper):
  6740. class GlyphRunRetrievalFlag(enum.Enum):
  6741. RetrieveGlyphIndexes = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6742. RetrieveGlyphPositions = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6743. RetrieveStringIndexes = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6744. RetrieveString = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6745. DefaultRetrievalFlags = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6746. RetrieveAll = ... # type: QTextLayout.GlyphRunRetrievalFlag
  6747. class CursorMode(enum.Enum):
  6748. SkipCharacters = ... # type: QTextLayout.CursorMode
  6749. SkipWords = ... # type: QTextLayout.CursorMode
  6750. class FormatRange(PyQt6.sip.simplewrapper):
  6751. format = ... # type: QTextCharFormat
  6752. length = ... # type: int
  6753. start = ... # type: int
  6754. @typing.overload
  6755. def __init__(self) -> None: ...
  6756. @typing.overload
  6757. def __init__(self, a0: 'QTextLayout.FormatRange') -> None: ...
  6758. def __ne__(self, other: object): ...
  6759. def __eq__(self, other: object): ...
  6760. @typing.overload
  6761. def __init__(self) -> None: ...
  6762. @typing.overload
  6763. def __init__(self, text: str|None) -> None: ...
  6764. @typing.overload
  6765. def __init__(self, text: str|None, font: QFont, paintdevice: QPaintDevice|None = ...) -> None: ...
  6766. @typing.overload
  6767. def __init__(self, b: 'QTextBlock') -> None: ...
  6768. def clearFormats(self) -> None: ...
  6769. def formats(self) -> list['QTextLayout.FormatRange']: ...
  6770. def setFormats(self, overrides: collections.abc.Iterable['QTextLayout.FormatRange']) -> None: ...
  6771. @typing.overload
  6772. def glyphRuns(self, from_: int = ..., length: int = ...) -> list[QGlyphRun]: ...
  6773. @typing.overload
  6774. def glyphRuns(self, from_: int, length: int, flags: 'QTextLayout.GlyphRunRetrievalFlag') -> list[QGlyphRun]: ...
  6775. def rightCursorPosition(self, oldPos: int) -> int: ...
  6776. def leftCursorPosition(self, oldPos: int) -> int: ...
  6777. def cursorMoveStyle(self) -> QtCore.Qt.CursorMoveStyle: ...
  6778. def setCursorMoveStyle(self, style: QtCore.Qt.CursorMoveStyle) -> None: ...
  6779. def clearLayout(self) -> None: ...
  6780. def maximumWidth(self) -> float: ...
  6781. def minimumWidth(self) -> float: ...
  6782. def boundingRect(self) -> QtCore.QRectF: ...
  6783. def setPosition(self, p: QtCore.QPointF) -> None: ...
  6784. def position(self) -> QtCore.QPointF: ...
  6785. @typing.overload
  6786. def drawCursor(self, p: QPainter|None, pos: QtCore.QPointF, cursorPosition: int) -> None: ...
  6787. @typing.overload
  6788. def drawCursor(self, p: QPainter|None, pos: QtCore.QPointF, cursorPosition: int, width: int) -> None: ...
  6789. def draw(self, p: QPainter|None, pos: QtCore.QPointF, selections: collections.abc.Iterable['QTextLayout.FormatRange'] = ..., clip: QtCore.QRectF = ...) -> None: ...
  6790. def previousCursorPosition(self, oldPos: int, mode: 'QTextLayout.CursorMode' = ...) -> int: ...
  6791. def nextCursorPosition(self, oldPos: int, mode: 'QTextLayout.CursorMode' = ...) -> int: ...
  6792. def isValidCursorPosition(self, pos: int) -> bool: ...
  6793. def lineForTextPosition(self, pos: int) -> 'QTextLine': ...
  6794. def lineAt(self, i: int) -> 'QTextLine': ...
  6795. def lineCount(self) -> int: ...
  6796. def createLine(self) -> 'QTextLine': ...
  6797. def endLayout(self) -> None: ...
  6798. def beginLayout(self) -> None: ...
  6799. def cacheEnabled(self) -> bool: ...
  6800. def setCacheEnabled(self, enable: bool) -> None: ...
  6801. def preeditAreaText(self) -> str: ...
  6802. def preeditAreaPosition(self) -> int: ...
  6803. def setPreeditArea(self, position: int, text: str|None) -> None: ...
  6804. def textOption(self) -> 'QTextOption': ...
  6805. def setTextOption(self, option: 'QTextOption') -> None: ...
  6806. def text(self) -> str: ...
  6807. def setText(self, string: str|None) -> None: ...
  6808. def font(self) -> QFont: ...
  6809. def setFont(self, f: QFont) -> None: ...
  6810. class QTextLine(PyQt6.sip.simplewrapper):
  6811. class CursorPosition(enum.Enum):
  6812. CursorBetweenCharacters = ... # type: QTextLine.CursorPosition
  6813. CursorOnCharacter = ... # type: QTextLine.CursorPosition
  6814. class Edge(enum.Enum):
  6815. Leading = ... # type: QTextLine.Edge
  6816. Trailing = ... # type: QTextLine.Edge
  6817. @typing.overload
  6818. def __init__(self) -> None: ...
  6819. @typing.overload
  6820. def __init__(self, a0: 'QTextLine') -> None: ...
  6821. @typing.overload
  6822. def glyphRuns(self, from_: int = ..., length: int = ...) -> list[QGlyphRun]: ...
  6823. @typing.overload
  6824. def glyphRuns(self, from_: int, length: int, flags: QTextLayout.GlyphRunRetrievalFlag) -> list[QGlyphRun]: ...
  6825. def horizontalAdvance(self) -> float: ...
  6826. def leadingIncluded(self) -> bool: ...
  6827. def setLeadingIncluded(self, included: bool) -> None: ...
  6828. def leading(self) -> float: ...
  6829. def position(self) -> QtCore.QPointF: ...
  6830. def draw(self, painter: QPainter|None, position: QtCore.QPointF) -> None: ...
  6831. def lineNumber(self) -> int: ...
  6832. def textLength(self) -> int: ...
  6833. def textStart(self) -> int: ...
  6834. def setPosition(self, pos: QtCore.QPointF) -> None: ...
  6835. @typing.overload
  6836. def setNumColumns(self, columns: int) -> None: ...
  6837. @typing.overload
  6838. def setNumColumns(self, columns: int, alignmentWidth: float) -> None: ...
  6839. def setLineWidth(self, width: float) -> None: ...
  6840. def xToCursor(self, x: float, edge: 'QTextLine.CursorPosition' = ...) -> int: ...
  6841. def cursorToX(self, cursorPos: int, edge: 'QTextLine.Edge' = ...) -> typing.Tuple[float, int]: ...
  6842. def naturalTextRect(self) -> QtCore.QRectF: ...
  6843. def naturalTextWidth(self) -> float: ...
  6844. def height(self) -> float: ...
  6845. def descent(self) -> float: ...
  6846. def ascent(self) -> float: ...
  6847. def width(self) -> float: ...
  6848. def y(self) -> float: ...
  6849. def x(self) -> float: ...
  6850. def rect(self) -> QtCore.QRectF: ...
  6851. def isValid(self) -> bool: ...
  6852. class QTextObject(QtCore.QObject):
  6853. def __init__(self, doc: QTextDocument|None) -> None: ...
  6854. def objectIndex(self) -> int: ...
  6855. def document(self) -> QTextDocument|None: ...
  6856. def formatIndex(self) -> int: ...
  6857. def format(self) -> QTextFormat: ...
  6858. def setFormat(self, format: QTextFormat) -> None: ...
  6859. class QTextBlockGroup(QTextObject):
  6860. def __init__(self, doc: QTextDocument|None) -> None: ...
  6861. def blockList(self) -> list['QTextBlock']: ...
  6862. def blockFormatChanged(self, block: 'QTextBlock') -> None: ...
  6863. def blockRemoved(self, block: 'QTextBlock') -> None: ...
  6864. def blockInserted(self, block: 'QTextBlock') -> None: ...
  6865. class QTextList(QTextBlockGroup):
  6866. def __init__(self, doc: QTextDocument|None) -> None: ...
  6867. def setFormat(self, aformat: QTextListFormat) -> None: ...
  6868. def format(self) -> QTextListFormat: ...
  6869. def add(self, block: 'QTextBlock') -> None: ...
  6870. def remove(self, a0: 'QTextBlock') -> None: ...
  6871. def removeItem(self, i: int) -> None: ...
  6872. def itemText(self, a0: 'QTextBlock') -> str: ...
  6873. def itemNumber(self, a0: 'QTextBlock') -> int: ...
  6874. def item(self, i: int) -> 'QTextBlock': ...
  6875. def __len__(self) -> int: ...
  6876. def count(self) -> int: ...
  6877. class QTextFrame(QTextObject):
  6878. class iterator(PyQt6.sip.simplewrapper):
  6879. @typing.overload
  6880. def __init__(self) -> None: ...
  6881. @typing.overload
  6882. def __init__(self, a0: 'QTextFrame.iterator') -> None: ...
  6883. def __isub__(self, a0: int) -> 'QTextFrame.iterator': ...
  6884. def __iadd__(self, a0: int) -> 'QTextFrame.iterator': ...
  6885. def __ne__(self, other: object): ...
  6886. def __eq__(self, other: object): ...
  6887. def atEnd(self) -> bool: ...
  6888. def currentBlock(self) -> 'QTextBlock': ...
  6889. def currentFrame(self) -> 'QTextFrame|None': ...
  6890. def parentFrame(self) -> 'QTextFrame|None': ...
  6891. def __init__(self, doc: QTextDocument|None) -> None: ...
  6892. def setFrameFormat(self, aformat: QTextFrameFormat) -> None: ...
  6893. def end(self) -> 'QTextFrame.iterator': ...
  6894. def begin(self) -> 'QTextFrame.iterator': ...
  6895. def parentFrame(self) -> 'QTextFrame|None': ...
  6896. def childFrames(self) -> list['QTextFrame']: ...
  6897. def lastPosition(self) -> int: ...
  6898. def firstPosition(self) -> int: ...
  6899. def lastCursorPosition(self) -> QTextCursor: ...
  6900. def firstCursorPosition(self) -> QTextCursor: ...
  6901. def frameFormat(self) -> QTextFrameFormat: ...
  6902. class QTextBlock(PyQt6.sip.wrapper):
  6903. class iterator(PyQt6.sip.simplewrapper):
  6904. @typing.overload
  6905. def __init__(self) -> None: ...
  6906. @typing.overload
  6907. def __init__(self, a0: 'QTextBlock.iterator') -> None: ...
  6908. def __isub__(self, a0: int) -> 'QTextBlock.iterator': ...
  6909. def __iadd__(self, a0: int) -> 'QTextBlock.iterator': ...
  6910. def __ne__(self, other: object): ...
  6911. def __eq__(self, other: object): ...
  6912. def atEnd(self) -> bool: ...
  6913. def fragment(self) -> 'QTextFragment': ...
  6914. @typing.overload
  6915. def __init__(self) -> None: ...
  6916. @typing.overload
  6917. def __init__(self, o: 'QTextBlock') -> None: ...
  6918. def __ge__(self, o: 'QTextBlock') -> bool: ...
  6919. def textFormats(self) -> list[QTextLayout.FormatRange]: ...
  6920. def textDirection(self) -> QtCore.Qt.LayoutDirection: ...
  6921. def lineCount(self) -> int: ...
  6922. def setLineCount(self, count: int) -> None: ...
  6923. def firstLineNumber(self) -> int: ...
  6924. def blockNumber(self) -> int: ...
  6925. def setVisible(self, visible: bool) -> None: ...
  6926. def isVisible(self) -> bool: ...
  6927. def setRevision(self, rev: int) -> None: ...
  6928. def revision(self) -> int: ...
  6929. def clearLayout(self) -> None: ...
  6930. def setUserState(self, state: int) -> None: ...
  6931. def userState(self) -> int: ...
  6932. def setUserData(self, data: 'QTextBlockUserData|None') -> None: ...
  6933. def userData(self) -> 'QTextBlockUserData|None': ...
  6934. def previous(self) -> 'QTextBlock': ...
  6935. def next(self) -> 'QTextBlock': ...
  6936. def end(self) -> 'QTextBlock.iterator': ...
  6937. def begin(self) -> 'QTextBlock.iterator': ...
  6938. def textList(self) -> QTextList|None: ...
  6939. def document(self) -> QTextDocument|None: ...
  6940. def text(self) -> str: ...
  6941. def charFormatIndex(self) -> int: ...
  6942. def charFormat(self) -> QTextCharFormat: ...
  6943. def blockFormatIndex(self) -> int: ...
  6944. def blockFormat(self) -> QTextBlockFormat: ...
  6945. def layout(self) -> QTextLayout|None: ...
  6946. def contains(self, position: int) -> bool: ...
  6947. def length(self) -> int: ...
  6948. def position(self) -> int: ...
  6949. def __lt__(self, o: 'QTextBlock') -> bool: ...
  6950. def __ne__(self, other: object): ...
  6951. def __eq__(self, other: object): ...
  6952. def isValid(self) -> bool: ...
  6953. class QTextFragment(PyQt6.sip.simplewrapper):
  6954. @typing.overload
  6955. def __init__(self) -> None: ...
  6956. @typing.overload
  6957. def __init__(self, o: 'QTextFragment') -> None: ...
  6958. def __ge__(self, o: 'QTextFragment') -> bool: ...
  6959. def glyphRuns(self, from_: int = ..., length: int = ...) -> list[QGlyphRun]: ...
  6960. def text(self) -> str: ...
  6961. def charFormatIndex(self) -> int: ...
  6962. def charFormat(self) -> QTextCharFormat: ...
  6963. def contains(self, position: int) -> bool: ...
  6964. def length(self) -> int: ...
  6965. def position(self) -> int: ...
  6966. def __lt__(self, o: 'QTextFragment') -> bool: ...
  6967. def __ne__(self, other: object): ...
  6968. def __eq__(self, other: object): ...
  6969. def isValid(self) -> bool: ...
  6970. class QTextBlockUserData(PyQt6.sip.wrapper):
  6971. @typing.overload
  6972. def __init__(self) -> None: ...
  6973. @typing.overload
  6974. def __init__(self, a0: 'QTextBlockUserData') -> None: ...
  6975. class QTextOption(PyQt6.sip.simplewrapper):
  6976. class TabType(enum.Enum):
  6977. LeftTab = ... # type: QTextOption.TabType
  6978. RightTab = ... # type: QTextOption.TabType
  6979. CenterTab = ... # type: QTextOption.TabType
  6980. DelimiterTab = ... # type: QTextOption.TabType
  6981. class Flag(enum.Flag):
  6982. IncludeTrailingSpaces = ... # type: QTextOption.Flag
  6983. ShowTabsAndSpaces = ... # type: QTextOption.Flag
  6984. ShowLineAndParagraphSeparators = ... # type: QTextOption.Flag
  6985. AddSpaceForLineAndParagraphSeparators = ... # type: QTextOption.Flag
  6986. SuppressColors = ... # type: QTextOption.Flag
  6987. ShowDocumentTerminator = ... # type: QTextOption.Flag
  6988. ShowDefaultIgnorables = ... # type: QTextOption.Flag
  6989. DisableEmojiParsing = ... # type: QTextOption.Flag
  6990. class WrapMode(enum.Enum):
  6991. NoWrap = ... # type: QTextOption.WrapMode
  6992. WordWrap = ... # type: QTextOption.WrapMode
  6993. ManualWrap = ... # type: QTextOption.WrapMode
  6994. WrapAnywhere = ... # type: QTextOption.WrapMode
  6995. WrapAtWordBoundaryOrAnywhere = ... # type: QTextOption.WrapMode
  6996. class Tab(PyQt6.sip.simplewrapper):
  6997. delimiter = ... # type: str
  6998. position = ... # type: float
  6999. type = ... # type: 'QTextOption.TabType'
  7000. @typing.overload
  7001. def __init__(self) -> None: ...
  7002. @typing.overload
  7003. def __init__(self, pos: float, tabType: 'QTextOption.TabType', delim: str = ...) -> None: ...
  7004. @typing.overload
  7005. def __init__(self, a0: 'QTextOption.Tab') -> None: ...
  7006. def __ne__(self, other: object): ...
  7007. def __eq__(self, other: object): ...
  7008. @typing.overload
  7009. def __init__(self) -> None: ...
  7010. @typing.overload
  7011. def __init__(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
  7012. @typing.overload
  7013. def __init__(self, o: 'QTextOption') -> None: ...
  7014. def tabStopDistance(self) -> float: ...
  7015. def setTabStopDistance(self, tabStopDistance: float) -> None: ...
  7016. def tabs(self) -> list['QTextOption.Tab']: ...
  7017. def setTabs(self, tabStops: collections.abc.Iterable['QTextOption.Tab']) -> None: ...
  7018. def setFlags(self, flags: 'QTextOption.Flag') -> None: ...
  7019. def setAlignment(self, aalignment: QtCore.Qt.AlignmentFlag) -> None: ...
  7020. def useDesignMetrics(self) -> bool: ...
  7021. def setUseDesignMetrics(self, b: bool) -> None: ...
  7022. def tabArray(self) -> list[float]: ...
  7023. def setTabArray(self, tabStops: collections.abc.Iterable[float]) -> None: ...
  7024. def flags(self) -> 'QTextOption.Flag': ...
  7025. def wrapMode(self) -> 'QTextOption.WrapMode': ...
  7026. def setWrapMode(self, wrap: 'QTextOption.WrapMode') -> None: ...
  7027. def textDirection(self) -> QtCore.Qt.LayoutDirection: ...
  7028. def setTextDirection(self, aDirection: QtCore.Qt.LayoutDirection) -> None: ...
  7029. def alignment(self) -> QtCore.Qt.AlignmentFlag: ...
  7030. class QTextTableCell(PyQt6.sip.simplewrapper):
  7031. @typing.overload
  7032. def __init__(self) -> None: ...
  7033. @typing.overload
  7034. def __init__(self, o: 'QTextTableCell') -> None: ...
  7035. def __ne__(self, other: object): ...
  7036. def __eq__(self, other: object): ...
  7037. def tableCellFormatIndex(self) -> int: ...
  7038. def lastCursorPosition(self) -> QTextCursor: ...
  7039. def firstCursorPosition(self) -> QTextCursor: ...
  7040. def isValid(self) -> bool: ...
  7041. def columnSpan(self) -> int: ...
  7042. def rowSpan(self) -> int: ...
  7043. def column(self) -> int: ...
  7044. def row(self) -> int: ...
  7045. def setFormat(self, format: QTextCharFormat) -> None: ...
  7046. def format(self) -> QTextCharFormat: ...
  7047. class QTextTable(QTextFrame):
  7048. def __init__(self, doc: QTextDocument|None) -> None: ...
  7049. def appendColumns(self, count: int) -> None: ...
  7050. def appendRows(self, count: int) -> None: ...
  7051. def setFormat(self, aformat: QTextTableFormat) -> None: ...
  7052. def format(self) -> QTextTableFormat: ...
  7053. def rowEnd(self, c: QTextCursor) -> QTextCursor: ...
  7054. def rowStart(self, c: QTextCursor) -> QTextCursor: ...
  7055. @typing.overload
  7056. def cellAt(self, row: int, col: int) -> QTextTableCell: ...
  7057. @typing.overload
  7058. def cellAt(self, position: int) -> QTextTableCell: ...
  7059. @typing.overload
  7060. def cellAt(self, c: QTextCursor) -> QTextTableCell: ...
  7061. def columns(self) -> int: ...
  7062. def rows(self) -> int: ...
  7063. def splitCell(self, row: int, col: int, numRows: int, numCols: int) -> None: ...
  7064. @typing.overload
  7065. def mergeCells(self, row: int, col: int, numRows: int, numCols: int) -> None: ...
  7066. @typing.overload
  7067. def mergeCells(self, cursor: QTextCursor) -> None: ...
  7068. def removeColumns(self, pos: int, num: int) -> None: ...
  7069. def removeRows(self, pos: int, num: int) -> None: ...
  7070. def insertColumns(self, pos: int, num: int) -> None: ...
  7071. def insertRows(self, pos: int, num: int) -> None: ...
  7072. def resize(self, rows: int, cols: int) -> None: ...
  7073. class QTransform(PyQt6.sip.simplewrapper):
  7074. class TransformationType(enum.Enum):
  7075. TxNone = ... # type: QTransform.TransformationType
  7076. TxTranslate = ... # type: QTransform.TransformationType
  7077. TxScale = ... # type: QTransform.TransformationType
  7078. TxRotate = ... # type: QTransform.TransformationType
  7079. TxShear = ... # type: QTransform.TransformationType
  7080. TxProject = ... # type: QTransform.TransformationType
  7081. @typing.overload
  7082. def __init__(self) -> None: ...
  7083. @typing.overload
  7084. def __init__(self, h11: float, h12: float, h13: float, h21: float, h22: float, h23: float, h31: float, h32: float, h33: float) -> None: ...
  7085. @typing.overload
  7086. def __init__(self, h11: float, h12: float, h13: float, h21: float, h22: float, h23: float) -> None: ...
  7087. @typing.overload
  7088. def __init__(self, other: 'QTransform') -> None: ...
  7089. def __truediv__(self, n: float) -> 'QTransform': ...
  7090. def __add__(self, n: float) -> 'QTransform': ...
  7091. def __sub__(self, n: float) -> 'QTransform': ...
  7092. def __hash__(self) -> int: ...
  7093. def __isub__(self, num: float) -> 'QTransform': ...
  7094. def __iadd__(self, num: float) -> 'QTransform': ...
  7095. def __itruediv__(self, div: float) -> 'QTransform': ...
  7096. @staticmethod
  7097. def fromScale(dx: float, dy: float) -> 'QTransform': ...
  7098. @staticmethod
  7099. def fromTranslate(dx: float, dy: float) -> 'QTransform': ...
  7100. def dy(self) -> float: ...
  7101. def dx(self) -> float: ...
  7102. def m33(self) -> float: ...
  7103. def m32(self) -> float: ...
  7104. def m31(self) -> float: ...
  7105. def m23(self) -> float: ...
  7106. def m22(self) -> float: ...
  7107. def m21(self) -> float: ...
  7108. def m13(self) -> float: ...
  7109. def m12(self) -> float: ...
  7110. def m11(self) -> float: ...
  7111. def determinant(self) -> float: ...
  7112. def isTranslating(self) -> bool: ...
  7113. def isRotating(self) -> bool: ...
  7114. def isScaling(self) -> bool: ...
  7115. def isInvertible(self) -> bool: ...
  7116. def isIdentity(self) -> bool: ...
  7117. def isAffine(self) -> bool: ...
  7118. @typing.overload
  7119. def mapRect(self, a0: QtCore.QRect) -> QtCore.QRect: ...
  7120. @typing.overload
  7121. def mapRect(self, a0: QtCore.QRectF) -> QtCore.QRectF: ...
  7122. def mapToPolygon(self, r: QtCore.QRect) -> QPolygon: ...
  7123. @typing.overload
  7124. def map(self, x: int, y: int) -> typing.Tuple[int, int]: ...
  7125. @typing.overload
  7126. def map(self, x: float, y: float) -> typing.Tuple[float, float]: ...
  7127. @typing.overload
  7128. def map(self, p: QtCore.QPoint) -> QtCore.QPoint: ...
  7129. @typing.overload
  7130. def map(self, p: QtCore.QPointF) -> QtCore.QPointF: ...
  7131. @typing.overload
  7132. def map(self, l: QtCore.QLine) -> QtCore.QLine: ...
  7133. @typing.overload
  7134. def map(self, l: QtCore.QLineF) -> QtCore.QLineF: ...
  7135. @typing.overload
  7136. def map(self, a: QPolygonF) -> QPolygonF: ...
  7137. @typing.overload
  7138. def map(self, a: QPolygon) -> QPolygon: ...
  7139. @typing.overload
  7140. def map(self, r: QRegion) -> QRegion: ...
  7141. @typing.overload
  7142. def map(self, p: QPainterPath) -> QPainterPath: ...
  7143. def reset(self) -> None: ...
  7144. def __matmul__(self, o: 'QTransform') -> 'QTransform': ...
  7145. @typing.overload
  7146. def __mul__(self, o: 'QTransform') -> 'QTransform': ...
  7147. @typing.overload
  7148. def __mul__(self, n: float) -> 'QTransform': ...
  7149. def __imatmul__(self, a0: 'QTransform') -> 'QTransform': ...
  7150. @typing.overload
  7151. def __imul__(self, a0: 'QTransform') -> 'QTransform': ...
  7152. @typing.overload
  7153. def __imul__(self, num: float) -> 'QTransform': ...
  7154. def __ne__(self, other: object): ...
  7155. def __eq__(self, other: object): ...
  7156. @staticmethod
  7157. def quadToQuad(one: QPolygonF, two: QPolygonF, result: 'QTransform') -> bool: ...
  7158. @staticmethod
  7159. def quadToSquare(quad: QPolygonF, result: 'QTransform') -> bool: ...
  7160. @staticmethod
  7161. def squareToQuad(square: QPolygonF, result: 'QTransform') -> bool: ...
  7162. @typing.overload
  7163. def rotateRadians(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ...
  7164. @typing.overload
  7165. def rotateRadians(self, a: float, axis: QtCore.Qt.Axis, distanceToPlane: float) -> 'QTransform': ...
  7166. @typing.overload
  7167. def rotate(self, angle: float, axis: QtCore.Qt.Axis = ...) -> 'QTransform': ...
  7168. @typing.overload
  7169. def rotate(self, a: float, axis: QtCore.Qt.Axis, distanceToPlane: float) -> 'QTransform': ...
  7170. def shear(self, sh: float, sv: float) -> 'QTransform': ...
  7171. def scale(self, sx: float, sy: float) -> 'QTransform': ...
  7172. def translate(self, dx: float, dy: float) -> 'QTransform': ...
  7173. def transposed(self) -> 'QTransform': ...
  7174. def adjoint(self) -> 'QTransform': ...
  7175. def inverted(self) -> typing.Tuple['QTransform', bool]: ...
  7176. def setMatrix(self, m11: float, m12: float, m13: float, m21: float, m22: float, m23: float, m31: float, m32: float, m33: float) -> None: ...
  7177. def type(self) -> 'QTransform.TransformationType': ...
  7178. class QUndoGroup(QtCore.QObject):
  7179. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7180. undoTextChanged: typing.ClassVar[QtCore.pyqtSignal]
  7181. redoTextChanged: typing.ClassVar[QtCore.pyqtSignal]
  7182. indexChanged: typing.ClassVar[QtCore.pyqtSignal]
  7183. cleanChanged: typing.ClassVar[QtCore.pyqtSignal]
  7184. canUndoChanged: typing.ClassVar[QtCore.pyqtSignal]
  7185. canRedoChanged: typing.ClassVar[QtCore.pyqtSignal]
  7186. activeStackChanged: typing.ClassVar[QtCore.pyqtSignal]
  7187. def undo(self) -> None: ...
  7188. def setActiveStack(self, stack: 'QUndoStack|None') -> None: ...
  7189. def redo(self) -> None: ...
  7190. def isClean(self) -> bool: ...
  7191. def redoText(self) -> str: ...
  7192. def undoText(self) -> str: ...
  7193. def canRedo(self) -> bool: ...
  7194. def canUndo(self) -> bool: ...
  7195. def createUndoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ...
  7196. def createRedoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ...
  7197. def activeStack(self) -> 'QUndoStack|None': ...
  7198. def stacks(self) -> list['QUndoStack']: ...
  7199. def removeStack(self, stack: 'QUndoStack|None') -> None: ...
  7200. def addStack(self, stack: 'QUndoStack|None') -> None: ...
  7201. class QUndoCommand(PyQt6.sip.wrapper):
  7202. @typing.overload
  7203. def __init__(self, parent: 'QUndoCommand|None' = ...) -> None: ...
  7204. @typing.overload
  7205. def __init__(self, text: str|None, parent: 'QUndoCommand|None' = ...) -> None: ...
  7206. def setObsolete(self, obsolete: bool) -> None: ...
  7207. def isObsolete(self) -> bool: ...
  7208. def actionText(self) -> str: ...
  7209. def child(self, index: int) -> 'QUndoCommand|None': ...
  7210. def childCount(self) -> int: ...
  7211. def undo(self) -> None: ...
  7212. def text(self) -> str: ...
  7213. def setText(self, text: str|None) -> None: ...
  7214. def redo(self) -> None: ...
  7215. def mergeWith(self, other: 'QUndoCommand|None') -> bool: ...
  7216. def id(self) -> int: ...
  7217. class QUndoStack(QtCore.QObject):
  7218. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7219. def command(self, index: int) -> QUndoCommand|None: ...
  7220. def undoLimit(self) -> int: ...
  7221. def setUndoLimit(self, limit: int) -> None: ...
  7222. undoTextChanged: typing.ClassVar[QtCore.pyqtSignal]
  7223. redoTextChanged: typing.ClassVar[QtCore.pyqtSignal]
  7224. indexChanged: typing.ClassVar[QtCore.pyqtSignal]
  7225. cleanChanged: typing.ClassVar[QtCore.pyqtSignal]
  7226. canUndoChanged: typing.ClassVar[QtCore.pyqtSignal]
  7227. canRedoChanged: typing.ClassVar[QtCore.pyqtSignal]
  7228. def resetClean(self) -> None: ...
  7229. def undo(self) -> None: ...
  7230. def setIndex(self, idx: int) -> None: ...
  7231. def setClean(self) -> None: ...
  7232. def setActive(self, active: bool = ...) -> None: ...
  7233. def redo(self) -> None: ...
  7234. def endMacro(self) -> None: ...
  7235. def beginMacro(self, text: str|None) -> None: ...
  7236. def cleanIndex(self) -> int: ...
  7237. def isClean(self) -> bool: ...
  7238. def isActive(self) -> bool: ...
  7239. def createRedoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ...
  7240. def createUndoAction(self, parent: QtCore.QObject|None, prefix: str|None = ...) -> QAction|None: ...
  7241. def text(self, idx: int) -> str: ...
  7242. def index(self) -> int: ...
  7243. def __len__(self) -> int: ...
  7244. def count(self) -> int: ...
  7245. def redoText(self) -> str: ...
  7246. def undoText(self) -> str: ...
  7247. def canRedo(self) -> bool: ...
  7248. def canUndo(self) -> bool: ...
  7249. def push(self, cmd: QUndoCommand|None) -> None: ...
  7250. def clear(self) -> None: ...
  7251. class QValidator(QtCore.QObject):
  7252. class State(enum.Enum):
  7253. Invalid = ... # type: QValidator.State
  7254. Intermediate = ... # type: QValidator.State
  7255. Acceptable = ... # type: QValidator.State
  7256. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7257. changed: typing.ClassVar[QtCore.pyqtSignal]
  7258. def locale(self) -> QtCore.QLocale: ...
  7259. def setLocale(self, locale: QtCore.QLocale) -> None: ...
  7260. def fixup(self, a0: str|None) -> str: ...
  7261. def validate(self, a0: str|None, a1: int) -> typing.Tuple['QValidator.State', str, int]: ...
  7262. class QIntValidator(QValidator):
  7263. @typing.overload
  7264. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7265. @typing.overload
  7266. def __init__(self, bottom: int, top: int, parent: QtCore.QObject|None = ...) -> None: ...
  7267. def top(self) -> int: ...
  7268. def bottom(self) -> int: ...
  7269. def setRange(self, bottom: int, top: int) -> None: ...
  7270. def setTop(self, a0: int) -> None: ...
  7271. def setBottom(self, a0: int) -> None: ...
  7272. def fixup(self, input: str|None) -> str: ...
  7273. def validate(self, a0: str|None, a1: int) -> typing.Tuple[QValidator.State, str, int]: ...
  7274. class QDoubleValidator(QValidator):
  7275. class Notation(enum.Enum):
  7276. StandardNotation = ... # type: QDoubleValidator.Notation
  7277. ScientificNotation = ... # type: QDoubleValidator.Notation
  7278. @typing.overload
  7279. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7280. @typing.overload
  7281. def __init__(self, bottom: float, top: float, decimals: int, parent: QtCore.QObject|None = ...) -> None: ...
  7282. def fixup(self, input: str|None) -> None: ...
  7283. def notation(self) -> 'QDoubleValidator.Notation': ...
  7284. def setNotation(self, a0: 'QDoubleValidator.Notation') -> None: ...
  7285. def decimals(self) -> int: ...
  7286. def top(self) -> float: ...
  7287. def bottom(self) -> float: ...
  7288. def setDecimals(self, a0: int) -> None: ...
  7289. def setTop(self, a0: float) -> None: ...
  7290. def setBottom(self, a0: float) -> None: ...
  7291. def setRange(self, bottom: float, top: float, decimals: int = ...) -> None: ...
  7292. def validate(self, a0: str|None, a1: int) -> typing.Tuple[QValidator.State, str, int]: ...
  7293. class QRegularExpressionValidator(QValidator):
  7294. @typing.overload
  7295. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  7296. @typing.overload
  7297. def __init__(self, re: QtCore.QRegularExpression, parent: QtCore.QObject|None = ...) -> None: ...
  7298. def setRegularExpression(self, re: QtCore.QRegularExpression) -> None: ...
  7299. def regularExpression(self) -> QtCore.QRegularExpression: ...
  7300. def validate(self, input: str|None, pos: int) -> typing.Tuple[QValidator.State, str, int]: ...
  7301. class QVector2D(PyQt6.sip.simplewrapper):
  7302. @typing.overload
  7303. def __init__(self) -> None: ...
  7304. @typing.overload
  7305. def __init__(self, xpos: float, ypos: float) -> None: ...
  7306. @typing.overload
  7307. def __init__(self, point: QtCore.QPoint) -> None: ...
  7308. @typing.overload
  7309. def __init__(self, point: QtCore.QPointF) -> None: ...
  7310. @typing.overload
  7311. def __init__(self, vector: 'QVector3D') -> None: ...
  7312. @typing.overload
  7313. def __init__(self, vector: 'QVector4D') -> None: ...
  7314. @typing.overload
  7315. def __init__(self, a0: 'QVector2D') -> None: ...
  7316. def __ne__(self, other: object): ...
  7317. def __eq__(self, other: object): ...
  7318. @typing.overload
  7319. def __truediv__(self, divisor: 'QVector2D') -> 'QVector2D': ...
  7320. @typing.overload
  7321. def __truediv__(self, divisor: float) -> 'QVector2D': ...
  7322. def __add__(self, v2: 'QVector2D') -> 'QVector2D': ...
  7323. def __sub__(self, v2: 'QVector2D') -> 'QVector2D': ...
  7324. @typing.overload
  7325. def __mul__(self, v2: 'QVector2D') -> 'QVector2D': ...
  7326. @typing.overload
  7327. def __mul__(self, factor: float) -> 'QVector2D': ...
  7328. def __rmul__(self, factor: float) -> 'QVector2D': ...
  7329. def __neg__(self) -> 'QVector2D': ...
  7330. def toPointF(self) -> QtCore.QPointF: ...
  7331. def toPoint(self) -> QtCore.QPoint: ...
  7332. def toVector4D(self) -> 'QVector4D': ...
  7333. def toVector3D(self) -> 'QVector3D': ...
  7334. @staticmethod
  7335. def dotProduct(v1: 'QVector2D', v2: 'QVector2D') -> float: ...
  7336. @typing.overload
  7337. def __itruediv__(self, divisor: float) -> 'QVector2D': ...
  7338. @typing.overload
  7339. def __itruediv__(self, vector: 'QVector2D') -> 'QVector2D': ...
  7340. @typing.overload
  7341. def __imul__(self, factor: float) -> 'QVector2D': ...
  7342. @typing.overload
  7343. def __imul__(self, vector: 'QVector2D') -> 'QVector2D': ...
  7344. def __isub__(self, vector: 'QVector2D') -> 'QVector2D': ...
  7345. def __iadd__(self, vector: 'QVector2D') -> 'QVector2D': ...
  7346. def distanceToLine(self, point: 'QVector2D', direction: 'QVector2D') -> float: ...
  7347. def distanceToPoint(self, point: 'QVector2D') -> float: ...
  7348. def normalize(self) -> None: ...
  7349. def normalized(self) -> 'QVector2D': ...
  7350. def lengthSquared(self) -> float: ...
  7351. def length(self) -> float: ...
  7352. def __getitem__(self, i: int) -> float: ...
  7353. def setY(self, y: float) -> None: ...
  7354. def setX(self, x: float) -> None: ...
  7355. def y(self) -> float: ...
  7356. def x(self) -> float: ...
  7357. def isNull(self) -> bool: ...
  7358. def __repr__(self) -> str: ...
  7359. class QVector3D(PyQt6.sip.simplewrapper):
  7360. @typing.overload
  7361. def __init__(self) -> None: ...
  7362. @typing.overload
  7363. def __init__(self, xpos: float, ypos: float, zpos: float) -> None: ...
  7364. @typing.overload
  7365. def __init__(self, point: QtCore.QPoint) -> None: ...
  7366. @typing.overload
  7367. def __init__(self, point: QtCore.QPointF) -> None: ...
  7368. @typing.overload
  7369. def __init__(self, vector: QVector2D, zpos: float) -> None: ...
  7370. @typing.overload
  7371. def __init__(self, vector: QVector2D) -> None: ...
  7372. @typing.overload
  7373. def __init__(self, vector: 'QVector4D') -> None: ...
  7374. @typing.overload
  7375. def __init__(self, a0: 'QVector3D') -> None: ...
  7376. def __ne__(self, other: object): ...
  7377. def __eq__(self, other: object): ...
  7378. @typing.overload
  7379. def __truediv__(self, divisor: 'QVector3D') -> 'QVector3D': ...
  7380. @typing.overload
  7381. def __truediv__(self, divisor: float) -> 'QVector3D': ...
  7382. def __add__(self, v2: 'QVector3D') -> 'QVector3D': ...
  7383. def __sub__(self, v2: 'QVector3D') -> 'QVector3D': ...
  7384. @typing.overload
  7385. def __mul__(self, matrix: QMatrix4x4) -> 'QVector3D': ...
  7386. @typing.overload
  7387. def __mul__(self, v2: 'QVector3D') -> 'QVector3D': ...
  7388. @typing.overload
  7389. def __mul__(self, factor: float) -> 'QVector3D': ...
  7390. def __rmul__(self, factor: float) -> 'QVector3D': ...
  7391. def __neg__(self) -> 'QVector3D': ...
  7392. def toPointF(self) -> QtCore.QPointF: ...
  7393. def toPoint(self) -> QtCore.QPoint: ...
  7394. def toVector4D(self) -> 'QVector4D': ...
  7395. def toVector2D(self) -> QVector2D: ...
  7396. def distanceToLine(self, point: 'QVector3D', direction: 'QVector3D') -> float: ...
  7397. @typing.overload
  7398. def distanceToPlane(self, plane: 'QVector3D', normal: 'QVector3D') -> float: ...
  7399. @typing.overload
  7400. def distanceToPlane(self, plane1: 'QVector3D', plane2: 'QVector3D', plane3: 'QVector3D') -> float: ...
  7401. def distanceToPoint(self, point: 'QVector3D') -> float: ...
  7402. def unproject(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ...
  7403. def project(self, modelView: QMatrix4x4, projection: QMatrix4x4, viewport: QtCore.QRect) -> 'QVector3D': ...
  7404. @typing.overload
  7405. @staticmethod
  7406. def normal(v1: 'QVector3D', v2: 'QVector3D') -> 'QVector3D': ...
  7407. @typing.overload
  7408. @staticmethod
  7409. def normal(v1: 'QVector3D', v2: 'QVector3D', v3: 'QVector3D') -> 'QVector3D': ...
  7410. @staticmethod
  7411. def crossProduct(v1: 'QVector3D', v2: 'QVector3D') -> 'QVector3D': ...
  7412. @staticmethod
  7413. def dotProduct(v1: 'QVector3D', v2: 'QVector3D') -> float: ...
  7414. @typing.overload
  7415. def __itruediv__(self, divisor: float) -> 'QVector3D': ...
  7416. @typing.overload
  7417. def __itruediv__(self, vector: 'QVector3D') -> 'QVector3D': ...
  7418. @typing.overload
  7419. def __imul__(self, factor: float) -> 'QVector3D': ...
  7420. @typing.overload
  7421. def __imul__(self, vector: 'QVector3D') -> 'QVector3D': ...
  7422. def __isub__(self, vector: 'QVector3D') -> 'QVector3D': ...
  7423. def __iadd__(self, vector: 'QVector3D') -> 'QVector3D': ...
  7424. def normalize(self) -> None: ...
  7425. def normalized(self) -> 'QVector3D': ...
  7426. def lengthSquared(self) -> float: ...
  7427. def length(self) -> float: ...
  7428. def __getitem__(self, i: int) -> float: ...
  7429. def setZ(self, z: float) -> None: ...
  7430. def setY(self, y: float) -> None: ...
  7431. def setX(self, x: float) -> None: ...
  7432. def z(self) -> float: ...
  7433. def y(self) -> float: ...
  7434. def x(self) -> float: ...
  7435. def isNull(self) -> bool: ...
  7436. def __repr__(self) -> str: ...
  7437. class QVector4D(PyQt6.sip.simplewrapper):
  7438. @typing.overload
  7439. def __init__(self) -> None: ...
  7440. @typing.overload
  7441. def __init__(self, xpos: float, ypos: float, zpos: float, wpos: float) -> None: ...
  7442. @typing.overload
  7443. def __init__(self, point: QtCore.QPoint) -> None: ...
  7444. @typing.overload
  7445. def __init__(self, point: QtCore.QPointF) -> None: ...
  7446. @typing.overload
  7447. def __init__(self, vector: QVector2D) -> None: ...
  7448. @typing.overload
  7449. def __init__(self, vector: QVector2D, zpos: float, wpos: float) -> None: ...
  7450. @typing.overload
  7451. def __init__(self, vector: QVector3D) -> None: ...
  7452. @typing.overload
  7453. def __init__(self, vector: QVector3D, wpos: float) -> None: ...
  7454. @typing.overload
  7455. def __init__(self, a0: 'QVector4D') -> None: ...
  7456. def __ne__(self, other: object): ...
  7457. def __eq__(self, other: object): ...
  7458. @typing.overload
  7459. def __truediv__(self, divisor: 'QVector4D') -> 'QVector4D': ...
  7460. @typing.overload
  7461. def __truediv__(self, divisor: float) -> 'QVector4D': ...
  7462. def __add__(self, v2: 'QVector4D') -> 'QVector4D': ...
  7463. def __sub__(self, v2: 'QVector4D') -> 'QVector4D': ...
  7464. @typing.overload
  7465. def __mul__(self, matrix: QMatrix4x4) -> 'QVector4D': ...
  7466. @typing.overload
  7467. def __mul__(self, v2: 'QVector4D') -> 'QVector4D': ...
  7468. @typing.overload
  7469. def __mul__(self, factor: float) -> 'QVector4D': ...
  7470. def __rmul__(self, factor: float) -> 'QVector4D': ...
  7471. def __neg__(self) -> 'QVector4D': ...
  7472. def toPointF(self) -> QtCore.QPointF: ...
  7473. def toPoint(self) -> QtCore.QPoint: ...
  7474. def toVector3DAffine(self) -> QVector3D: ...
  7475. def toVector3D(self) -> QVector3D: ...
  7476. def toVector2DAffine(self) -> QVector2D: ...
  7477. def toVector2D(self) -> QVector2D: ...
  7478. @staticmethod
  7479. def dotProduct(v1: 'QVector4D', v2: 'QVector4D') -> float: ...
  7480. @typing.overload
  7481. def __itruediv__(self, divisor: float) -> 'QVector4D': ...
  7482. @typing.overload
  7483. def __itruediv__(self, vector: 'QVector4D') -> 'QVector4D': ...
  7484. @typing.overload
  7485. def __imul__(self, factor: float) -> 'QVector4D': ...
  7486. @typing.overload
  7487. def __imul__(self, vector: 'QVector4D') -> 'QVector4D': ...
  7488. def __isub__(self, vector: 'QVector4D') -> 'QVector4D': ...
  7489. def __iadd__(self, vector: 'QVector4D') -> 'QVector4D': ...
  7490. def normalize(self) -> None: ...
  7491. def normalized(self) -> 'QVector4D': ...
  7492. def lengthSquared(self) -> float: ...
  7493. def length(self) -> float: ...
  7494. def __getitem__(self, i: int) -> float: ...
  7495. def setW(self, w: float) -> None: ...
  7496. def setZ(self, z: float) -> None: ...
  7497. def setY(self, y: float) -> None: ...
  7498. def setX(self, x: float) -> None: ...
  7499. def w(self) -> float: ...
  7500. def z(self) -> float: ...
  7501. def y(self) -> float: ...
  7502. def x(self) -> float: ...
  7503. def isNull(self) -> bool: ...
  7504. def __repr__(self) -> str: ...
  7505. @typing.overload
  7506. def qGray(r: int, g: int, b: int) -> int: ...
  7507. @typing.overload
  7508. def qGray(rgb: int) -> int: ...
  7509. def qRgba(r: int, g: int, b: int, a: int) -> int: ...
  7510. def qRgb(r: int, g: int, b: int) -> int: ...
  7511. @typing.overload
  7512. def qAlpha(rgb: QRgba64) -> int: ...
  7513. @typing.overload
  7514. def qAlpha(rgb: int) -> int: ...
  7515. @typing.overload
  7516. def qBlue(rgb: QRgba64) -> int: ...
  7517. @typing.overload
  7518. def qBlue(rgb: int) -> int: ...
  7519. @typing.overload
  7520. def qGreen(rgb: QRgba64) -> int: ...
  7521. @typing.overload
  7522. def qGreen(rgb: int) -> int: ...
  7523. @typing.overload
  7524. def qRed(rgb: QRgba64) -> int: ...
  7525. @typing.overload
  7526. def qRed(rgb: int) -> int: ...
  7527. @typing.overload
  7528. def qUnpremultiply(c: QRgba64) -> QRgba64: ...
  7529. @typing.overload
  7530. def qUnpremultiply(p: int) -> int: ...
  7531. @typing.overload
  7532. def qPremultiply(c: QRgba64) -> QRgba64: ...
  7533. @typing.overload
  7534. def qPremultiply(x: int) -> int: ...
  7535. @typing.overload
  7536. def qRgba64(r: int, g: int, b: int, a: int) -> QRgba64: ...
  7537. @typing.overload
  7538. def qRgba64(c: int) -> QRgba64: ...
  7539. def qPixelFormatAlpha(channelSize: int, typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7540. def qPixelFormatYuv(layout: QPixelFormat.YUVLayout, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., premultiplied: QPixelFormat.AlphaPremultiplied = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ..., byteOrder: QPixelFormat.ByteOrder = ...) -> QPixelFormat: ...
  7541. def qPixelFormatHsv(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7542. def qPixelFormatHsl(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7543. def qPixelFormatCmyk(channelSize: int, alphaSize: int = ..., alphaUsage: QPixelFormat.AlphaUsage = ..., alphaPosition: QPixelFormat.AlphaPosition = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7544. def qPixelFormatGrayscale(channelSize: int, typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7545. def qPixelFormatRgba(red: int, green: int, blue: int, alfa: int, usage: QPixelFormat.AlphaUsage, position: QPixelFormat.AlphaPosition, premultiplied: QPixelFormat.AlphaPremultiplied = ..., typeInterpretation: QPixelFormat.TypeInterpretation = ...) -> QPixelFormat: ...
  7546. @typing.overload
  7547. def qFuzzyCompare(m1: QMatrix4x4, m2: QMatrix4x4) -> bool: ...
  7548. @typing.overload
  7549. def qFuzzyCompare(q1: QQuaternion, q2: QQuaternion) -> bool: ...
  7550. @typing.overload
  7551. def qFuzzyCompare(t1: QTransform, t2: QTransform) -> bool: ...
  7552. @typing.overload
  7553. def qFuzzyCompare(v1: QVector4D, v2: QVector4D) -> bool: ...
  7554. @typing.overload
  7555. def qFuzzyCompare(v1: QVector3D, v2: QVector3D) -> bool: ...
  7556. @typing.overload
  7557. def qFuzzyCompare(v1: QVector2D, v2: QVector2D) -> bool: ...
  7558. def qt_set_sequence_auto_mnemonic(b: bool) -> None: ...