[Development] QtRemoteObjects (was Replicant)
Milian Wolff
milian.wolff at kdab.com
Fri Oct 17 12:06:41 CEST 2014
On Friday 17 October 2014 12:02:12 Sumedha Widyadharma wrote:
> On 17.10.2014 11:50, Milian Wolff wrote:
> [...]
>
> > Qt RemoteObjects is very different from Qt WebChannel - it gives you a
> > typesafe C++ interface. Qt WebChannel does some similar things but only
> > constructs a dynamic JavaScript object via introspection. There is no way
> > to use that directly from C++, esp. not in a typesafe manner.
>
> [...]
>
> The idea would be to add type information to the object descriptors of
> QtWebChannel. At no point would the javascript library be involved in this
> scenario.
>
> I'm not sure if the required kinds of proxy objects can be dynamically
> constructed though, thus the question.
>
> It might not be possible (or a good idea) to do the same thing in both
> projects, but we've also already thought that sometimes having (optional)
> type information in QtWebChannel would be good.
In order to have a typesafe interface, you must have a header available at
compiletime. There is no way you can construct that dynamically at runtime.
Adding type information to Qt WebChannel might be interesting in the long-run,
but is in no way related to the Qt RemoteObjects project. While both projects
are similar, in the end they solve different problems.
Bye
--
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Development
mailing list