Fwd: [PyQt] QAction menu questions

2009-06-03 Thread dboddie
On Wed Jun 3 13:28:15 BST 2009, Darryl Wallace wrote: Is there an example someone could point me to that demonstrates how to specify the About Menu and item name, changing them from Python and About Python to MyApp and About MyApp? I run your script and the window title says Menu Test and

Re: [PyQt] Feature request: give QsyntaxHighlighter access to the global offset

2009-02-09 Thread dboddie
On Mon Feb 9 14:41:06 GMT 2009, Edward K. Ream wrote: For my app, there is a lamentable hole in the QSyntaxHighlighter interface. My app has been able to work around this hole, but it would be *so* much better if the hole could be plugged. The problem is that

Re: [PyQt] QGraphicsScene/Item/View optimisation

2009-02-06 Thread dboddie
On Fri Feb 6 15:05:12 GMT 2009, Frédéric wrote: I finally found that the paint() method is very slow, and use all the CPU. I re-designed my app so I don't have to use it (I just draw rectangles or ellipses, so I used the related items). And it is now very fast. I guess this tool would have

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-02-03 Thread dboddie
On Tue Feb 3 10:28:26 GMT 2009, Giovanni Bajo wrote: The trick is that a signal/slot connection across a thread is different from a normal one: in a normal connection, slots are called immediately, within the emit() call. Instead, in an asynchronous connection, when the signal is emitted, an

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread dboddie
On Mon Feb 2 10:43:13 GMT 2009, simozack wrote: 2009/1/31, Filip Gruszczyński gruszczy at gmail.com: Could someone explain to me, how is that possible and why it works: class A(QWidget): def __init__(self): QWidget.__init__(self) class B(QWidget): def __init__(self):

Re: [PyQt] Is it possible to use custom enums for custom widgets?

2009-01-23 Thread dboddie
On Fri Jan 23 12:53:13 GMT 2009, Umit Oztosun wrote: I am using custom widgets and plugins. I can define custom properties using pyqtProperty() using standart Qt types like int, bool, QColor etc. I wonder if it is possible to use custom types, i.e. when the widget is used in Qt Designer, I

Re: [PyQt] external stylesheet in qt designer

2009-01-22 Thread dboddie
On Thu Jan 22 19:14:41 GMT 2009, markus espenhain wrote: is there a chance to apply an external style sheet (file) on the current root widget - instead of editing styles directly on widgets? See the Previewing Forms section of the Qt Designer manual:

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-21 Thread dboddie
On Wednesday 21 January 2009, Eduardo Willians wrote: printer.setPaperSize(QSizeF(79, 72), printer.Millimeter) David, I thank you for your help. Receipt printers use spool-paper, so paperSize must be something like 72mm x the size of the printing. OK, but you might want to try a fixed

Re: [PyQt] qt-webkit - change browser identification

2009-01-20 Thread dboddie
On Tue Jan 20 16:07:28 GMT 2009, piotr maliński wrote: Can QWebView browser identification can be changed? I checked the settings class but didn't noticed anything about it. It seems that you'll need to derive a subclass from QWebPage and reimplement the userAgentForUrl() method:

Re: [PyQt] Re: Thermal Printer on QPrinter

2009-01-20 Thread dboddie
On Tue Jan 20 12:47:17 GMT 2009, Eduardo Willians wrote: Does anyone know *anything* that could help? If you know one little thing please help. Have you tried the (new in Qt 4.4) QPrinter.setPaperSize() method that accepts a QSizeF object? printer.setPaperSize(QSizeF(79, 72),

Re: [PyQt] Preview skins for Designer

2009-01-19 Thread dboddie
On Friday 16 January 2009, Frédéric wrote: Le 15/1/2009, dbod...@trolltech.com dbod...@trolltech.com a écrit: Take a look in the tools/qvfb directory in the Qt source distribution, but you might need the X11 source package to get access to individual skins. Ok, I downloaded them. Where

Re: [PyQt] Preview skins for Designer

2009-01-19 Thread dboddie
On Mon Jan 19 17:16:20 GMT 2009, Frédéric wrote: On lundi 19 janvier 2009, dboddie at trolltech.com wrote: I don't know if you can make them automatically appear there, but you should be able to load them by selecting the Browse... combo box option. Yes, it works :o) BTW, are there some

Re: [PyQt] Preview skins for Designer

2009-01-15 Thread dboddie
On Thu Jan 15 08:25:30 GMT 2009, Frédéric wrote: In the Designer documentation, one can see many nice device skins for previewing the forms: http://doc.trolltech.com/4.4/designer-editing-mode.html#previewing-forms Are these skins available somewhere? When previewing in a specific skin, is

Re: [PyQt] print a tableview

2009-01-12 Thread dboddie
On Mon Jan 12 16:53:02 GMT 2009, lucaberto wrote: Can you tell me the best way for print a tableview the only way that i know is to draw all with qpainter and than print in pdf but maybe there is a best way? That may work quite well. An alternative is to create a text document using the data

Re: [PyQt] Intro and question

2008-12-01 Thread dboddie
On Mon Dec 1 18:24:38 GMT 2008, Christian Aubert wrote: Right, this is a keyboard shortcut. I'm looking for a modifier that applies to the mouse click, so that when your ctrl-click or alt-click or right-click, the button has a different behavior. The signal that tells you when the button has

Re: [PyQt] QGrahicsView and event issue

2008-11-14 Thread dboddie
On Friday 14 November 2008, Oguz Yarimtepe wrote: Here is the class that i am trying to activate my up and down arrows for scrolling: http://rafb.net/p/b0d8J673.html When i remove the Key_Up and Key_Down parts, at my QGraphicsView, pressing them doesn't make scrolling. I tried to write

Re: [PyQt] QGrahicsView and event issue

2008-11-13 Thread dboddie
On Thursday 13 November 2008, Oguz Yarimtepe wrote: I applied what you said and now i am able to get the keyPressEvents. But this time i lost the scrolling when i press the arrow up and down. Anyway to enable it? I am just able to scroll via mouse scroll now. In your GraphicsView subclass

Re: [PyQt] QGrahicsView and event issue

2008-11-11 Thread dboddie
On Tuesday 11 November 2008, Oguz Yarimtepe wrote: So here is the latest version of my application but still i am not able to detect the keyPressEvents nor the events. You need to promote the QGraphicsView widget in your form to GraphicsView. To do this, open the context menu over the widget

Re: [PyQt] How to create a codec class?

2007-12-06 Thread dboddie
On Thu Dec 6 19:19:34 GMT 2007, David Boddie wrote: If you miss out this step for QObject subclasses, you'll get an error like the one you reported: Traceback (most recent call last): File cncodec.py, line 26, in module QtCore.QTextCodec.setCodecForCStrings(gb18030)