Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-02 Thread Mailing List SVR

Il 31/12/2011 16:01, Linos ha scritto:

has anyone tried this?


for me the cpp example is identical to the python one (qt 4.7.4, pyqt 
4.8.5, ubuntu oneiric packages)


Nicola



El 28/12/11 18:16, Linos escribió:

Hi,
after Qt upgrade to 4.8.0 in my machine i have been getting problems 
with the
painting of vertical headers in QTableViews with a QSqlQueryModel that refresh
on event (for example after tab change).

I have created a testcase because i wanted to report the bug to Qt bug tracker
but i can't reproduce it in c++ so i have created a testcase in python with the
problem and the equivalent code in c++ that not reproduces the problem, maybe i
am missing something but it seems like a but in PyQt?

I am using now PyQt 4.9 but i had this problem with the previous PyQt version as
well, i am using arch x86_64 and python2.7

Regards,
Miguel Angel.



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-02 Thread Mailing List SVR

Il 02/01/2012 13:03, Linos ha scritto:

thanks for test it.

have you tried scrolling the table? i get strange visual problems with the
vertical header when i scroll the table.


yes I tryed and no strange visual effect here with both c++ and python 
version, both seems good,


Nicola



Regards,
Miguel Angel.

El 02/01/12 10:44, Mailing List SVR escribió:

Il 31/12/2011 16:01, Linos ha scritto:

has anyone tried this?

for me the cpp example is identical to the python one (qt 4.7.4, pyqt 4.8.5,
ubuntu oneiric packages)

Nicola


El 28/12/11 18:16, Linos escribió:

Hi,
 after Qt upgrade to 4.8.0 in my machine i have been getting problems with
the
painting of vertical headers in QTableViews with a QSqlQueryModel that refresh
on event (for example after tab change).

I have created a testcase because i wanted to report the bug to Qt bug tracker
but i can't reproduce it in c++ so i have created a testcase in python with the
problem and the equivalent code in c++ that not reproduces the problem, maybe i
am missing something but it seems like a but in PyQt?

I am using now PyQt 4.9 but i had this problem with the previous PyQt version as
well, i am using arch x86_64 and python2.7

Regards,
Miguel Angel.



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Professional IDE

2011-09-07 Thread Mailing List SVR

Il 07/09/2011 15:20, ad...@mbnoimi.net ha scritto:

On 07/09/2011 03:18 م, 机械唯物主义 : linjunhalida wrote:

I use emacs... you can try wing ide:http://wingware.com/
Actually I found eclipse better than wing but both of them don't have 
PyQt integration just like eric.


The only missing thing in eric is good auto completion just like wing 
or eclipse.


you can use pydev to make eclipse a python IDE too:

http://pydev.org/

Nicola



PS
Project management  auto completion are perfect in eclipse.
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog:http://mbnoimi.net


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Debugging in windows

2011-05-19 Thread Mailing List SVR


Il giorno dom, 15/05/2011 alle 00.22 -0400, Luke Campagnola ha scritto:
 Howdy,
 I have just compiled PyQt 4.8.4 in WinXP using MinGW from the Qt SDK.
 I configured both sip and PyQt with --debug turned on (but had to
 modify the makefiles to link against python26 instead of python26_d).
 My problem right now is that these did not produce importable modules
 (for instance, I have QtCore_d.pyd installed instead of QtCore.pyd).
 If I recompile without the debug flag, everything works fine (but I
 get no debugging symbols via GDB). 
 
 
 Am I missing something obvious here? 
 Are there perhaps any hand-holding documents describing how to get
 debuggable pyqt on windows?

I guess such document would be really useful for most people ... I'm
unable to debug pyqt app on windows too 

 
 
 Luke
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QMainWindow bug?

2011-01-21 Thread Mailing List SVR
Hi Erik,

attacched is a small sample of what I'm doing in my app, I have a dialog
that require some time to open, to speed up the things I store it in a
global object and use this global object to reopen the dialog,

