Hi, <br>I have a custom widget named &quot;WidgetFoo&quot; (and written in PyQt4, of course) which I successfully exported to Designer (using a class &quot;WidgetFooPlugin&quot; inherited from &quot;QPyDesignerCustomWidgetPlugin&quot;). <br>
When I load Designer, I can see &quot;WidgetFoo&quot; loaded and I can put it on a form. So everything works well.<br><br>Now I want to change the name of the widget when it&#39;s exported on Designer. So class name should remain &quot;WidgetFoo&quot; but I want it to be showed as &quot;A custom Widget&quot; in the Designer palette. I&#39;m not able to achieve this simple goal. I figured that I have to change the string returned by the method WidgetFooPlugin.name, but if I try I get a message while loading designer: &quot;Designer: A class name mismatch occurred when creating a widget using the custom widget factory registered for widgets of class A custom Widget. It returned a widget of class WidgetFoo&quot;.<br>
I&#39;ve checked all examples contained in pyqt sources but it seems that no one tryes to accomplish this.<br><br>Is there a way to tell Qt Designer to show widget on the palette with a different string (not the class name)?<br>
<br clear="all">Emiliano<br><br>-- <br>life&#39;s better without braces - Bruce Eckel<br>