Re: [PyQt] Timing problem with resizing of main window

2010-06-23 Thread Vincent Vande Vyvre
Le 23/06/10 21:37, John Posner a écrit : In the program below, the main window's central widget is a QFrame that *always* contains a control panel (CtrlPanel, subclass of QFrame). Pressing the "Create work panel" button inserts another QFrame above the CtrlPanel, causing the main window to grow

Re: [PyQt] Fails to compile on a virgin multilib system

2010-06-23 Thread David Boddie
On Wed, 23 Jun 2010 16:21:52 +0200, appzer0 wrote: > On 20/06/2010 16:44, appzer0 wrote: > > Maybe this bug has something to do with the one I posted at Nokia's bug > > tracker and which was fixed (QT wouldn't compile 32-bit build without QT > > already installed) :http://bugreports.qt.nokia.com/

Re: [PyQt] QXmlQuery example needed - SOLVED

2010-06-23 Thread Ruslan Popov
class Handler(QAbstractMessageHandler): def handleMessage(self, msg_type, desc, identifier, loc): print 'QUERY:', msg_type, desc, identifier, loc handler = Handler() file_name = '/home/rad/devel/foobar/qt/manager/uis/logic_clientcard.xml'

[PyQt] Timing problem with resizing of main window

2010-06-23 Thread John Posner
In the program below, the main window's central widget is a QFrame that *always* contains a control panel (CtrlPanel, subclass of QFrame). Pressing the "Create work panel" button inserts another QFrame above the CtrlPanel, causing the main window to grow vertically. Pressing the "Remove work pa

Re: [PyQt] Adding a layout to a QSlider widget

2010-06-23 Thread V. Armando Solé
Christopher M. Nahler wrote: I am quite new to PyQt so there might be better answers but this is what I would do: Create a standard QSlider Create another widget (depending on what the other widget should do) Create a QWidget (or derived) Put both Sliders in the QWidget and handle the layout he

Re: [PyQt] Fails to compile on a virgin multilib system

2010-06-23 Thread appzer0
On 20/06/2010 16:44, appzer0 wrote: Sorry but this mail does not appear in the ML archives so I send it again after having subscribed. Original Message Subject:pyqt fails to compile on a virgin multilib system Date: Tue, 15 Jun 2010 10:27:41 +0200 From: appzer0 To

Re: [PyQt] Adding a layout to a QSlider widget

2010-06-23 Thread Christopher M. Nahler
I am quite new to PyQt so there might be better answers but this is what I would do: Create a standard QSlider Create another widget (depending on what the other widget should do) Create a QWidget (or derived) Put both Sliders in the QWidget and handle the layout here Use signalling between the

Re: [PyQt] Adding a layout to a QSlider widget

2010-06-23 Thread Mark Summerfield
On 2010-06-23, V. Armando Solé wrote: > Hello, > > I am trying to create a widget consisting on a horizontal QSlider and an > additional widget at its side. The widget should behave as a QSlider. > > I have tried to do it inheriting from a QSlider but the problem is I > cannot get the additional

Re: [PyQt] QtWebKit segfault if libflashplayer.so is in plugin searchpath

2010-06-23 Thread Robin Wittler
On 06/23/2010 01:22 PM, Kay D wrote: I did not started my planned PyQT flash research yet, but hope following could give you some clues: http://trac.webkit.org/wiki/QtWebKitPlugins * Flash uses gdk. Gdk uses a different X connection from Qt. This means that we have to flush the gdk dis

Re: [PyQt] QtWebKit segfault if libflashplayer.so is in plugin searchpath

2010-06-23 Thread Kay D
I did not started my planned PyQT flash research yet, but hope following could give you some clues: http://trac.webkit.org/wiki/QtWebKitPlugins - Flash uses gdk. Gdk uses a different X connection from Qt. This means that we have to flush the gdk display periodically. If you find your scro

[PyQt] Adding a layout to a QSlider widget

2010-06-23 Thread V. Armando Solé
Hello, I am trying to create a widget consisting on a horizontal QSlider and an additional widget at its side. The widget should behave as a QSlider. I have tried to do it inheriting from a QSlider but the problem is I cannot get the additional widget at the side of the slider. It stays on to

Re: [PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Christopher M. Nahler
thanks alot. understood the args format for the signal function now! On 23.06.2010 10:51, Zoltan Szalai wrote: use: self.myList.itemDoubleClicked.connect(self.processItem) or: self.connect(self.myList, SIGNAL("itemDoubleClicked(QListWidgetItem *)"), self.processItem) both work fine here reg

Re: [PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Mark Summerfield
Hi Chris, On 2010-06-23, Christopher M. Nahler wrote: > On 23.06.2010 09:46, Phil Thompson wrote: > > On Wed, 23 Jun 2010 09:40:09 +0200, "Christopher M. Nahler" [snip] > > The signal signature is "itemDoubleClicked(QListWidgetItem *)" > > > > Phil > > The way I understand this is that the s

Re: [PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Zoltan Szalai
use: self.myList.itemDoubleClicked.connect(self.processItem) or: self.connect(self.myList, SIGNAL("itemDoubleClicked(QListWidgetItem *)"), self.processItem) both work fine here regards Zoltan Christopher M. Nahler wrote: On 23.06.2010 09:46, Phil Thompson wrote: On Wed, 23 Jun 2010 09:40

Re: [PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Christopher M. Nahler
On 23.06.2010 09:46, Phil Thompson wrote: On Wed, 23 Jun 2010 09:40:09 +0200, "Christopher M. Nahler" wrote: I have problems using a signal. In the code below I create a QListWidget where I would like to act upon doubleClicking an item. In the documentation I have found the signal "it

Re: [PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Phil Thompson
On Wed, 23 Jun 2010 09:40:09 +0200, "Christopher M. Nahler" wrote: > I have problems using a signal. In the code below I create a QListWidget > where I would like to act upon doubleClicking an item. > > In the documentation I have found the signal "itemDoubleClicked". > (http://doc.qt.nokia.co

[PyQt] using itemDoubleClicked with pyqt

2010-06-23 Thread Christopher M. Nahler
I have problems using a signal. In the code below I create a QListWidget where I would like to act upon doubleClicking an item. In the documentation I have found the signal "itemDoubleClicked". (http://doc.qt.nokia.com/4.6/qlistwidget.html#itemDoubleClicked) But somehow I am not using it righ