[PyQt] [SIP]MD5 openssl

2011-06-29 Thread Jarosław Białas
Hello Recently I tried to use my c++ library in Python using SIP. In SIP configuration file I added some extra libraries like QtGui,fftw3 and ssl. Compilation and linking pass without any warnings or errors: g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-29 Thread Nathan Weston
from PyQt4.QtCore import * from PyQt4.QtGui import * import sys class Foo(QLineEdit): def keyPressEvent(self, event): print 'Foo keyPress', event.key(); sys.stdout.flush() QLineEdit.keyPressEvent(self, event) app = QApplication([]) window = QMainWindow() f = Foo()

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-29 Thread Baz Walter
On 29/06/11 18:21, Nathan Weston wrote: On 6/29/2011 1:07 PM, Baz Walter wrote: as was suggested earlier in this thread, if the line-edit doesn't have the keyboard focus, it can't trigger its own shortcuts. if it *does* have the focus, but the shortcut sequence is not one it handles, the

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-29 Thread Nathan Weston
On 6/29/2011 1:32 PM, Baz Walter wrote: On 29/06/11 18:21, Nathan Weston wrote: On 6/29/2011 1:07 PM, Baz Walter wrote: as was suggested earlier in this thread, if the line-edit doesn't have the keyboard focus, it can't trigger its own shortcuts. if it *does* have the focus, but the shortcut

[PyQt] selecting an item in qtreeview

2011-06-29 Thread Jason Rahm
When using qtreewidget, I can use the itemClicked method to then call a def: self.treeWidget_iRulesList.itemClicked.connect(self.displayRule) However, I hit a wall in trying to pass data around this way, so I watched some tutorials on how to set up a model view and abstract the data from the

Re: [PyQt] selecting an item in qtreeview

2011-06-29 Thread Jason Rahm
Sorry, forgot to include specs: PyQt version is 4.7, python is 2.7.1. From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On Behalf Of Jason Rahm Sent: Wednesday, June 29, 2011 3:48 PM To: pyqt@riverbankcomputing.com Subject: [PyQt] selecting an item in

Re: [PyQt] QLineEdit vs. menu keyboard shortcuts

2011-06-29 Thread Baz Walter
On 29/06/11 18:57, Nathan Weston wrote: On 6/29/2011 1:32 PM, Baz Walter wrote: going back to your earlier example of dragging in the line-edit to change its value: all you need to do is clearFocus() when the drag starts and setFocus() when the drag ends. that way, whilst the drag is in

Re: [PyQt] selecting an item in qtreeview

2011-06-29 Thread Paul Du Bois
I use QTreeView's selectionChanged signal. But you should also look at QAbstractItemView's signals; it has many for you to choose from: activated, clicked, doubleClicked, entered, pressed, ... p From: pyqt-boun...@riverbankcomputing.com [mailto:pyqt-boun...@riverbankcomputing.com] On