this seems to work, I'm reusing the same dialog from different central
widget, some times (I'm unable to reproduce) I see in the logs:

RuntimeError: underlying C/C++ object has been deleted

so I added a try except when I open the dialog, until today noone
reported segfault, what do you think about this usage?

thanks
Nicola

Il giorno ven, 21/01/2011 alle 08.47 +0100, Erik Janssens ha scritto:
 Hi,
 
 I wrote some general documentation around these
 issues, with regard to Camelot development, but
 it might be of use to others as well :
 
 http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/development.html
 
 all remarks/corrections are welcome.
 
 Regards,
 
 Erik
 
 On Thu, 2011-01-20 at 10:22 +0100, Mailing List SVR wrote:
  Ok, in a my pyqt app (I'm still using pyqt-4.7.x), I have a dialog that
  require much time to open so I keep a reference to it in a app global
  variable and I use this reference to reopen the dialog after the first
  time. This seems to work and the dialog open much quicker, however in
  some undeterminated cases I get:
  
  RuntimeError: underlying C/C++ object has been deleted
  
  when I get this error I recreate the dialog and update the global
  reference,
  
  can you please explain the right way to keep a reference in python to a
  qt object?
  
  thanks
  NIcola
  
  
  Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto:
   there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding
   the detection of objects deleted by qt but still referenced in
   python (which is the case here).  in 4.8.1 sip/pyqt tried to
   detect this to avoid segfaults.  this detection however brought
   other issues with it, therefor the detection was turned off again
   in 4.8.2
   
   the solution is not to keep references in python of objects
   owned by qt when they might get deleted.
   
   On Wed, Jan 19, 2011 at 12:36 PM, Mailing List SVR
   li...@svrinformatica.it wrote:
I can confirm the segfault:
   
- linux, kernel 2.6.36
- python 2.7.1
- pyqt 4.8.2
- qt 4.7.1
   
works fine with PySide,
   
Nicola
   
   
Il giorno mer, 19/01/2011 alle 08.36 +0100, Vicent Mas ha scritto:
2011/1/18 Nick Gaens m...@nickgaens.com:
 - Win7 64bit
 - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
 (Intel)] on win32
 - Qt v4.7.0
 - PyQt GPL v4.8.1 for Python v2.6
 Result: no crashes, works like a charm..

   
Hi,
   
I get the crash also on Windows Vista 32bit (again Python 2.6 and PyQt 
4.8.2)
   
Vicent
   
   
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
   
   ___
   PyQt mailing listPyQt@riverbankcomputing.com
   http://www.riverbankcomputing.com/mailman/listinfo/pyqt
  
 
 
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
from PyQt4 import QtGui, QtCore


class AppGlobal(object):
	global_dlg=None

app_global=AppGlobal()	

class TestDialog(QtGui.QDialog):
	def __init__(self,parent=None):
		super(TestDialog,self).__init__(parent)
		self.setWindowTitle('Reference Dialog')
		self.setGeometry(200, 200, 150, 120)
		self.test_button = QtGui.QPushButton('Close dialog', self)
		self.connect(self.test_button, QtCore.SIGNAL('clicked()'),self.accept)
		
	def onClose(self):
		print self.parent()
		if app_global.global_dlg is None:
			print 'keep a dialoog reference in app_global'
			app_global.global_dlg=self
		self.setParent(None)
	
	def accept(self):
		self.onClose()
		QtGui.QDialog.accept(self)
	
	def reject(self):
		self.onClose()
		QtGui.QDialog.reject(self)
	

class TestWidget(QtGui.QWidget):
	def __init__(self, parent=None):
		QtGui.QWidget.__init__(self, parent)
		self.setGeometry(300, 300, 250, 150)
		self.test_button = QtGui.QPushButton('Open dialog', self)
		self.test_button.setGeometry(10, 10, 200, 35)
		self.test_button1 = QtGui.QPushButton('Change widget', self)
		self.test_button1.setGeometry(10, 60, 200, 35)
		self.connect(self.test_button, QtCore.SIGNAL('clicked()'),self.onClick)
		self.connect(self.test_button1, QtCore.SIGNAL('clicked()'),self.onClick1)

	def onClick(self):
		if not app_global.global_dlg:
			print 'new dialog created'
			dlg=TestDialog(self)
			dlg.exec_()
		else:
			try:
print open saved dialog
#app_global.global_dlg.setParent(self)
app_global.global_dlg.exec_()	
			except Exception,e:
print e
app_global.global_dlg=None
dlg=TestDialog(self)
dlg.exec_()
  		
	def onClick1(self):
		#print 'change widget from TestWidget'
		self.parent().setCentralWidget(AnotherWidget())

  
class AnotherWidget(QtGui.QWidget):
	def

Re: [PyQt] QMainWindow bug?

2011-01-21 Thread Mailing List SVR
Il giorno ven, 21/01/2011 alle 22.01 +0100, Erik Janssens ha scritto:
 Hello Nicola,
 
 I'm not sure what happens when you reset the parent of a widget to None,
 (wether it then transfers ownership back to python).

it works

 
 If you get that run-time error, this means that qt deleted the widget, this
 random effect might have been triggered by the garbage collector.
 

I cannot reproduce the error systematically it never happened during my
tests, a customer reported to me this error, I added the try except
statment and noone reported any problem

 you can verify this by disabling the garbage collector and see if
 it still happens :
 
 import gc
 gc.disable()
 
 I'm don't know if this trick with reparenting works, but it looks like
 a good trick to have speedups ??

attacched is an updated sample with a time.sleep in __init__, so when
the dialog is loaded from the cache the difference is noticeable.

if I understand your article
(http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/development.html)
 my sample should not work, I'm setting the parent of a qt object to None, so 
qt should delete it, and I'm keeping a reference to the python object (this 
seems the opposite of what you suggets). Please play with the sample, for 
example you can:

