QtCS2024 Qt Creator meets Lua: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Added note about where to find documentation)
 
Line 34: Line 34:
  - be more selective?
  - be more selective?


- Security concerns (e.g. careful thought must be put in exposing file access and network access)  
- Security concerns (e.g. careful thought must be put in exposing file access and network access)
 
note: the documentation for the modules can also be found in the online documentation at:
 
https://doc.qt.io/qtcreator-extending/lua-extensions.html


[[Category:QtCS2024]]
[[Category:QtCS2024]]

Latest revision as of 11:52, 6 September 2024

Session Summary

Session Owners

Notes

  • How to write extensions
  • Why Lua (why not JS / Python)?
  • Can export functions + types to lua
  • Documentation...
  • Async/coroutines
  • How to add APIs..
  • REPL in Qt Creator

Questions and feedback

How can a plugin developer explore the APIs available?

- the "lua/meta" files are documented with their APIs

Is there a lua JIT?

- There is (not official), but we don't use it.

The API Qt Creator exposes to Lua is limited

- Creator team is careful with adding APIs due to concerns of future API debt

- considering exposing QWidget APIs

- Which way is the best way to expose APIs?

  - auto-expose all of widgets?

  - be more selective?

- Security concerns (e.g. careful thought must be put in exposing file access and network access)

note: the documentation for the modules can also be found in the online documentation at:

https://doc.qt.io/qtcreator-extending/lua-extensions.html