DOtherSide  0.7.1
C language library for creating bindings for the Qt QML language
Functions
QQmlContext

Functions related to the QQmlContext class. More...

Functions

DOS_API char * dos_qqmlcontext_baseUrl (const DosQQmlContext *vptr)
 Calls the QQmlContext::baseUrl function. More...
 
DOS_API void dos_qqmlcontext_setcontextproperty (DosQQmlContext *vptr, const char *name, DosQVariant *value)
 Sets a property inside the context. More...
 

Detailed Description

Functions related to the QQmlContext class.

Function Documentation

◆ dos_qqmlcontext_baseUrl()

DOS_API char* dos_qqmlcontext_baseUrl ( const DosQQmlContext vptr)

Calls the QQmlContext::baseUrl function.

Returns
The QQmlContext url as an UTF-8 string
Note
The returned string should be freed using with the dos_chararray_delete() function

◆ dos_qqmlcontext_setcontextproperty()

DOS_API void dos_qqmlcontext_setcontextproperty ( DosQQmlContext vptr,
const char *  name,
DosQVariant value 
)

Sets a property inside the context.

Parameters
vptrThe DosQQmlContext
nameThe property name. The string is owned by the caller thus it will not be deleted by the library
valueThe property value. The DosQVariant is owned by the caller thus it will not be deleted by the library