- click on Open dialog, the first time you'll wait about 5 seconds
- when you close the dialog it's parent is setted to None, and the
global object is populated
- click Change widget, and click Open dialog again (from a different
widget), this time the dialog is loaded from the cache
- you can repeat the sequence, or try any other order

this works, but probably it should not work ...

Nicola

 
 Erik
 
 On Fri, Jan 21, 2011 at 10:21 AM, Mailing List SVR
 li...@svrinformatica.it wrote:
  Hi Erik,
 
  attacched is a small sample of what I'm doing in my app, I have a dialog
  that require some time to open, to speed up the things I store it in a
  global object and use this global object to reopen the dialog,
 
  this seems to work, I'm reusing the same dialog from different central
  widget, some times (I'm unable to reproduce) I see in the logs:
 
  RuntimeError: underlying C/C++ object has been deleted
 
  so I added a try except when I open the dialog, until today noone
  reported segfault, what do you think about this usage?
 
  thanks
  Nicola
 
  Il giorno ven, 21/01/2011 alle 08.47 +0100, Erik Janssens ha scritto:
  Hi,
 
  I wrote some general documentation around these
  issues, with regard to Camelot development, but
  it might be of use to others as well :
 
  http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/development.html
 
  all remarks/corrections are welcome.
 
  Regards,
 
  Erik
 
  On Thu, 2011-01-20 at 10:22 +0100, Mailing List SVR wrote:
   Ok, in a my pyqt app (I'm still using pyqt-4.7.x), I have a dialog that
   require much time to open so I keep a reference to it in a app global
   variable and I use this reference to reopen the dialog after the first
   time. This seems to work and the dialog open much quicker, however in
   some undeterminated cases I get:
  
   RuntimeError: underlying C/C++ object has been deleted
  
   when I get this error I recreate the dialog and update the global
   reference,
  
   can you please explain the right way to keep a reference in python to a
   qt object?
  
   thanks
   NIcola
  
  
   Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto:
there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding
the detection of objects deleted by qt but still referenced in
python (which is the case here).  in 4.8.1 sip/pyqt tried to
detect this to avoid segfaults.  this detection however brought
other issues with it, therefor the detection was turned off again
in 4.8.2
   
the solution is not to keep references in python of objects
owned by qt when they might get deleted.
   
On Wed, Jan 19, 2011 at 12:36 PM, Mailing List SVR
li...@svrinformatica.it wrote:
 I can confirm the segfault:

 - linux, kernel 2.6.36
 - python 2.7.1
 - pyqt 4.8.2
 - qt 4.7.1

 works fine with PySide,

 Nicola


 Il giorno mer, 19/01/2011 alle 08.36 +0100, Vicent Mas ha scritto:
 2011/1/18 Nick Gaens m...@nickgaens.com:
  - Win7 64bit
  - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 
  bit
  (Intel)] on win32
  - Qt v4.7.0
  - PyQt GPL v4.8.1 for Python v2.6
  Result: no crashes, works like a charm..
 

 Hi,

 I get the crash also on Windows Vista 32bit (again Python 2.6 and 
 PyQt 4.8.2)

 Vicent


 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http

Re: [PyQt] QMainWindow bug?

2011-01-20 Thread Mailing List SVR
Ok, in a my pyqt app (I'm still using pyqt-4.7.x), I have a dialog that
require much time to open so I keep a reference to it in a app global
variable and I use this reference to reopen the dialog after the first
time. This seems to work and the dialog open much quicker, however in
some undeterminated cases I get:

RuntimeError: underlying C/C++ object has been deleted

when I get this error I recreate the dialog and update the global
reference,

can you please explain the right way to keep a reference in python to a
qt object?

thanks
NIcola


Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto:
 there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding
 the detection of objects deleted by qt but still referenced in
 python (which is the case here).  in 4.8.1 sip/pyqt tried to
 detect this to avoid segfaults.  this detection however brought
 other issues with it, therefor the detection was turned off again
 in 4.8.2
 
 the solution is not to keep references in python of objects
 owned by qt when they might get deleted.
 
 On Wed, Jan 19, 2011 at 12:36 PM, Mailing List SVR
 li...@svrinformatica.it wrote:
  I can confirm the segfault:
 
  - linux, kernel 2.6.36
  - python 2.7.1
  - pyqt 4.8.2
  - qt 4.7.1
 
  works fine with PySide,
 
  Nicola
 
 
  Il giorno mer, 19/01/2011 alle 08.36 +0100, Vicent Mas ha scritto:
  2011/1/18 Nick Gaens m...@nickgaens.com:
   - Win7 64bit
   - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
   (Intel)] on win32
   - Qt v4.7.0
   - PyQt GPL v4.8.1 for Python v2.6
   Result: no crashes, works like a charm..
  
 
  Hi,
 
  I get the crash also on Windows Vista 32bit (again Python 2.6 and PyQt 
  4.8.2)
 
  Vicent
 
 
  ___
  PyQt mailing listPyQt@riverbankcomputing.com
  http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QMainWindow bug?

2011-01-20 Thread Mailing List SVR


Il giorno gio, 20/01/2011 alle 10.57 +0100, Antonio Valentino ha
scritto:
 Hi Nicola,
 
 Il giorno Thu, 20 Jan 2011 10:22:55 +0100
 Mailing List SVR li...@svrinformatica.it ha scritto:
 
  Ok, in a my pyqt app (I'm still using pyqt-4.7.x), I have a dialog
  that require much time to open so I keep a reference to it in a app
  global variable and I use this reference to reopen the dialog after
  the first time. This seems to work and the dialog open much quicker,
  however in some undeterminated cases I get:
  
  RuntimeError: underlying C/C++ object has been deleted
  
  when I get this error I recreate the dialog and update the global
  reference,
  
  can you please explain the right way to keep a reference in python to
  a qt object?
 
 One way could be to explicitly reset the global variable
 
 global_dialog = None
 
 before application shutdown (e.g in QMainWindow.closeEvent)

thanks Antonio,

my problem is not the segfault on shutdown, I want to keep an object in
memory so I can reuse it, the method explained in my previous mail works
99% of the times, sometime I get:

RuntimeError: underlying C/C++ object has been deleted

do you know a way to avoid that qt delete an object (apart keep a
reference to it as explained in my previous mail)?

Nicola

 
 regards
 
 
  thanks
  NIcola
  
  
  Il giorno mer, 19/01/2011 alle 23.47 +0100, Erik Janssens ha scritto:
   there was a change in sip/pyqt from 4.8.1 to 4.8.2 regarding
   the detection of objects deleted by qt but still referenced in
   python (which is the case here).  in 4.8.1 sip/pyqt tried to
   detect this to avoid segfaults.  this detection however brought
   other issues with it, therefor the detection was turned off again
   in 4.8.2
   
   the solution is not to keep references in python of objects
   owned by qt when they might get deleted.
   
   On Wed, Jan 19, 2011 at 12:36 PM, Mailing List SVR
   li...@svrinformatica.it wrote:
I can confirm the segfault:
   
- linux, kernel 2.6.36
- python 2.7.1
- pyqt 4.8.2
- qt 4.7.1
   
works fine with PySide,
   
Nicola
   
   
Il giorno mer, 19/01/2011 alle 08.36 +0100, Vicent Mas ha scritto:
2011/1/18 Nick Gaens m...@nickgaens.com:
 - Win7 64bit
 - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500
 32 bit (Intel)] on win32
 - Qt v4.7.0
 - PyQt GPL v4.8.1 for Python v2.6
 Result: no crashes, works like a charm..

   
Hi,
   
I get the crash also on Windows Vista 32bit (again Python 2.6
and PyQt 4.8.2)
   
Vicent
 
 
 

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QMainWindow bug?

2011-01-19 Thread Mailing List SVR
I can confirm the segfault:

- linux, kernel 2.6.36
- python 2.7.1
- pyqt 4.8.2
- qt 4.7.1

works fine with PySide,

Nicola


Il giorno mer, 19/01/2011 alle 08.36 +0100, Vicent Mas ha scritto:
 2011/1/18 Nick Gaens m...@nickgaens.com:
  - Win7 64bit
  - Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit
  (Intel)] on win32
  - Qt v4.7.0
  - PyQt GPL v4.8.1 for Python v2.6
  Result: no crashes, works like a charm..
 
 
 Hi,
 
 I get the crash also on Windows Vista 32bit (again Python 2.6 and PyQt 4.8.2)
 
 Vicent
 

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Hunting down memory leaks

