I finished the toolbar implementation, it looks better :
- the buttons are not expanding to the maximum horizontal size
- it supports icons from images files and files in QResources
- the QGridLayout can be used in Lua
How it looks now:
The GUI elements are now finished and tomorrow I'll begin to work on the creation of new entities. It doesn't support all entities yet, only lines can be created and no preview is available.