mercredi 24 octobre 2018

QtDesigner custom widget

Good day,

  1. I`m coding my QtDesigner plugin. According to the official doc I created Collection subclass of QDesignerCustomWidgetCollectionInterface and implemented separated plugins for each widgets throught subclassing of QDesignerCustomWidgetInterface. I have done it sucsessfully and have *.dll plugin. I copy it in the correct \plugins\designer folder.

  2. Because I`m working under Windows and use prebuil QtCreator by msvc2015 I have to recompile my QtCreator from source with a given mingw compiler. I\'ve done it sucsesfully. Now I can run my recompiled QtCreator from cmd with correct environment.

  3. After all these troubles I can run QtCreator-mingw and see plugins in a designer pallete and drag-drop its to *.ui. I can edit Q_PROPERTY attribures through designer.

My problem is following: - After drag-drop I see widget as wrote before (3); - After close QtCreator-mingw and reopen it in the *.ui file I couldn`t see MyWidget and couldn`t edit Q_PROPERTY.

Note: - I use wizard of user custom Qt Designer and Collection was generated automatically. - The same for widget plugins. - I just edited doXml method. - I can`t see widget in design-mode but compilation and running are done. All MyWidget are there.

Does anybody know what is the root of my problem?

Aucun commentaire:

Enregistrer un commentaire