2010-12-17 Thread Mailing List SVR


Il giorno mar, 14/12/2010 alle 18.02 +0100, Hans Meine ha scritto:
 Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace:
  One of the things I've found in this regard has to do with Python and
  garbage collection.  If the reference count to certain objects does not go
  to zero then the item will not be garbage collected.
  
  Ensure that the objects that you want cleaned up have no references to
  them.  I've found that setting widgets' parents to None and then setting
  that variable to None often does the trick.
  
  Anyone else have tips on garbage collection with PyQt???
 
 I also use sip.delete(obj) or obj.deleteLater() from time to time.
 
 Also I have a large number of helper functions based on the gc module, e.g. 
 the ones below.  These are very useful, use like this:
 
 h1 = gcHistogram()
 ... # some long-running calculations which seem to leak memory
 h2 = gcHistogram()
 diffHists(h1, h2)
 
 This will output the *types* of objects that have been created in the 
 meantime, along with their counts.  Sometimes, this will not help much 
 though, 
 e.g. if you use standard python lists a lot.  (It might make sense to use 
 specialized classes derived from list anyway, no?)
 
 def gcHistogram():
   Returns per-class counts of existing objects.
   result = {}
   for o in gc.get_objects():
   t = type(o)
   count = result.get(t, 0)
   result[t] = count + 1
   return result
 
 def diffHists(h1, h2):
   Prints differences between two results of gcHistogram().
   for k in h1:
   if h1[k] != h2[k]:
   print %s: %d - %d (%s%d) % (
   k, h1[k], h2[k], h2[k]  h1[k] and + or , 
 h2[k] - 
 h1[k])
 

