ObjectMixin
Subclasses
Class | Module | Description |
---|---|---|
Object | prettyqt.core.object | |
SocketNotifier | prettyqt.core.socketnotifier | |
SharedMemory | prettyqt.core.sharedmemory | |
SignalMapper | prettyqt.core.signalmapper | |
TimeLine | prettyqt.core.timeline | |
AbstractEventDispatcher | prettyqt.core.abstracteventdispatcher | |
EventLoop | prettyqt.core.eventloop | |
AbstractAnimationMixin | prettyqt.core.abstractanimation | The base of all animations. |
TranslatorMixin |
prettyqt.core.translator | |
CoreApplicationMixin | prettyqt.core.coreapplication | |
FileSystemWatcher | prettyqt.core.filesystemwatcher | |
FileSelector | prettyqt.core.fileselector | |
IODeviceMixin | prettyqt.core.iodevice | |
Settings_ |
prettyqt.core.settings | Persistent platform-independent application settings. |
Timer | prettyqt.core.timer | |
MimeData | prettyqt.core.mimedata | |
ThreadPool | prettyqt.core.threadpool | |
ItemSelectionModel | prettyqt.core.itemselectionmodel | |
AbstractItemModelMixin | prettyqt.core.abstractitemmodel | |
Library | prettyqt.core.library | |
PluginLoader | prettyqt.core.pluginloader | |
StyleHintsMixin |
prettyqt.gui.stylehints | |
Shortcut | prettyqt.gui.shortcut | |
Drag | prettyqt.gui.drag | |
WindowMixin | prettyqt.gui.window | |
Clipboard | prettyqt.gui.clipboard | Access to the window system clipboard. |
InputMethod | prettyqt.gui.inputmethod | |
SessionManager | prettyqt.gui.sessionmanager | |
ValidatorMixin | prettyqt.gui.validator | |
TextDocumentMixin |
prettyqt.gui.textdocument | |
Movie | prettyqt.gui.movie | |
PdfWriter | prettyqt.gui.pdfwriter | |
TextObjectMixin | prettyqt.gui.textobject | |
AbstractTextDocumentLayoutMixin | prettyqt.gui.abstracttextdocumentlayout | |
SyntaxHighlighterMixin |
prettyqt.gui.syntaxhighlighter | |
UndoStackMixin |
prettyqt.gui.undostack | |
UndoGroupMixin |
prettyqt.gui.undogroup | |
ActionMixin | prettyqt.gui.action | |
ActionGroup | prettyqt.gui.actiongroup | |
StyleMixin | prettyqt.widgets.style | |
WidgetMixin | prettyqt.widgets.widget | |
GraphicsTransformMixin | prettyqt.widgets.graphicstransform | |
GraphicsObjectMixin | prettyqt.widgets.graphicsobject | |
GraphicsEffectMixin | prettyqt.widgets.graphicseffect | |
GraphicsScene | prettyqt.widgets.graphicsscene | |
Completer | prettyqt.widgets.completer | |
Scroller | prettyqt.widgets.scroller | Enables kinetic scrolling for any scrolling widget or graphics item. |
AbstractItemDelegateMixin | prettyqt.widgets.abstractitemdelegate | |
SystemTrayIcon | prettyqt.widgets.systemtrayicon | |
LayoutMixin | prettyqt.widgets.layout | |
ButtonGroup | prettyqt.widgets.buttongroup | |
DataWidgetMapper | prettyqt.widgets.datawidgetmapper | |
GestureMixin | prettyqt.widgets.gesture | |
BluetoothLocalDevice | prettyqt.bluetooth.bluetoothlocaldevice | |
BluetoothServer | prettyqt.bluetooth.bluetoothserver | |
BluetoothDeviceDiscoveryAgent | prettyqt.bluetooth.bluetoothdevicediscoveryagent | |
BluetoothServiceDiscoveryAgent | prettyqt.bluetooth.bluetoothservicediscoveryagent | |
BarSet | prettyqt.charts.barset | |
BoxSet | prettyqt.charts.boxset | |
CandlestickSet | prettyqt.charts.candlestickset | |
PieSlice | prettyqt.charts.pieslice | |
AbstractAxisMixin | prettyqt.charts.abstractaxis | |
AbstractSeriesMixin | prettyqt.charts.abstractseries | |
PyDesignerTaskMenuExtension | prettyqt.designer.pydesignertaskmenuextension | |
DesignerFormEditorInterface | prettyqt.designer.designerformeditorinterface | |
GeoPositionInfoSourceMixin | prettyqt.positioning.geopositioninfosource | |
GeoSatelliteInfoSource | prettyqt.positioning.geosatelliteinfosource | |
GeoAreaMonitorSource | prettyqt.positioning.geoareamonitorsource | |
GeoCodingManager | prettyqt.location.geocodingmanager | Support for geocoding operations. |
GeoRoutingManager | prettyqt.location.georoutingmanager | Support for geographic routing operations. |
PlaceReplyMixin | prettyqt.location.placereply | |
GeoServiceProvider | prettyqt.location.geoserviceprovider | |
Camera | prettyqt.multimedia.camera | |
MediaPlayer | prettyqt.multimedia.mediaplayer | |
ScreenCapture | prettyqt.multimedia.screencapture | |
MediaRecorder | prettyqt.multimedia.mediarecorder | |
NetworkCookieJar | prettyqt.network.networkcookiejar | |
LocalServer | prettyqt.network.localserver | |
TcpServer | prettyqt.network.tcpserver | |
HttpMultiPart | prettyqt.network.httpmultipart | |
NetworkAccessManager | prettyqt.network.networkaccessmanager | |
PdfDocument | prettyqt.pdf.pdfdocument | |
QmlExpression | prettyqt.qml.qmlexpression | |
QmlPropertyMapMixin |
prettyqt.qml.qmlpropertymap | |
JSEngineMixin | prettyqt.qml.jsengine | |
QmlComponent | prettyqt.qml.qmlcomponent | |
HelpEngineCoreMixin | prettyqt.qthelp.helpenginecore | The core functionality of the help system. |
HelpSearchEngine | prettyqt.qthelp.helpsearchengine | |
HelpFilterEngine | prettyqt.qthelp.helpfilterengine | Filtered view of the help contents. |
QuickTextDocument | prettyqt.quick.quicktextdocument | |
QuickRenderControl | prettyqt.quick.quickrendercontrol | |
QuickImageResponse | prettyqt.quick.quickimageresponse | |
QuickItemGrabResult | prettyqt.quick.quickitemgrabresult | Contains the result from QQuickItem::grabToImage(). |
QuickItemMixin | prettyqt.quick.quickitem | |
AbstractStateMixin | prettyqt.statemachine.abstractstate | |
AbstractTransitionMixin | prettyqt.statemachine.abstracttransition | |
SvgRenderer | prettyqt.svg.svgrenderer | |
TextToSpeech | prettyqt.texttospeech.texttospeech | |
AmbientSound | prettyqt.spatialaudio.ambientsound | |
AudioEngine | prettyqt.spatialaudio.audioengine | |
AudioListener | prettyqt.spatialaudio.audiolistener | |
AudioRoom | prettyqt.spatialaudio.audioroom | |
SpatialSound | prettyqt.spatialaudio.spatialsound | |
WebChannel | prettyqt.webchannel.webchannel | |
WebEngineUrlSchemeHandler | prettyqt.webenginecore.webengineurlschemehandler | |
WebEnginePage | prettyqt.webenginecore.webenginepage | |
WebEngineProfile | prettyqt.webenginecore.webengineprofile |
â‹” Inheritance diagram
graph TD
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
140713234304496 --> 1473299815024
🛈 DocStrings
Source code in prettyqt\core\object.py
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 |
|
__init__(*args, **kwargs)
Source code in prettyqt\core\object.py
add_callback_for_event(callback: Callable[[core.QEvent], bool], include: core.QEvent.Type | Sequence[core.QEvent.Type] | None = None, exclude: core.QEvent.Type | Sequence[core.QEvent.Type] | None = None) -> eventfilters.EventCatcher
Connect widget events to a callback.
if include is set, it behaves like a whitelist. if exclude is set, it behaves like a blacklist. The QEvent is passed to the callback as an argument, and the callback needs to return True or False to indicate whether the Event should be filtered.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback |
Callable[[QEvent], bool]
|
Callback to execute when event is triggered |
required |
include |
Type | Sequence[Type] | None
|
Events to include |
None
|
exclude |
Type | Sequence[Type] | None
|
Events to exclude |
None
|
Source code in prettyqt\core\object.py
find_child(typ: type[T] = core.QObject, name: str | core.QRegularExpression | None = None, recursive: bool = True) -> T | None
Find a child with given type and name.
Source code in prettyqt\core\object.py
find_children(typ: type[T] = core.QObject, name: str | datatypes.PatternType | None = None, recursive: bool = True, property_selector: dict[str, datatypes.VariantType | Callable] | None = None, only_prettyqt_classes: bool = False) -> listdelegators.ListDelegator[T]
Find children with given type and name.
Children can be filtered by passing a property selector dictionary. It must contain the property name for keys and either a value which must be set or a predicate function which gets the property value as an argument and must return True if the child should be included.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
typ |
type[T]
|
Subclass of QObject (can also be a UnionType) |
QObject
|
name |
str | PatternType | None
|
ObjectName filter. None includes all. |
None
|
recursive |
bool
|
whether to search for children recursively. |
True
|
property_selector |
dict[str, VariantType | Callable] | None
|
dict containing PropertyName -> Value/Predicate pairs. |
None
|
only_prettyqt_classes |
bool
|
only include objects with prettyqt superpowers. |
False
|
Source code in prettyqt\core\object.py
find_parent(typ: type[T] = core.QObject, name: str | None = None) -> T | None
Find parent with given type or name.
Source code in prettyqt\core\object.py
get_dynamic_properties() -> dict[str, Any]
Get a dictionary with all dynamic properties.
get_properties(include_super: bool = True, cast: bool = True, only_writable: bool = False, only_nonempty: bool = False) -> dict[str, Any]
Get a dictionary containing all properties and their values.
Source code in prettyqt\core\object.py
installEventFilter(filter_: core.QObject | str, **kwargs: core.QObject | str)
Override to also allow setting eventfilters by name.
Source code in prettyqt\core\object.py
properties_set_to(**kwargs)
Context manager to temporarily set properties to different values.
Source code in prettyqt\core\object.py
set_properties(props: dict[str, Any], include_super: bool = True)
Set properties from a dictionary.
Source code in prettyqt\core\object.py
set_unique_id()
signal_blocked(signal: core.SignalInstance, receiver: Callable | core.SignalInstance)
Context manager to temporarily disconnect specific signal.
Source code in prettyqt\core\object.py
signals_blocked()
Context manager to temporarily block emitting signals.
start_callback_timer(callback: Callable, interval: int | str, single_shot: bool = False, timer_type: constants.TimerTypeStr = 'coarse') -> core.Timer
Start timer and execute callback when timeout reached.
Source code in prettyqt\core\object.py
start_timer(interval: int | str, timer_type: constants.TimerTypeStr = 'coarse') -> int | None
Start a timer and return the timer id, to be used in timerEvent.