[Qgis-developer] QGIS custom widgets library for Qt designer: python/cpp availability
denis.rouzaud at gmail.com
Fri May 2 01:42:09 PDT 2014
I have been creating a new library for having QGIS custom widgets
available in Qt Designer, see PR 1325 .
I am facing a problem regarding the included file name that is defined
in the custom widget and used by uic to create the code for it .
The problem is that this file won't be the same if the UI will be
compiled from python or from c++.
For example, QgsMapLayerComboBoxPlugin , would need to include
qgsmaplayercombobox.h  for c++ while it waits for qgis.gui for Python.
Does someone has any idea if it would be possible to make the widget
librabry working for both languages?
The non-optimal solutions I see:
* provide two libraries, one for python and one for c++
* add a setting in cmake to choose to compile custom widgets for C++ or
* choose one by default and let the user change in source the included file
I think that all of these are non satisfying and removes all the magic
from this new feature.
If you have any lead, it's more than welcome.
More information about the Qgis-developer