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
#![cfg_attr(feature = "ritual_rustdoc_nightly", feature(doc_cfg))] //! C++ namespace: <span style='color: green;'>```QtQml```</span> /// Calls C++ function: <span style='color: green;'>```QObject * (*FN_PTR)(QObject *) QtQml::qmlAttachedPropertiesFunction(QObject* arg1, const QMetaObject* arg2)```</span>. #[inline(always)] #[cfg_attr( feature = "ritual_rustdoc_nightly", doc(cfg(any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"))) )] #[cfg(any( any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"), feature = "ritual_rustdoc" ))] pub unsafe fn qml_attached_properties_function( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, arg2: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QMetaObject>>, ) -> ::std::option::Option<extern "C" fn(*mut ::qt_core::QObject) -> *mut ::qt_core::QObject> { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesFunction( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1).as_raw_ptr() as *mut ::qt_core::QObject, ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QMetaObject>>::cast_into(arg2) .as_raw_ptr(), ) } /// Calls C++ function: <span style='color: green;'>```QObject* QtQml::qmlAttachedPropertiesObject(int* arg1, const QObject* arg2, const QMetaObject* arg3, bool create)```</span>. #[inline(always)] pub unsafe fn qml_attached_properties_object_4a( arg1: *mut ::std::os::raw::c_int, arg2: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, arg3: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QMetaObject>>, create: bool, ) -> ::qt_core::QPtr<::qt_core::QObject> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesObject( arg1, ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg2) .as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QMetaObject>>::cast_into(arg3) .as_raw_ptr(), create, ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```QObject* QtQml::qmlAttachedPropertiesObject(QObject* arg1, QObject * (*FN_PTR)(QObject *) func, bool create = …)```</span>. #[inline(always)] #[cfg_attr( feature = "ritual_rustdoc_nightly", doc(cfg(any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"))) )] #[cfg(any( any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"), feature = "ritual_rustdoc" ))] pub unsafe fn qml_attached_properties_object_3a( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, func: ::std::option::Option<extern "C" fn(*mut ::qt_core::QObject) -> *mut ::qt_core::QObject>, create: bool, ) -> ::qt_core::QPtr<::qt_core::QObject> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesObject1( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1) .as_raw_ptr() as *mut ::qt_core::QObject, func, create, ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```QObject* QtQml::qmlAttachedPropertiesObject(QObject* arg1, QObject * (*FN_PTR)(QObject *) func)```</span>. #[inline(always)] #[cfg_attr( feature = "ritual_rustdoc_nightly", doc(cfg(any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"))) )] #[cfg(any( any(cpp_lib_version = "5.13.0", cpp_lib_version = "5.14.0"), feature = "ritual_rustdoc" ))] pub unsafe fn qml_attached_properties_object_2a( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, func: ::std::option::Option<extern "C" fn(*mut ::qt_core::QObject) -> *mut ::qt_core::QObject>, ) -> ::qt_core::QPtr<::qt_core::QObject> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesObject2( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1) .as_raw_ptr() as *mut ::qt_core::QObject, func, ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```QObject* QtQml::qmlAttachedPropertiesObjectById(int arg1, const QObject* arg2, bool create = …)```</span>. #[inline(always)] pub unsafe fn qml_attached_properties_object_by_id_3a( arg1: ::std::os::raw::c_int, arg2: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, create: bool, ) -> ::qt_core::QPtr<::qt_core::QObject> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesObjectById( arg1, ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg2) .as_raw_ptr(), create, ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```QObject* QtQml::qmlAttachedPropertiesObjectById(int arg1, const QObject* arg2)```</span>. #[inline(always)] pub unsafe fn qml_attached_properties_object_by_id_2a( arg1: ::std::os::raw::c_int, arg2: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::qt_core::QPtr<::qt_core::QObject> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlAttachedPropertiesObjectById1( arg1, ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg2) .as_raw_ptr(), ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```QQmlContext* QtQml::qmlContext(const QObject* arg1)```</span>. #[inline(always)] pub unsafe fn qml_context( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::qt_core::QPtr<crate::QQmlContext> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlContext( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1) .as_raw_ptr(), ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// <p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlDebug(const QObject* me)```</span>. /// /// <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead. For example,</p> /// <pre class="cpp"> /// /// qmlDebug(object) <span class="operator"><</span><span class="operator"><</span> <span class="string">"Internal state: 42"</span>; /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): Internal state: 42 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_debug_q_object( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlDebug( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlDebug(const QObject* me, const QQmlError& error)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlDebug(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead. For example,</p> /// <pre class="cpp"> /// /// qmlDebug(object) <span class="operator"><</span><span class="operator"><</span> <span class="string">"Internal state: 42"</span>; /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): Internal state: 42 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_debug_q_object_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, error: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlDebug1( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QQmlError>>::cast_into(error) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlDebug(const QObject* me, const QList<QQmlError>& errors)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlDebug(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints debug messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead. For example,</p> /// <pre class="cpp"> /// /// qmlDebug(object) <span class="operator"><</span><span class="operator"><</span> <span class="string">"Internal state: 42"</span>; /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): Internal state: 42 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_debug_q_object_q_list_of_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, errors: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QListOfQQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlDebug2( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QListOfQQmlError>>::cast_into(errors) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// Calls C++ function: <span style='color: green;'>```QQmlEngine* QtQml::qmlEngine(const QObject* arg1)```</span>. #[inline(always)] pub unsafe fn qml_engine( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::qt_core::QPtr<crate::QQmlEngine> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlEngine( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1) .as_raw_ptr(), ) }; ::qt_core::QPtr::from_raw(ffi_result) } /// Calls C++ function: <span style='color: green;'>```void QtQml::qmlExecuteDeferred(QObject* arg1)```</span>. #[inline(always)] pub unsafe fn qml_execute_deferred( arg1: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlExecuteDeferred( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(arg1).as_raw_ptr() as *mut ::qt_core::QObject, ) } /// <p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlInfo(const QObject* me)```</span>. /// /// <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"component property is a write-once property"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): component property is a write-once property /// /// </pre> /// <p><b>Note: </b>In versions prior to Qt 5.9, qmlInfo reported messages using a warning <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. For Qt 5.9 and above, qmlInfo uses an info <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. To send warnings, use <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">qmlWarning</a>.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_info_q_object( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlInfo( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlInfo(const QObject* me, const QQmlError& error)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlInfo(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"component property is a write-once property"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): component property is a write-once property /// /// </pre> /// <p><b>Note: </b>In versions prior to Qt 5.9, qmlInfo reported messages using a warning <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. For Qt 5.9 and above, qmlInfo uses an info <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. To send warnings, use <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">qmlWarning</a>.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_info_q_object_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, error: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlInfo1( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QQmlError>>::cast_into(error) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlInfo(const QObject* me, const QList<QQmlError>& errors)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlInfo(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints informational messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"component property is a write-once property"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): component property is a write-once property /// /// </pre> /// <p><b>Note: </b>In versions prior to Qt 5.9, qmlInfo reported messages using a warning <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. For Qt 5.9 and above, qmlInfo uses an info <a href="http://doc.qt.io/qt-5/qtglobal.html#QtMsgType-enum">QtMsgType</a>. To send warnings, use <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">qmlWarning</a>.</p><p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">QtQml::qmlWarning</a>.</p></div> #[inline(always)] pub unsafe fn qml_info_q_object_q_list_of_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, errors: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QListOfQQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlInfo2( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QListOfQQmlError>>::cast_into(errors) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlWarning(const QObject* me)```</span>. /// /// <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">C++ documentation</a>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"property cannot be set to 0"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): property cannot be set to 0 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a>.</p></div> #[inline(always)] pub unsafe fn qml_warning_q_object( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlWarning( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlWarning(const QObject* me, const QQmlError& error)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlWarning(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"property cannot be set to 0"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): property cannot be set to 0 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a>.</p></div> #[inline(always)] pub unsafe fn qml_warning_q_object_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, error: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlWarning1( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QQmlError>>::cast_into(error) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") } /// <p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// /// Calls C++ function: <span style='color: green;'>```QQmlInfo QtQml::qmlWarning(const QObject* me, const QList<QQmlError>& errors)```</span>. /// /// Warning: no exact match found in C++ documentation. Below is the <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlWarning">C++ documentation</a> for <span style='color: green;'>```QQmlInfo QtQml::qmlWarning(const QObject *object)```</span>:<div style='border: 1px solid #5CFF95; background: #D6FFE4; padding: 16px;'><p>Prints warning messages that include the file and line number for the specified QML <i>object</i>.</p> /// <p>When QML types produce logging messages, it improves traceability if they include the QML file and line number on which the particular instance was instantiated.</p> /// <p>To include the file and line number, an object must be passed. If the file and line number is not available for that instance (either it was not instantiated by the QML engine or location information is disabled), "unknown location" will be used instead.</p> /// <p>For example,</p> /// <pre class="cpp"> /// /// qmlInfo(object) <span class="operator"><</span><span class="operator"><</span> tr(<span class="string">"property cannot be set to 0"</span>); /// /// </pre> /// <p>prints</p> /// <pre class="cpp plain"> /// /// QML MyCustomType (unknown location): property cannot be set to 0 /// /// </pre> /// <p>This function was introduced in Qt 5.9.</p> /// <p><b>See also </b><a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlDebug">QtQml::qmlDebug</a> and <a href="http://doc.qt.io/qt-5/qqmlengine.html#qmlInfo">QtQml::qmlInfo</a>.</p></div> #[inline(always)] pub unsafe fn qml_warning_q_object_q_list_of_q_qml_error( me: impl ::cpp_core::CastInto<::cpp_core::Ptr<::qt_core::QObject>>, errors: impl ::cpp_core::CastInto<::cpp_core::Ref<crate::QListOfQQmlError>>, ) -> ::cpp_core::CppBox<crate::QQmlInfo> { let ffi_result = { crate::__ffi::ctr_qt_qml_ffi_QtQml_qmlWarning2( ::cpp_core::CastInto::<::cpp_core::Ptr<::qt_core::QObject>>::cast_into(me).as_raw_ptr(), ::cpp_core::CastInto::<::cpp_core::Ref<crate::QListOfQQmlError>>::cast_into(errors) .as_raw_ptr(), ) }; ::cpp_core::CppBox::from_raw(ffi_result).expect("attempted to construct a null CppBox") }