[−][src]Struct qt_qml::q_j_s_engine::Extension
This enum is used to specify extensions to be installed via installExtensions().
C++ enum: QJSEngine::Extension
.
This enum is used to specify extensions to be installed via installExtensions().
TranslationExtension
The relation between script translation functions and C++ translation functions is described in the following table:
Script Function | Corresponding C++ Function |
---|---|
qsTr() | QObject::tr() |
QT_TR_NOOP() | QT_TR_NOOP() |
qsTranslate() | QCoreApplication::translate() |
QT_TRANSLATE_NOOP() | QT_TRANSLATE_NOOP() |
qsTrId() | qtTrId() |
QT_TRID_NOOP() | QT_TRID_NOOP() |
This flag also adds an arg()
function to the string prototype.
For more information, see the Internationalization with Qt documentation.
ConsoleExtension
The console object implements a subset of the Console API, which provides familiar logging functions, such as console.log()
.
The list of functions added is as follows:
console.assert()
console.debug()
console.exception()
console.info()
console.log()
(equivalent toconsole.debug()
)console.error()
console.time()
console.timeEnd()
console.trace()
console.count()
console.warn()
print()
(equivalent toconsole.debug()
)
For more information, see the Console API documentation.
GarbageCollectionExtension
The gc()
function is equivalent to calling collectGarbage().
The Extensions type is a typedef for QFlags<Extension>. It stores an OR combination of Extension values.
Methods
impl Extension
[src]
impl Extension
[src]
pub const TranslationExtension: Extension
[src]
Indicates that translation functions (qsTr()
, for example) should be installed. (C++ enum variant: TranslationExtension = 1
)
pub const ConsoleExtension: Extension
[src]
Indicates that console functions (console.log()
, for example) should be installed. (C++ enum variant: ConsoleExtension = 2
)
pub const GarbageCollectionExtension: Extension
[src]
Indicates that garbage collection functions (gc()
, for example) should be installed. (C++ enum variant: GarbageCollectionExtension = 4
)
pub const AllExtensions: Extension
[src]
Indicates that all extension should be installed. (C++ enum variant: AllExtensions = -1
)
Trait Implementations
impl<T: Into<QFlags<Extension>>> BitOr<T> for Extension
[src]
type Output = QFlags<Extension>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> QFlags<Extension>
[src]
impl Clone for Extension
[src]
impl Copy for Extension
[src]
impl Debug for Extension
[src]
impl Eq for Extension
[src]
impl From<Extension> for c_int
[src]
impl From<Extension> for QFlags<Extension>
[src]
impl From<i32> for Extension
[src]
impl PartialEq<Extension> for Extension
[src]
impl StructuralEq for Extension
[src]
impl StructuralPartialEq for Extension
[src]
Auto Trait Implementations
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,