Repository navigation
Expand file tree
/
Copy pathQtWidgets.pyi
More file actions
8021 lines (7830 loc) · 446 KB
/
Copy pathQtWidgets.pyi
File metadata and controls
8021 lines (7830 loc) · 446 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# The PEP 484 type hints stub file for the QtWidgets module.
#
# Generated by SIP 6.5.1
#
# Copyright (c) 2022 Riverbank Computing Limited <[email protected]>
#
# This file is part of PyQt6.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# Support for QDate, QDateTime and QTime.
import datetime
import enum
import typing
import PyQt6.sip
from PyQt6 import QtCore, QtGui
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
class QWidget(QtCore.QObject, QtGui.QPaintDevice):
class RenderFlag(enum.Flag):
DrawWindowBackground = ... # type: QWidget.RenderFlag
DrawChildren = ... # type: QWidget.RenderFlag
IgnoreMask = ... # type: QWidget.RenderFlag
def __init__(self, parent: typing.Optional["QWidget"] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
def setScreen(self, a0: QtGui.QScreen) -> None: ...
def screen(self) -> QtGui.QScreen: ...
def setWindowFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ...
def hasTabletTracking(self) -> bool: ...
def setTabletTracking(self, enable: bool) -> None: ...
windowIconTextChanged: typing.ClassVar[QtCore.pyqtSignal]
windowIconChanged: typing.ClassVar[QtCore.pyqtSignal]
windowTitleChanged: typing.ClassVar[QtCore.pyqtSignal]
def toolTipDuration(self) -> int: ...
def setToolTipDuration(self, msec: int) -> None: ...
def initPainter(self, painter: QtGui.QPainter) -> None: ...
def sharedPainter(self) -> QtGui.QPainter: ...
def nativeEvent(self, eventType: QtCore.QByteArray, message: PyQt6.sip.voidptr) -> typing.Tuple[bool, PyQt6.sip.voidptr]: ...
def windowHandle(self) -> QtGui.QWindow: ...
@staticmethod
def createWindowContainer(window: QtGui.QWindow, parent: typing.Optional["QWidget"] = ..., flags: QtCore.Qt.WindowType = ...) -> "QWidget": ...
def grab(self, rectangle: QtCore.QRect = ...) -> QtGui.QPixmap: ...
def hasHeightForWidth(self) -> bool: ...
def setInputMethodHints(self, hints: QtCore.Qt.InputMethodHint) -> None: ...
def inputMethodHints(self) -> QtCore.Qt.InputMethodHint: ...
def previousInFocusChain(self) -> "QWidget": ...
def contentsMargins(self) -> QtCore.QMargins: ...
def ungrabGesture(self, type: int) -> None: ...
def grabGesture(self, type: int, flags: QtCore.Qt.GestureFlag = ...) -> None: ...
def setGraphicsEffect(self, effect: "QGraphicsEffect") -> None: ...
def graphicsEffect(self) -> "QGraphicsEffect": ...
def graphicsProxyWidget(self) -> "QGraphicsProxyWidget": ...
def windowFilePath(self) -> str: ...
def setWindowFilePath(self, filePath: str) -> None: ...
def nativeParentWidget(self) -> "QWidget": ...
def effectiveWinId(self) -> PyQt6.sip.voidptr: ...
def unsetLocale(self) -> None: ...
def locale(self) -> QtCore.QLocale: ...
def setLocale(self, locale: QtCore.QLocale) -> None: ...
@typing.overload
def render(self, target: QtGui.QPaintDevice, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: "QWidget.RenderFlag" = ...) -> None: ...
@typing.overload
def render(self, painter: QtGui.QPainter, targetOffset: QtCore.QPoint = ..., sourceRegion: QtGui.QRegion = ..., flags: "QWidget.RenderFlag" = ...) -> None: ...
def restoreGeometry(self, geometry: QtCore.QByteArray) -> bool: ...
def saveGeometry(self) -> QtCore.QByteArray: ...
def setShortcutAutoRepeat(self, id: int, enabled: bool = ...) -> None: ...
def styleSheet(self) -> str: ...
def setStyleSheet(self, styleSheet: str) -> None: ...
def setAutoFillBackground(self, enabled: bool) -> None: ...
def autoFillBackground(self) -> bool: ...
def setWindowModality(self, windowModality: QtCore.Qt.WindowModality) -> None: ...
def windowModality(self) -> QtCore.Qt.WindowModality: ...
def testAttribute(self, attribute: QtCore.Qt.WidgetAttribute) -> bool: ...
def parentWidget(self) -> "QWidget": ...
def height(self) -> int: ...
def width(self) -> int: ...
def size(self) -> QtCore.QSize: ...
def geometry(self) -> QtCore.QRect: ...
def rect(self) -> QtCore.QRect: ...
def isHidden(self) -> bool: ...
def isVisible(self) -> bool: ...
def updatesEnabled(self) -> bool: ...
def underMouse(self) -> bool: ...
def hasMouseTracking(self) -> bool: ...
def setMouseTracking(self, enable: bool) -> None: ...
def fontInfo(self) -> QtGui.QFontInfo: ...
def fontMetrics(self) -> QtGui.QFontMetrics: ...
def font(self) -> QtGui.QFont: ...
def maximumHeight(self) -> int: ...
def maximumWidth(self) -> int: ...
def minimumHeight(self) -> int: ...
def minimumWidth(self) -> int: ...
def isModal(self) -> bool: ...
def isEnabled(self) -> bool: ...
def isWindow(self) -> bool: ...
def winId(self) -> PyQt6.sip.voidptr: ...
def windowFlags(self) -> QtCore.Qt.WindowType: ...
def windowType(self) -> QtCore.Qt.WindowType: ...
def focusPreviousChild(self) -> bool: ...
def focusNextChild(self) -> bool: ...
def focusNextPrevChild(self, next: bool) -> bool: ...
def destroy(self, destroyWindow: bool = ..., destroySubWindows: bool = ...) -> None: ...
def create(self, window: PyQt6.sip.voidptr = ..., initializeWindow: bool = ..., destroyOldWindow: bool = ...) -> None: ...
def updateMicroFocus(self, query: QtCore.Qt.InputMethodQuery = ...) -> None: ...
def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
def inputMethodEvent(self, a0: QtGui.QInputMethodEvent) -> None: ...
def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ...
def changeEvent(self, a0: QtCore.QEvent) -> None: ...
def hideEvent(self, a0: QtGui.QHideEvent) -> None: ...
def showEvent(self, a0: QtGui.QShowEvent) -> None: ...
def dropEvent(self, a0: QtGui.QDropEvent) -> None: ...
def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ...
def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ...
def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ...
def actionEvent(self, a0: QtGui.QActionEvent) -> None: ...
def tabletEvent(self, a0: QtGui.QTabletEvent) -> None: ...
def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ...
def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def moveEvent(self, a0: QtGui.QMoveEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def leaveEvent(self, a0: QtCore.QEvent) -> None: ...
def enterEvent(self, event: QtGui.QEnterEvent) -> None: ...
def focusOutEvent(self, a0: QtGui.QFocusEvent) -> None: ...
def focusInEvent(self, a0: QtGui.QFocusEvent) -> None: ...
def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ...
def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ...
def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ...
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
customContextMenuRequested: typing.ClassVar[QtCore.pyqtSignal]
def isAncestorOf(self, child: "QWidget") -> bool: ...
def ensurePolished(self) -> None: ...
def paintEngine(self) -> QtGui.QPaintEngine: ...
def setAttribute(self, attribute: QtCore.Qt.WidgetAttribute, on: bool = ...) -> None: ...
@typing.overload
def childAt(self, p: QtCore.QPoint) -> "QWidget": ...
@typing.overload
def childAt(self, ax: int, ay: int) -> "QWidget": ...
@staticmethod
def find(a0: PyQt6.sip.voidptr) -> "QWidget": ...
def overrideWindowFlags(self, type: QtCore.Qt.WindowType) -> None: ...
def setWindowFlags(self, type: QtCore.Qt.WindowType) -> None: ...
def actions(self) -> typing.List[QtGui.QAction]: ...
def removeAction(self, action: QtGui.QAction) -> None: ...
def insertActions(self, before: QtGui.QAction, actions: typing.Iterable[QtGui.QAction]) -> None: ...
def insertAction(self, before: QtGui.QAction, action: QtGui.QAction) -> None: ...
def addActions(self, actions: typing.Iterable[QtGui.QAction]) -> None: ...
def addAction(self, action: QtGui.QAction) -> None: ...
def setAcceptDrops(self, on: bool) -> None: ...
def acceptDrops(self) -> bool: ...
def nextInFocusChain(self) -> "QWidget": ...
def focusWidget(self) -> "QWidget": ...
@typing.overload
def scroll(self, dx: int, dy: int) -> None: ...
@typing.overload
def scroll(self, dx: int, dy: int, a2: QtCore.QRect) -> None: ...
@typing.overload # type: ignore[override]
def setParent(self, parent: "QWidget") -> None: ...
@typing.overload
def setParent(self, parent: "QWidget", f: QtCore.Qt.WindowType) -> None: ...
def updateGeometry(self) -> None: ...
def setLayout(self, a0: "QLayout") -> None: ...
def layout(self) -> "QLayout": ...
def contentsRect(self) -> QtCore.QRect: ...
@typing.overload
def setContentsMargins(self, left: int, top: int, right: int, bottom: int) -> None: ...
@typing.overload
def setContentsMargins(self, margins: QtCore.QMargins) -> None: ...
def visibleRegion(self) -> QtGui.QRegion: ...
def heightForWidth(self, a0: int) -> int: ...
@typing.overload
def setSizePolicy(self, a0: "QSizePolicy") -> None: ...
@typing.overload
def setSizePolicy(self, hor: "QSizePolicy.Policy", ver: "QSizePolicy.Policy") -> None: ...
def sizePolicy(self) -> "QSizePolicy": ...
def minimumSizeHint(self) -> QtCore.QSize: ...
def sizeHint(self) -> QtCore.QSize: ...
def overrideWindowState(self, state: QtCore.Qt.WindowState) -> None: ...
def setWindowState(self, state: QtCore.Qt.WindowState) -> None: ...
def windowState(self) -> QtCore.Qt.WindowState: ...
def isFullScreen(self) -> bool: ...
def isMaximized(self) -> bool: ...
def isMinimized(self) -> bool: ...
def isVisibleTo(self, a0: "QWidget") -> bool: ...
def adjustSize(self) -> None: ...
@typing.overload
def setGeometry(self, a0: QtCore.QRect) -> None: ...
@typing.overload
def setGeometry(self, ax: int, ay: int, aw: int, ah: int) -> None: ...
@typing.overload
def resize(self, a0: QtCore.QSize) -> None: ...
@typing.overload
def resize(self, w: int, h: int) -> None: ...
@typing.overload
def move(self, a0: QtCore.QPoint) -> None: ...
@typing.overload
def move(self, ax: int, ay: int) -> None: ...
def stackUnder(self, a0: "QWidget") -> None: ...
def lower(self) -> None: ...
def raise_(self) -> None: ...
def close(self) -> bool: ...
def showNormal(self) -> None: ...
def showFullScreen(self) -> None: ...
def showMaximized(self) -> None: ...
def showMinimized(self) -> None: ...
def hide(self) -> None: ...
def show(self) -> None: ...
def setHidden(self, hidden: bool) -> None: ...
def setVisible(self, visible: bool) -> None: ...
@typing.overload
def repaint(self) -> None: ...
@typing.overload
def repaint(self, x: int, y: int, w: int, h: int) -> None: ...
@typing.overload
def repaint(self, a0: QtCore.QRect) -> None: ...
@typing.overload
def repaint(self, a0: QtGui.QRegion) -> None: ...
@typing.overload
def update(self) -> None: ...
@typing.overload
def update(self, a0: QtCore.QRect) -> None: ...
@typing.overload
def update(self, a0: QtGui.QRegion) -> None: ...
@typing.overload
def update(self, ax: int, ay: int, aw: int, ah: int) -> None: ...
def setUpdatesEnabled(self, enable: bool) -> None: ...
@staticmethod
def keyboardGrabber() -> "QWidget": ...
@staticmethod
def mouseGrabber() -> "QWidget": ...
def setShortcutEnabled(self, id: int, enabled: bool = ...) -> None: ...
def releaseShortcut(self, id: int) -> None: ...
def grabShortcut(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], context: QtCore.Qt.ShortcutContext = ...) -> int: ...
def releaseKeyboard(self) -> None: ...
def grabKeyboard(self) -> None: ...
def releaseMouse(self) -> None: ...
@typing.overload
def grabMouse(self) -> None: ...
@typing.overload
def grabMouse(self, a0: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ...
def setContextMenuPolicy(self, policy: QtCore.Qt.ContextMenuPolicy) -> None: ...
def contextMenuPolicy(self) -> QtCore.Qt.ContextMenuPolicy: ...
def focusProxy(self) -> "QWidget": ...
def setFocusProxy(self, a0: "QWidget") -> None: ...
@staticmethod
def setTabOrder(a0: "QWidget", a1: "QWidget") -> None: ...
def hasFocus(self) -> bool: ...
def setFocusPolicy(self, policy: QtCore.Qt.FocusPolicy) -> None: ...
def focusPolicy(self) -> QtCore.Qt.FocusPolicy: ...
def clearFocus(self) -> None: ...
def activateWindow(self) -> None: ...
def isActiveWindow(self) -> bool: ...
@typing.overload
def setFocus(self) -> None: ...
@typing.overload
def setFocus(self, reason: QtCore.Qt.FocusReason) -> None: ...
def isLeftToRight(self) -> bool: ...
def isRightToLeft(self) -> bool: ...
def unsetLayoutDirection(self) -> None: ...
def layoutDirection(self) -> QtCore.Qt.LayoutDirection: ...
def setLayoutDirection(self, direction: QtCore.Qt.LayoutDirection) -> None: ...
def setAccessibleDescription(self, description: str) -> None: ...
def accessibleDescription(self) -> str: ...
def setAccessibleName(self, name: str) -> None: ...
def accessibleName(self) -> str: ...
def whatsThis(self) -> str: ...
def setWhatsThis(self, a0: str) -> None: ...
def statusTip(self) -> str: ...
def setStatusTip(self, a0: str) -> None: ...
def toolTip(self) -> str: ...
def setToolTip(self, a0: str) -> None: ...
def isWindowModified(self) -> bool: ...
def windowOpacity(self) -> float: ...
def setWindowOpacity(self, level: float) -> None: ...
def windowRole(self) -> str: ...
def setWindowRole(self, a0: str) -> None: ...
def windowIconText(self) -> str: ...
def setWindowIconText(self, a0: str) -> None: ...
def windowIcon(self) -> QtGui.QIcon: ...
def setWindowIcon(self, icon: QtGui.QIcon) -> None: ...
def windowTitle(self) -> str: ...
def setWindowTitle(self, a0: str) -> None: ...
def clearMask(self) -> None: ...
def mask(self) -> QtGui.QRegion: ...
@typing.overload
def setMask(self, a0: QtGui.QBitmap) -> None: ...
@typing.overload
def setMask(self, a0: QtGui.QRegion) -> None: ...
def unsetCursor(self) -> None: ...
def setCursor(self, a0: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ...
def cursor(self) -> QtGui.QCursor: ...
def setFont(self, a0: QtGui.QFont) -> None: ...
def foregroundRole(self) -> QtGui.QPalette.ColorRole: ...
def setForegroundRole(self, a0: QtGui.QPalette.ColorRole) -> None: ...
def backgroundRole(self) -> QtGui.QPalette.ColorRole: ...
def setBackgroundRole(self, a0: QtGui.QPalette.ColorRole) -> None: ...
def setPalette(self, a0: QtGui.QPalette) -> None: ...
def palette(self) -> QtGui.QPalette: ...
def window(self) -> "QWidget": ...
@typing.overload
def mapFrom(self, a0: "QWidget", a1: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapFrom(self, a0: "QWidget", a1: QtCore.QPointF) -> QtCore.QPointF: ...
@typing.overload
def mapTo(self, a0: "QWidget", a1: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapTo(self, a0: "QWidget", a1: QtCore.QPointF) -> QtCore.QPointF: ...
@typing.overload
def mapFromParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapFromParent(self, a0: QtCore.QPointF) -> QtCore.QPointF: ...
@typing.overload
def mapToParent(self, a0: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapToParent(self, a0: QtCore.QPointF) -> QtCore.QPointF: ...
@typing.overload
def mapFromGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapFromGlobal(self, a0: QtCore.QPointF) -> QtCore.QPointF: ...
@typing.overload
def mapToGlobal(self, a0: QtCore.QPoint) -> QtCore.QPoint: ...
@typing.overload
def mapToGlobal(self, a0: QtCore.QPointF) -> QtCore.QPointF: ...
def setFixedHeight(self, h: int) -> None: ...
def setFixedWidth(self, w: int) -> None: ...
@typing.overload
def setFixedSize(self, a0: QtCore.QSize) -> None: ...
@typing.overload
def setFixedSize(self, w: int, h: int) -> None: ...
@typing.overload
def setBaseSize(self, basew: int, baseh: int) -> None: ...
@typing.overload
def setBaseSize(self, s: QtCore.QSize) -> None: ...
def baseSize(self) -> QtCore.QSize: ...
@typing.overload
def setSizeIncrement(self, w: int, h: int) -> None: ...
@typing.overload
def setSizeIncrement(self, s: QtCore.QSize) -> None: ...
def sizeIncrement(self) -> QtCore.QSize: ...
def setMaximumHeight(self, maxh: int) -> None: ...
def setMaximumWidth(self, maxw: int) -> None: ...
def setMinimumHeight(self, minh: int) -> None: ...
def setMinimumWidth(self, minw: int) -> None: ...
@typing.overload
def setMaximumSize(self, maxw: int, maxh: int) -> None: ...
@typing.overload
def setMaximumSize(self, s: QtCore.QSize) -> None: ...
@typing.overload
def setMinimumSize(self, minw: int, minh: int) -> None: ...
@typing.overload
def setMinimumSize(self, s: QtCore.QSize) -> None: ...
def maximumSize(self) -> QtCore.QSize: ...
def minimumSize(self) -> QtCore.QSize: ...
def childrenRegion(self) -> QtGui.QRegion: ...
def childrenRect(self) -> QtCore.QRect: ...
def frameSize(self) -> QtCore.QSize: ...
def pos(self) -> QtCore.QPoint: ...
def y(self) -> int: ...
def x(self) -> int: ...
def normalGeometry(self) -> QtCore.QRect: ...
def frameGeometry(self) -> QtCore.QRect: ...
def setWindowModified(self, a0: bool) -> None: ...
def setDisabled(self, a0: bool) -> None: ...
def setEnabled(self, a0: bool) -> None: ...
def isEnabledTo(self, a0: "QWidget") -> bool: ...
def setStyle(self, a0: "QStyle") -> None: ...
def style(self) -> "QStyle": ...
def devType(self) -> int: ...
class QAbstractButton(QWidget):
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def timerEvent(self, e: QtCore.QTimerEvent) -> None: ...
def changeEvent(self, e: QtCore.QEvent) -> None: ...
def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ...
def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ...
def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ...
def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ...
def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ...
def event(self, e: QtCore.QEvent) -> bool: ...
def nextCheckState(self) -> None: ...
def checkStateSet(self) -> None: ...
def hitButton(self, pos: QtCore.QPoint) -> bool: ...
def paintEvent(self, e: QtGui.QPaintEvent) -> None: ...
toggled: typing.ClassVar[QtCore.pyqtSignal]
clicked: typing.ClassVar[QtCore.pyqtSignal]
released: typing.ClassVar[QtCore.pyqtSignal]
pressed: typing.ClassVar[QtCore.pyqtSignal]
def setChecked(self, a0: bool) -> None: ...
def toggle(self) -> None: ...
def click(self) -> None: ...
def animateClick(self) -> None: ...
def setIconSize(self, size: QtCore.QSize) -> None: ...
def group(self) -> "QButtonGroup": ...
def autoExclusive(self) -> bool: ...
def setAutoExclusive(self, a0: bool) -> None: ...
def autoRepeat(self) -> bool: ...
def setAutoRepeat(self, a0: bool) -> None: ...
def isDown(self) -> bool: ...
def setDown(self, a0: bool) -> None: ...
def isChecked(self) -> bool: ...
def isCheckable(self) -> bool: ...
def setCheckable(self, a0: bool) -> None: ...
def shortcut(self) -> QtGui.QKeySequence: ...
def setShortcut(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ...
def iconSize(self) -> QtCore.QSize: ...
def icon(self) -> QtGui.QIcon: ...
def setIcon(self, icon: QtGui.QIcon) -> None: ...
def text(self) -> str: ...
def setText(self, text: str) -> None: ...
def autoRepeatInterval(self) -> int: ...
def setAutoRepeatInterval(self, a0: int) -> None: ...
def autoRepeatDelay(self) -> int: ...
def setAutoRepeatDelay(self, a0: int) -> None: ...
class QAbstractItemDelegate(QtCore.QObject):
class EndEditHint(enum.Enum):
NoHint = ... # type: QAbstractItemDelegate.EndEditHint
EditNextItem = ... # type: QAbstractItemDelegate.EndEditHint
EditPreviousItem = ... # type: QAbstractItemDelegate.EndEditHint
SubmitModelCache = ... # type: QAbstractItemDelegate.EndEditHint
RevertModelCache = ... # type: QAbstractItemDelegate.EndEditHint
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
sizeHintChanged: typing.ClassVar[QtCore.pyqtSignal]
closeEditor: typing.ClassVar[QtCore.pyqtSignal]
commitData: typing.ClassVar[QtCore.pyqtSignal]
def helpEvent(self, event: QtGui.QHelpEvent, view: "QAbstractItemView", option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> bool: ...
def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> bool: ...
def destroyEditor(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ...
def updateEditorGeometry(self, editor: QWidget, option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> None: ...
def setModelData(self, editor: QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ...
def setEditorData(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ...
def createEditor(self, parent: QWidget, option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> QWidget: ...
def sizeHint(self, option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> QtCore.QSize: ...
def paint(self, painter: QtGui.QPainter, option: "QStyleOptionViewItem", index: QtCore.QModelIndex) -> None: ...
class QFrame(QWidget):
class StyleMask(enum.Enum):
Shadow_Mask = ... # type: QFrame.StyleMask
Shape_Mask = ... # type: QFrame.StyleMask
class Shape(enum.IntEnum):
NoFrame = ... # type: QFrame.Shape
Box = ... # type: QFrame.Shape
Panel = ... # type: QFrame.Shape
WinPanel = ... # type: QFrame.Shape
HLine = ... # type: QFrame.Shape
VLine = ... # type: QFrame.Shape
StyledPanel = ... # type: QFrame.Shape
class Shadow(enum.IntEnum):
Plain = ... # type: QFrame.Shadow
Raised = ... # type: QFrame.Shadow
Sunken = ... # type: QFrame.Shadow
def __init__(self, parent: typing.Optional[QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
def initStyleOption(self, option: "QStyleOptionFrame") -> None: ...
def drawFrame(self, a0: QtGui.QPainter) -> None: ...
def changeEvent(self, a0: QtCore.QEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def event(self, e: QtCore.QEvent) -> bool: ...
def setFrameRect(self, a0: QtCore.QRect) -> None: ...
def frameRect(self) -> QtCore.QRect: ...
def setMidLineWidth(self, a0: int) -> None: ...
def midLineWidth(self) -> int: ...
def setLineWidth(self, a0: int) -> None: ...
def lineWidth(self) -> int: ...
def setFrameShadow(self, a0: "QFrame.Shadow") -> None: ...
def frameShadow(self) -> "QFrame.Shadow": ...
def setFrameShape(self, a0: "QFrame.Shape") -> None: ...
def frameShape(self) -> "QFrame.Shape": ...
def sizeHint(self) -> QtCore.QSize: ...
def frameWidth(self) -> int: ...
def setFrameStyle(self, a0: int) -> None: ...
def frameStyle(self) -> int: ...
class QAbstractScrollArea(QFrame):
class SizeAdjustPolicy(enum.Enum):
AdjustIgnored = ... # type: QAbstractScrollArea.SizeAdjustPolicy
AdjustToContentsOnFirstShow = ... # type: QAbstractScrollArea.SizeAdjustPolicy
AdjustToContents = ... # type: QAbstractScrollArea.SizeAdjustPolicy
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def setSizeAdjustPolicy(self, policy: "QAbstractScrollArea.SizeAdjustPolicy") -> None: ...
def sizeAdjustPolicy(self) -> "QAbstractScrollArea.SizeAdjustPolicy": ...
def setupViewport(self, viewport: QWidget) -> None: ...
def setViewport(self, widget: QWidget) -> None: ...
def scrollBarWidgets(self, alignment: QtCore.Qt.AlignmentFlag) -> typing.List[QWidget]: ...
def addScrollBarWidget(self, widget: QWidget, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
def setCornerWidget(self, widget: QWidget) -> None: ...
def cornerWidget(self) -> QWidget: ...
def setHorizontalScrollBar(self, scrollbar: "QScrollBar") -> None: ...
def setVerticalScrollBar(self, scrollbar: "QScrollBar") -> None: ...
def scrollContentsBy(self, dx: int, dy: int) -> None: ...
def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ...
def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ...
def dropEvent(self, a0: QtGui.QDropEvent) -> None: ...
def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent) -> None: ...
def dragMoveEvent(self, a0: QtGui.QDragMoveEvent) -> None: ...
def dragEnterEvent(self, a0: QtGui.QDragEnterEvent) -> None: ...
def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ...
def wheelEvent(self, a0: QtGui.QWheelEvent) -> None: ...
def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ...
def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ...
def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ...
def viewportEvent(self, a0: QtCore.QEvent) -> bool: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def viewportSizeHint(self) -> QtCore.QSize: ...
def viewportMargins(self) -> QtCore.QMargins: ...
@typing.overload
def setViewportMargins(self, left: int, top: int, right: int, bottom: int) -> None: ...
@typing.overload
def setViewportMargins(self, margins: QtCore.QMargins) -> None: ...
def sizeHint(self) -> QtCore.QSize: ...
def minimumSizeHint(self) -> QtCore.QSize: ...
def maximumViewportSize(self) -> QtCore.QSize: ...
def viewport(self) -> QWidget: ...
def horizontalScrollBar(self) -> "QScrollBar": ...
def setHorizontalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ...
def horizontalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ...
def verticalScrollBar(self) -> "QScrollBar": ...
def setVerticalScrollBarPolicy(self, a0: QtCore.Qt.ScrollBarPolicy) -> None: ...
def verticalScrollBarPolicy(self) -> QtCore.Qt.ScrollBarPolicy: ...
class QAbstractItemView(QAbstractScrollArea):
class DropIndicatorPosition(enum.Enum):
OnItem = ... # type: QAbstractItemView.DropIndicatorPosition
AboveItem = ... # type: QAbstractItemView.DropIndicatorPosition
BelowItem = ... # type: QAbstractItemView.DropIndicatorPosition
OnViewport = ... # type: QAbstractItemView.DropIndicatorPosition
class State(enum.Enum):
NoState = ... # type: QAbstractItemView.State
DraggingState = ... # type: QAbstractItemView.State
DragSelectingState = ... # type: QAbstractItemView.State
EditingState = ... # type: QAbstractItemView.State
ExpandingState = ... # type: QAbstractItemView.State
CollapsingState = ... # type: QAbstractItemView.State
AnimatingState = ... # type: QAbstractItemView.State
class CursorAction(enum.Enum):
MoveUp = ... # type: QAbstractItemView.CursorAction
MoveDown = ... # type: QAbstractItemView.CursorAction
MoveLeft = ... # type: QAbstractItemView.CursorAction
MoveRight = ... # type: QAbstractItemView.CursorAction
MoveHome = ... # type: QAbstractItemView.CursorAction
MoveEnd = ... # type: QAbstractItemView.CursorAction
MovePageUp = ... # type: QAbstractItemView.CursorAction
MovePageDown = ... # type: QAbstractItemView.CursorAction
MoveNext = ... # type: QAbstractItemView.CursorAction
MovePrevious = ... # type: QAbstractItemView.CursorAction
class SelectionMode(enum.Enum):
NoSelection = ... # type: QAbstractItemView.SelectionMode
SingleSelection = ... # type: QAbstractItemView.SelectionMode
MultiSelection = ... # type: QAbstractItemView.SelectionMode
ExtendedSelection = ... # type: QAbstractItemView.SelectionMode
ContiguousSelection = ... # type: QAbstractItemView.SelectionMode
class SelectionBehavior(enum.Enum):
SelectItems = ... # type: QAbstractItemView.SelectionBehavior
SelectRows = ... # type: QAbstractItemView.SelectionBehavior
SelectColumns = ... # type: QAbstractItemView.SelectionBehavior
class ScrollMode(enum.Enum):
ScrollPerItem = ... # type: QAbstractItemView.ScrollMode
ScrollPerPixel = ... # type: QAbstractItemView.ScrollMode
class ScrollHint(enum.Enum):
EnsureVisible = ... # type: QAbstractItemView.ScrollHint
PositionAtTop = ... # type: QAbstractItemView.ScrollHint
PositionAtBottom = ... # type: QAbstractItemView.ScrollHint
PositionAtCenter = ... # type: QAbstractItemView.ScrollHint
class EditTrigger(enum.Flag):
NoEditTriggers = ... # type: QAbstractItemView.EditTrigger
CurrentChanged = ... # type: QAbstractItemView.EditTrigger
DoubleClicked = ... # type: QAbstractItemView.EditTrigger
SelectedClicked = ... # type: QAbstractItemView.EditTrigger
EditKeyPressed = ... # type: QAbstractItemView.EditTrigger
AnyKeyPressed = ... # type: QAbstractItemView.EditTrigger
AllEditTriggers = ... # type: QAbstractItemView.EditTrigger
class DragDropMode(enum.Enum):
NoDragDrop = ... # type: QAbstractItemView.DragDropMode
DragOnly = ... # type: QAbstractItemView.DragDropMode
DropOnly = ... # type: QAbstractItemView.DragDropMode
DragDrop = ... # type: QAbstractItemView.DragDropMode
InternalMove = ... # type: QAbstractItemView.DragDropMode
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def initViewItemOption(self, option: "QStyleOptionViewItem") -> None: ...
def isPersistentEditorOpen(self, index: QtCore.QModelIndex) -> bool: ...
def resetHorizontalScrollMode(self) -> None: ...
def resetVerticalScrollMode(self) -> None: ...
def defaultDropAction(self) -> QtCore.Qt.DropAction: ...
def setDefaultDropAction(self, dropAction: QtCore.Qt.DropAction) -> None: ...
def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ...
def viewportSizeHint(self) -> QtCore.QSize: ...
def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ...
def focusNextPrevChild(self, next: bool) -> bool: ...
def autoScrollMargin(self) -> int: ...
def setAutoScrollMargin(self, margin: int) -> None: ...
def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
def itemDelegateForIndex(self, index: QtCore.QModelIndex) -> QAbstractItemDelegate: ...
def itemDelegateForColumn(self, column: int) -> QAbstractItemDelegate: ...
def setItemDelegateForColumn(self, column: int, delegate: QAbstractItemDelegate) -> None: ...
def itemDelegateForRow(self, row: int) -> QAbstractItemDelegate: ...
def setItemDelegateForRow(self, row: int, delegate: QAbstractItemDelegate) -> None: ...
def dragDropMode(self) -> "QAbstractItemView.DragDropMode": ...
def setDragDropMode(self, behavior: "QAbstractItemView.DragDropMode") -> None: ...
def dragDropOverwriteMode(self) -> bool: ...
def setDragDropOverwriteMode(self, overwrite: bool) -> None: ...
def horizontalScrollMode(self) -> "QAbstractItemView.ScrollMode": ...
def setHorizontalScrollMode(self, mode: "QAbstractItemView.ScrollMode") -> None: ...
def verticalScrollMode(self) -> "QAbstractItemView.ScrollMode": ...
def setVerticalScrollMode(self, mode: "QAbstractItemView.ScrollMode") -> None: ...
def dropIndicatorPosition(self) -> "QAbstractItemView.DropIndicatorPosition": ...
def timerEvent(self, e: QtCore.QTimerEvent) -> None: ...
def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ...
def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ...
def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ...
def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ...
def dropEvent(self, e: QtGui.QDropEvent) -> None: ...
def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ...
def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ...
def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ...
def mouseDoubleClickEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ...
def viewportEvent(self, e: QtCore.QEvent) -> bool: ...
def event(self, event: QtCore.QEvent) -> bool: ...
def dirtyRegionOffset(self) -> QtCore.QPoint: ...
def setDirtyRegion(self, region: QtGui.QRegion) -> None: ...
def scrollDirtyRegion(self, dx: int, dy: int) -> None: ...
def executeDelayedItemsLayout(self) -> None: ...
def scheduleDelayedItemsLayout(self) -> None: ...
def setState(self, state: "QAbstractItemView.State") -> None: ...
def state(self) -> "QAbstractItemView.State": ...
def startDrag(self, supportedActions: QtCore.Qt.DropAction) -> None: ...
def selectionCommand(self, index: QtCore.QModelIndex, event: typing.Optional[QtCore.QEvent] = ...) -> QtCore.QItemSelectionModel.SelectionFlag: ...
def selectedIndexes(self) -> typing.List[QtCore.QModelIndex]: ...
def visualRegionForSelection(self, selection: QtCore.QItemSelection) -> QtGui.QRegion: ...
def setSelection(self, rect: QtCore.QRect, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ...
def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ...
def verticalOffset(self) -> int: ...
def horizontalOffset(self) -> int: ...
def moveCursor(self, cursorAction: "QAbstractItemView.CursorAction", modifiers: QtCore.Qt.KeyboardModifier) -> QtCore.QModelIndex: ...
iconSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
viewportEntered: typing.ClassVar[QtCore.pyqtSignal]
entered: typing.ClassVar[QtCore.pyqtSignal]
activated: typing.ClassVar[QtCore.pyqtSignal]
doubleClicked: typing.ClassVar[QtCore.pyqtSignal]
clicked: typing.ClassVar[QtCore.pyqtSignal]
pressed: typing.ClassVar[QtCore.pyqtSignal]
def editorDestroyed(self, editor: QtCore.QObject) -> None: ...
def commitData(self, editor: QWidget) -> None: ...
def closeEditor(self, editor: QWidget, hint: QAbstractItemDelegate.EndEditHint) -> None: ...
def horizontalScrollbarValueChanged(self, value: int) -> None: ...
def verticalScrollbarValueChanged(self, value: int) -> None: ...
def horizontalScrollbarAction(self, action: int) -> None: ...
def verticalScrollbarAction(self, action: int) -> None: ...
def updateGeometries(self) -> None: ...
def updateEditorGeometries(self) -> None: ...
def updateEditorData(self) -> None: ...
def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ...
def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ...
def rowsAboutToBeRemoved(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ...
def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ...
def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ...
@typing.overload # type: ignore[override]
def update(self) -> None: ...
@typing.overload
def update(self, index: QtCore.QModelIndex) -> None: ...
def scrollToBottom(self) -> None: ...
def scrollToTop(self) -> None: ...
def setCurrentIndex(self, index: QtCore.QModelIndex) -> None: ...
def clearSelection(self) -> None: ...
@typing.overload
def edit(self, index: QtCore.QModelIndex) -> None: ...
@typing.overload
def edit(self, index: QtCore.QModelIndex, trigger: "QAbstractItemView.EditTrigger", event: QtCore.QEvent) -> bool: ...
def selectAll(self) -> None: ...
def setRootIndex(self, index: QtCore.QModelIndex) -> None: ...
def reset(self) -> None: ...
def indexWidget(self, index: QtCore.QModelIndex) -> QWidget: ...
def setIndexWidget(self, index: QtCore.QModelIndex, widget: QWidget) -> None: ...
def closePersistentEditor(self, index: QtCore.QModelIndex) -> None: ...
def openPersistentEditor(self, index: QtCore.QModelIndex) -> None: ...
def sizeHintForColumn(self, column: int) -> int: ...
def sizeHintForRow(self, row: int) -> int: ...
def sizeHintForIndex(self, index: QtCore.QModelIndex) -> QtCore.QSize: ...
def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ...
def scrollTo(self, index: QtCore.QModelIndex, hint: "QAbstractItemView.ScrollHint" = ...) -> None: ...
def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ...
def keyboardSearch(self, search: str) -> None: ...
def textElideMode(self) -> QtCore.Qt.TextElideMode: ...
def setTextElideMode(self, mode: QtCore.Qt.TextElideMode) -> None: ...
def iconSize(self) -> QtCore.QSize: ...
def setIconSize(self, size: QtCore.QSize) -> None: ...
def alternatingRowColors(self) -> bool: ...
def setAlternatingRowColors(self, enable: bool) -> None: ...
def dragEnabled(self) -> bool: ...
def setDragEnabled(self, enable: bool) -> None: ...
def showDropIndicator(self) -> bool: ...
def setDropIndicatorShown(self, enable: bool) -> None: ...
def tabKeyNavigation(self) -> bool: ...
def setTabKeyNavigation(self, enable: bool) -> None: ...
def hasAutoScroll(self) -> bool: ...
def setAutoScroll(self, enable: bool) -> None: ...
def editTriggers(self) -> "QAbstractItemView.EditTrigger": ...
def setEditTriggers(self, triggers: "QAbstractItemView.EditTrigger") -> None: ...
def rootIndex(self) -> QtCore.QModelIndex: ...
def currentIndex(self) -> QtCore.QModelIndex: ...
def selectionBehavior(self) -> "QAbstractItemView.SelectionBehavior": ...
def setSelectionBehavior(self, behavior: "QAbstractItemView.SelectionBehavior") -> None: ...
def selectionMode(self) -> "QAbstractItemView.SelectionMode": ...
def setSelectionMode(self, mode: "QAbstractItemView.SelectionMode") -> None: ...
def itemDelegate(self) -> QAbstractItemDelegate: ...
def setItemDelegate(self, delegate: QAbstractItemDelegate) -> None: ...
def selectionModel(self) -> QtCore.QItemSelectionModel: ...
def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ...
def model(self) -> QtCore.QAbstractItemModel: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...
class QAbstractSlider(QWidget):
class SliderChange(enum.Enum):
SliderRangeChange = ... # type: QAbstractSlider.SliderChange
SliderOrientationChange = ... # type: QAbstractSlider.SliderChange
SliderStepsChange = ... # type: QAbstractSlider.SliderChange
SliderValueChange = ... # type: QAbstractSlider.SliderChange
class SliderAction(enum.Enum):
SliderNoAction = ... # type: QAbstractSlider.SliderAction
SliderSingleStepAdd = ... # type: QAbstractSlider.SliderAction
SliderSingleStepSub = ... # type: QAbstractSlider.SliderAction
SliderPageStepAdd = ... # type: QAbstractSlider.SliderAction
SliderPageStepSub = ... # type: QAbstractSlider.SliderAction
SliderToMinimum = ... # type: QAbstractSlider.SliderAction
SliderToMaximum = ... # type: QAbstractSlider.SliderAction
SliderMove = ... # type: QAbstractSlider.SliderAction
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def changeEvent(self, e: QtCore.QEvent) -> None: ...
def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ...
def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ...
def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ...
def event(self, e: QtCore.QEvent) -> bool: ...
def sliderChange(self, change: "QAbstractSlider.SliderChange") -> None: ...
def repeatAction(self) -> "QAbstractSlider.SliderAction": ...
def setRepeatAction(self, action: "QAbstractSlider.SliderAction", thresholdTime: int = ..., repeatTime: int = ...) -> None: ...
actionTriggered: typing.ClassVar[QtCore.pyqtSignal]
rangeChanged: typing.ClassVar[QtCore.pyqtSignal]
sliderReleased: typing.ClassVar[QtCore.pyqtSignal]
sliderMoved: typing.ClassVar[QtCore.pyqtSignal]
sliderPressed: typing.ClassVar[QtCore.pyqtSignal]
valueChanged: typing.ClassVar[QtCore.pyqtSignal]
def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ...
def setValue(self, a0: int) -> None: ...
def triggerAction(self, action: "QAbstractSlider.SliderAction") -> None: ...
def value(self) -> int: ...
def invertedControls(self) -> bool: ...
def setInvertedControls(self, a0: bool) -> None: ...
def invertedAppearance(self) -> bool: ...
def setInvertedAppearance(self, a0: bool) -> None: ...
def sliderPosition(self) -> int: ...
def setSliderPosition(self, a0: int) -> None: ...
def isSliderDown(self) -> bool: ...
def setSliderDown(self, a0: bool) -> None: ...
def hasTracking(self) -> bool: ...
def setTracking(self, enable: bool) -> None: ...
def pageStep(self) -> int: ...
def setPageStep(self, a0: int) -> None: ...
def singleStep(self) -> int: ...
def setSingleStep(self, a0: int) -> None: ...
def setRange(self, min: int, max: int) -> None: ...
def maximum(self) -> int: ...
def setMaximum(self, a0: int) -> None: ...
def minimum(self) -> int: ...
def setMinimum(self, a0: int) -> None: ...
def orientation(self) -> QtCore.Qt.Orientation: ...
class QAbstractSpinBox(QWidget):
class StepType(enum.Enum):
DefaultStepType = ... # type: QAbstractSpinBox.StepType
AdaptiveDecimalStepType = ... # type: QAbstractSpinBox.StepType
class CorrectionMode(enum.Enum):
CorrectToPreviousValue = ... # type: QAbstractSpinBox.CorrectionMode
CorrectToNearestValue = ... # type: QAbstractSpinBox.CorrectionMode
class ButtonSymbols(enum.Enum):
UpDownArrows = ... # type: QAbstractSpinBox.ButtonSymbols
PlusMinus = ... # type: QAbstractSpinBox.ButtonSymbols
NoButtons = ... # type: QAbstractSpinBox.ButtonSymbols
class StepEnabledFlag(enum.Flag):
StepNone = ... # type: QAbstractSpinBox.StepEnabledFlag
StepUpEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag
StepDownEnabled = ... # type: QAbstractSpinBox.StepEnabledFlag
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def isGroupSeparatorShown(self) -> bool: ...
def setGroupSeparatorShown(self, shown: bool) -> None: ...
def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
def keyboardTracking(self) -> bool: ...
def setKeyboardTracking(self, kt: bool) -> None: ...
def isAccelerated(self) -> bool: ...
def setAccelerated(self, on: bool) -> None: ...
def hasAcceptableInput(self) -> bool: ...
def correctionMode(self) -> "QAbstractSpinBox.CorrectionMode": ...
def setCorrectionMode(self, cm: "QAbstractSpinBox.CorrectionMode") -> None: ...
def initStyleOption(self, option: "QStyleOptionSpinBox") -> None: ...
def stepEnabled(self) -> "QAbstractSpinBox.StepEnabledFlag": ...
def setLineEdit(self, e: "QLineEdit") -> None: ...
def lineEdit(self) -> "QLineEdit": ...
def showEvent(self, e: QtGui.QShowEvent) -> None: ...
def paintEvent(self, e: QtGui.QPaintEvent) -> None: ...
def timerEvent(self, e: QtCore.QTimerEvent) -> None: ...
def mouseMoveEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mouseReleaseEvent(self, e: QtGui.QMouseEvent) -> None: ...
def mousePressEvent(self, e: QtGui.QMouseEvent) -> None: ...
def hideEvent(self, e: QtGui.QHideEvent) -> None: ...
def closeEvent(self, e: QtGui.QCloseEvent) -> None: ...
def changeEvent(self, e: QtCore.QEvent) -> None: ...
def contextMenuEvent(self, e: QtGui.QContextMenuEvent) -> None: ...
def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ...
def focusInEvent(self, e: QtGui.QFocusEvent) -> None: ...
def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ...
def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ...
def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ...
def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ...
editingFinished: typing.ClassVar[QtCore.pyqtSignal]
def clear(self) -> None: ...
def selectAll(self) -> None: ...
def stepDown(self) -> None: ...
def stepUp(self) -> None: ...
def stepBy(self, steps: int) -> None: ...
def fixup(self, input: str) -> str: ...
def validate(self, input: str, pos: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ...
def event(self, event: QtCore.QEvent) -> bool: ...
def interpretText(self) -> None: ...
def minimumSizeHint(self) -> QtCore.QSize: ...
def sizeHint(self) -> QtCore.QSize: ...
def hasFrame(self) -> bool: ...
def setFrame(self, a0: bool) -> None: ...
def alignment(self) -> QtCore.Qt.AlignmentFlag: ...
def setAlignment(self, flag: QtCore.Qt.AlignmentFlag) -> None: ...
def isReadOnly(self) -> bool: ...
def setReadOnly(self, r: bool) -> None: ...
def setWrapping(self, w: bool) -> None: ...
def wrapping(self) -> bool: ...
def setSpecialValueText(self, s: str) -> None: ...
def specialValueText(self) -> str: ...
def text(self) -> str: ...
def setButtonSymbols(self, bs: "QAbstractSpinBox.ButtonSymbols") -> None: ...
def buttonSymbols(self) -> "QAbstractSpinBox.ButtonSymbols": ...
class QApplication(QtGui.QGuiApplication):
def __init__(self, argv: typing.List[str]) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def setStyleSheet(self, sheet: str) -> None: ...
def setAutoSipEnabled(self, enabled: bool) -> None: ...
@staticmethod
def closeAllWindows() -> None: ...
@staticmethod
def aboutQt() -> None: ...
focusChanged: typing.ClassVar[QtCore.pyqtSignal]
def styleSheet(self) -> str: ...
def autoSipEnabled(self) -> bool: ...
def notify(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ...
@staticmethod
def exec() -> int: ...
@staticmethod
def setEffectEnabled(a0: QtCore.Qt.UIEffect, enabled: bool = ...) -> None: ...
@staticmethod
def isEffectEnabled(a0: QtCore.Qt.UIEffect) -> bool: ...
@staticmethod
def startDragDistance() -> int: ...
@staticmethod
def setStartDragDistance(l: int) -> None: ...
@staticmethod
def startDragTime() -> int: ...
@staticmethod
def setStartDragTime(ms: int) -> None: ...
@staticmethod
def wheelScrollLines() -> int: ...
@staticmethod
def setWheelScrollLines(a0: int) -> None: ...
@staticmethod
def keyboardInputInterval() -> int: ...
@staticmethod
def setKeyboardInputInterval(a0: int) -> None: ...
@staticmethod
def doubleClickInterval() -> int: ...
@staticmethod
def setDoubleClickInterval(a0: int) -> None: ...
@staticmethod
def cursorFlashTime() -> int: ...
@staticmethod
def setCursorFlashTime(a0: int) -> None: ...
@staticmethod
def alert(widget: QWidget, msecs: int = ...) -> None: ...
@staticmethod
def beep() -> None: ...
@typing.overload # type: ignore[override]
@staticmethod
def topLevelAt(p: QtCore.QPoint) -> QWidget: ...
@typing.overload
@staticmethod
def topLevelAt(x: int, y: int) -> QWidget: ...
@typing.overload
@staticmethod
def widgetAt(p: QtCore.QPoint) -> QWidget: ...
@typing.overload
@staticmethod
def widgetAt(x: int, y: int) -> QWidget: ...
@staticmethod
def setActiveWindow(act: QWidget) -> None: ...
@staticmethod
def activeWindow() -> QWidget: ...
@staticmethod
def focusWidget() -> QWidget: ...
@staticmethod
def activeModalWidget() -> QWidget: ...
@staticmethod
def activePopupWidget() -> QWidget: ...
@staticmethod
def topLevelWidgets() -> typing.List[QWidget]: ...
@staticmethod
def allWidgets() -> typing.List[QWidget]: ...
@staticmethod
def setFont(a0: QtGui.QFont, className: typing.Optional[str] = ...) -> None: ...
@typing.overload
@staticmethod
def font() -> QtGui.QFont: ...
@typing.overload
@staticmethod
def font(a0: QWidget) -> QtGui.QFont: ...
@typing.overload
@staticmethod
def font(className: str) -> QtGui.QFont: ...
@staticmethod
def setPalette(a0: QtGui.QPalette, className: typing.Optional[str] = ...) -> None: ...
@typing.overload
@staticmethod
def palette() -> QtGui.QPalette: ...
@typing.overload
@staticmethod
def palette(a0: QWidget) -> QtGui.QPalette: ...
@typing.overload
@staticmethod
def palette(className: str) -> QtGui.QPalette: ...
@typing.overload
@staticmethod
def setStyle(a0: "QStyle") -> None: ...
@typing.overload
@staticmethod
def setStyle(a0: str) -> "QStyle": ...
@staticmethod
def style() -> "QStyle": ...
class QLayoutItem(PyQt6.sip.wrapper):
@typing.overload
def __init__(self, alignment: QtCore.Qt.AlignmentFlag = ...) -> None: ...
@typing.overload
def __init__(self, a0: "QLayoutItem") -> None: ...
def controlTypes(self) -> "QSizePolicy.ControlType": ...
def setAlignment(self, a: QtCore.Qt.AlignmentFlag) -> None: ...
def alignment(self) -> QtCore.Qt.AlignmentFlag: ...
def spacerItem(self) -> "QSpacerItem": ...
def layout(self) -> "QLayout": ...
def widget(self) -> QWidget: ...
def invalidate(self) -> None: ...
def minimumHeightForWidth(self, a0: int) -> int: ...
def heightForWidth(self, a0: int) -> int: ...
def hasHeightForWidth(self) -> bool: ...
def isEmpty(self) -> bool: ...
def geometry(self) -> QtCore.QRect: ...
def setGeometry(self, a0: QtCore.QRect) -> None: ...
def expandingDirections(self) -> QtCore.Qt.Orientation: ...
def maximumSize(self) -> QtCore.QSize: ...
def minimumSize(self) -> QtCore.QSize: ...
def sizeHint(self) -> QtCore.QSize: ...
class QLayout(QtCore.QObject, QLayoutItem):
class SizeConstraint(enum.Enum):
SetDefaultConstraint = ... # type: QLayout.SizeConstraint
SetNoConstraint = ... # type: QLayout.SizeConstraint
SetMinimumSize = ... # type: QLayout.SizeConstraint
SetFixedSize = ... # type: QLayout.SizeConstraint
SetMaximumSize = ... # type: QLayout.SizeConstraint
SetMinAndMaxSize = ... # type: QLayout.SizeConstraint
def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ...
def unsetContentsMargins(self) -> None: ...
def replaceWidget(self, from_: QWidget, to: QWidget, options: QtCore.Qt.FindChildOption = ...) -> QLayoutItem: ...