C++ (Qt) qmlRegisterType<MyCoolDevice>( ... )
Javascripttry { } catch( exception ) { }
C++ (Qt) struct iterator_iface { virtual ~iterator_iface( ) { } virtual void next( ) = 0; virtual bool end( ) const = 0; virtual iterator_iface *clone( ) const = 0; virtual iterator_value &get( ) = 0; virtual const iterator_value &get( ) const = 0;};
property var list: ["one", "two", "three"]
Javascript var f = components.newFs( generalClient ) var i = f.info( "/dev/random" ) lbl.text = "file /dev/random: " + i.exists + " " + i.directory + " " + i.empty + " " + i.regular + " " + i.symlink + " " f.writeFile( "/home/data/test.rnd", f.readFile( "/dev/random", 10 ) )
Javascriptif( f.failed ) { throw f.error}