Hi,
I didnt find out how to use the functions of the Qt based plugin (v_repExtCustomUI) in my own plugin in c++. What I'm missing?
Best
vrepUser1
Qt based UI in plugin c++
Re: Qt based UI in plugin c++
The CustomUI plugin only provides a Lua interface.
If you are writing a C++ plugin, you can use the Qt API directly.
The only aspect you should take care of is threads: there are two threads where your code can be run:
If you are writing a C++ plugin, you can use the Qt API directly.
The only aspect you should take care of is threads: there are two threads where your code can be run:
- the main (UI) thread, where the user interface code and Qt widgets are running
- the SIM thread, where the V-REP API must be called.
Re: Qt based UI in plugin c++
Hi fferri,
thank you for the hints. So you mean I should only call Qt functions during the callback-message which are marked as "(called from the UI thread)", like "sim_message_eventcallback_guipass (called from the UI thread)"?
Best,
vrepUser1
thank you for the hints. So you mean I should only call Qt functions during the callback-message which are marked as "(called from the UI thread)", like "sim_message_eventcallback_guipass (called from the UI thread)"?
Best,
vrepUser1
Re: Qt based UI in plugin c++
Yes, exactly.
Also: only call the V-REP API functions from those messages NOT marked as "called from the UI thread".
Also: only call the V-REP API functions from those messages NOT marked as "called from the UI thread".