really useful thanks!

Using these functions I found that if I do something like this:

self.ui.lineEdit.mouseReleaseEvent=self

I have to manually do:

self.ui.lineEdit.mouseReleaseEvent=None

to get the widget deleted, this seems a pyqt bug,

Nicola

 HTH,
   Hans
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Segmentation faults

2010-08-06 Thread Mailing List SVR
Il giorno gio, 05/08/2010 alle 03.10 -0400, Luke Campagnola ha scritto: 
 I believe I have run into a class of bugs in PyQt4. I originally found
 that QSpinBox.lineEdit() returns a QLineEdit instance which does not
 maintain its reference count properly after the original QSpinBox is
 deleted. Thus it is possible to either 1) have uncollectable LineEdits
 lingering in memory, or 2) crash the program by accessing the LineEdit
 (see example below). 
 
 
 The same bug also applies to:
  - QAbstractSpinBox.lineEdit
  - QComboBox.lineEdit, 
  - QAbstractScrollArea.horizontalScrollBar
  - QAbstractScrollArea.verticalScrollBar
  - QTreeView.header
  - QSplitter.handle
 
 
 .. and likely many others. In the best case, this bug causes minor
 memory leaks that few people are likely to notice. In the worst case,
 it causes crashes which are very difficult to debug if you don't have
 easy access to debugging symbols (ie using windows binaries). 
 
 
 $ python
  from PyQt4.QtGui import *
  a = QApplication([])
  s = QSpinBox()
  l = s.lineEdit()
  del s
  l.text()
 Segmentation fault

