Re: [PyQt] Custom widget SIP bindings: style not applied

2012-11-01 Thread Phil Thompson
On Mon, 29 Oct 2012 16:21:14 +0200, Alexander Bruy alexander.b...@gmail.com wrote: Hi all, I subclassed QLineEdit and created custom lineedit widget with builtin button to clear it. This code in C++ and it works as expected (see attached images cpp_widget_empty.png and

[PyQt] Custom widget SIP bindings: style not applied

2012-10-29 Thread Alexander Bruy
Hi all, I subclassed QLineEdit and created custom lineedit widget with builtin button to clear it. This code in C++ and it works as expected (see attached images cpp_widget_empty.png and cpp_widget_with_text.png). Then I tried to wrap this C++ code with SIP and make custom widget available in

Re: [PyQt] Custom widget property

2012-08-21 Thread Vincent Vande Vyvre
On 17/08/12 14:10, Vincent Vande Vyvre wrote: Hi, I'm working on a custom widget, I've created a file plugin and I can use my widget into the Designer. So, this widget has a property 'orientation' wich may take two values: 'east' or 'west'. Into the properties editor this property appears

[PyQt] Custom widget property

2012-08-17 Thread Vincent Vande Vyvre
Hi, I'm working on a custom widget, I've created a file plugin and I can use my widget into the Designer. So, this widget has a property 'orientation' wich may take two values: 'east' or 'west'. Into the properties editor this property appears with a lineEdit, how can make to change this

Re: [PyQt] Custom Widget

2011-01-27 Thread Phil Thompson
On Thu, 27 Jan 2011 04:03:48 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 26 January 2011, 14:35:35 ferde...@gmail.com wrote: Thanks again Pete I think i will do my own custom widget from scratch following a book i have and then use the link you gave me to integrate it to the

Re: [PyQt] Custom Widget

2011-01-26 Thread Hans-Peter Jansen
On Wednesday 26 January 2011, 04:33:50 Fernando Cosso wrote: Thanks Pete I dont know much of C++ so I guess I will not be able to re implement it Python. It's dead easy. Really. Just replace - with ., combine header and source into one class, combine declaration and code into single python

Re: [PyQt] Custom Widget

2011-01-26 Thread ferdemza
Thanks again Pete I think i will do my own custom widget from scratch following a book i have and then use the link you gave me to integrate it to the designer. Best regards ---BeginMessage--- On Wednesday 26 January 2011, 04:33:50 Fernando Cosso wrote: Thanks Pete I dont know much of C++

Re: [PyQt] Custom Widget

2011-01-26 Thread Hans-Peter Jansen
On Wednesday 26 January 2011, 14:35:35 ferde...@gmail.com wrote: Thanks again Pete I think i will do my own custom widget from scratch following a book i have and then use the link you gave me to integrate it to the designer. As I told you, it is simpler to convert the Qt code. @Phil: for

Re: [PyQt] Custom Widget

2011-01-25 Thread Hans-Peter Jansen
On Wednesday 26 January 2011, 01:35:07 Fernando Cosso wrote: Hi All I would like to use this custom widget http://www.qtcentre.org/wiki/index.php?title=Buttons_with_richt_text_ %28multiple_colors%29in the Designer, but I don't have a clue as how to import it and use it in Python, any

[PyQt] custom widget not loading in QT designer

2009-10-20 Thread tom
hello, i have created a custom Button (IVDButton) derived from QWidget and it runs fine on it's own. I then created a plugin for that button IVDButtonPlugin placed the IVDButton in C:\Qt\2009.04\qt\plugins\designer\ and placed IVDButton.py (and required dependencies) in

[PyQt] Custom Widget for Designer

2008-11-06 Thread Emiliano Mennucci
Hi, I have a custom widget named WidgetFoo (and written in PyQt4, of course) which I successfully exported to Designer (using a class WidgetFooPlugin inherited from QPyDesignerCustomWidgetPlugin). When I load Designer, I can see WidgetFoo loaded and I can put it on a form. So everything works