PySide is more forgiving and raise the following error:

RuntimeError: Internal C++ object already deleted.

 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Any examples for qgraphicswebview?

2010-06-01 Thread Mailing List SVR
Hi all,

can someone provide a basic example on how to use qgraphicswebview in pyqt?

thanks
Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Suggestion to get events from a web page

2010-05-21 Thread Mailing List SVR
In data giovedì 20 maggio 2010 23:14:55, Mailing List SVR ha scritto:
:  Hi all,
 
 I need to display a web page in my pyqt application, qwebview make this
 really simple but my interface is without keyboard so I have to show a
 virtual keyboard when the user select an input text or a selectbox or a
 textarea so I need to be notified when a such selection occur in the web
 page, I cannot find any signal that can do this, any advice would be
 really appreciated,
 
 thanks
 Nicola
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Here is the solution:

http://th30z.netsons.org/2009/03/qt-webkit-virtual-keyboard/

Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Suggestion to get events from a web page

2010-05-20 Thread Mailing List SVR
Hi all,

I need to display a web page in my pyqt application, qwebview make this really 
simple but my interface is without keyboard so I have to show a virtual 
keyboard when the user select an input text or a selectbox or a textarea so I 
need to be notified when a such selection occur in the web page, I cannot find 
any signal that can do this, any advice would be really appreciated,

thanks
Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Embedding VLC

2010-03-08 Thread Mailing List SVR
You can also try the vlc python bindings:

http://liris.cnrs.fr/advene/download/python-ctypes/

they work on windows and linux, be warned vlc and the vlc python bindings are 
GPL so I think you have to release any derivated code as gpl too,

Nicola

In data lunedì 1 marzo 2010 04:13:03, jaybstory ha scritto:
:  I've heard about the phonon-vlc-backend which appears to not be available
 yet.  Is this what you are talking about?
 
 Bugzilla from chri...@gmx.de wrote:
  Am Samstag, 27. Februar 2010 schrieb jaybstory:
  I wanted to know if it is possible to embed VLC into a GUI (or to use
  QProcess to somehow open the external application inside a GUI), if so,
  how
  would I go about accomplishing this?
  
  Do you know about phonon-vlc?
  
  http://gitorious.org/phonon/phonon-vlc
  
  -Christoph
  ___
  PyQt mailing listPyQt@riverbankcomputing.com
  http://www.riverbankcomputing.com/mailman/listinfo/pyqt
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] maxVisibleItems and qcombobox

2009-12-01 Thread Mailing List SVR
Hi,

I have a combox with about 15 elements I setted maxVisibleItems to 5 but the 
combo still show all the items on mouse click. I would like to see 5 elements 
and click to see other 5 and so on,

how can I do this?

Is this a bug or maxVisibleItems isn't supposed to do this?

thanks
Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] More than one statusbar

2009-11-26 Thread Mailing List SVR
Hi all,

is it possible to have more than one statusbar in a QMainWindow?

I would like to have to status bar one up and the other down in the 
qmainwindow and I want this status bar remain when I change the central 
widget,

any hints?

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Log viewer file change notification

2009-11-14 Thread Mailing List SVR
You can use pyinotify (http://trac.dbzteam.org/pyinotify) or inotifyx 
(https://launchpad.net/inotifyx) if you cannot use gpl code,

Nicola

In data venerdì 13 novembre 2009 19:14:40, Christian Aubert ha scritto:
:  I'm using the logging module to keep a log instead of messy print
 statements users don't want to see. I set up a log viewer but right now
 users must press an update button to get the latest log file
 displayed. Is there any way to get a file change notification so I can
 update the log display on the fly?
 
 Christian
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Pyqt 4.6- sip 4.9 bug

2009-10-08 Thread Mailing List SVR
Hi,

seems there is a bug with the newest version of  pyqt and sip,

with pyqt-4.5.4 and sip-4.8.2 is possible to override label events as follow:

self.imagelabel.mouseReleaseEvent=self.eventMouseRelease

this snippet does't work with pyqt-4.6 and sip-4.9, the event is never 
triggered,

regards
Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] actual vendorid status

2009-08-26 Thread Mailing List SVR
Hi, 

a simple question here 
http://www.riverbankcomputing.com/software/vendorid/intro I read:

The motivation for the VendorID package was following condition in Trolltech's 
commercial Qt license agreement: Applications may not pass on functionality 
which in any way makes it possible for others to create software with the 
Licensed Software. 

Actually qt is lgpl so is vendoid yet needed to distribute commercial pyqt 
applications? If i buy a pyqt license have I to apply also vendorid or I can 
for example distribute my app as pyo file without no other restriction?

thanks
Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Virtual keyboard widget for pyqt

2009-08-25 Thread Mailing List SVR
Hi,

there is a virtual keyboard widget for touch-screen application for pyqt? 
Something like this:

http://www.qt-apps.org/content/show.php/VirtualKeyboard?content=107388

thanks
SVR
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] undefined symbol typeinfo for QXmlDefaultHandler

2009-08-20 Thread Mailing List SVR
I have the following error:

undefined symbol typeinfo for QXmlDefaultHandler

when from a python shell I do:

from PyQt4.QtXml import *

pyqt is cross compiled for arm, the other modules seems to work fine, 

some hints?

Nicola
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Fade effect a widget on top of another widget

2009-08-19 Thread Mailing List SVR
Thanks,

it is possible to have a short example with code?

In data martedì 18 agosto 2009 18:23:25, Jason H ha scritto:
:  
  That is for a cross fade. You could always fade to empty then fade out.
 
  I would probably do something like that for a cross fade. The fader widget
  appears to do a different kind of fade.
 
 The only difference is it is a fade against a solid color. You could create 
 the Pixmap, repsecting the Palette background color. and use that for 
 intermediate fading/in/out
 
 
 
   
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt