Re: [PyQt] QtCore.QAbstractItemModel.beginMoveRows missing in pyqt 4.7.3?

2012-11-27 Thread Jake Richards
Ahhh... I apologize, I completely forgot about that. My version is built against qt version '4.5.3' and that would explain the missing functions. Thank you! On Tue, Nov 27, 2012 at 3:56 PM, Andreas Pakulat wrote: > Hi, > > On Tue, Nov 27, 2012 at 9:39 PM, Jake Richard

[PyQt] QtCore.QAbstractItemModel.beginMoveRows missing in pyqt 4.7.3?

2012-11-27 Thread Jake Richards
Hello: At work, we've got pyqt 4.7.3 installed on our linux boxes. While trying to subclass a QAbstractItemModel, I've found that it doesn't seem to have a beginMoveRows or endMoveRows. Here is some terminal output: >>> QtCore.PYQT_VERSION_STR '4.7.3' >>> QtCore.QAbstractItemModel.beginMoveRow

[PyQt] Always show a QLineEdit as QItemDelegate

2012-04-26 Thread Jake Richards
Hello: I've got a QTreeView that uses a QLineEdit as a QItemDelegate for one of it's columns. The problem is that I want to display the QLineEdit all the time, not just when the user double clicks and starts editing. Am I using the wrong approach to accomplish this? I was using a QTreeWidget w

[PyQt] Debugging an ICE error

2009-01-28 Thread Jake Richards
Hello: In one of my scripts, I am receiving this error as soon as my .show() is called: ICE default IO error handler doing an exit(), pid = 10616, errno = 32 Unfortunately, no line numbers or python/pyqt error is mentioned so I don't really know where to begin looking for the problem. I've goo

[PyQt] Drawing a selection region in qgraphicsscene

2008-10-26 Thread Jake Richards
Hello: I'm trying to draw a semi-transparent selection rectangle in a qgraphicsscene/view but need a little help. I'm pretty sure I can figure out how to handle the mouse events for it, but wasn't sure what methods were best to draw a rectangle on screen displaying the current selection rectangl

[PyQt] QCheckBox in a QTreeWidget

2008-09-05 Thread Jake Richards
Hello: I've done a bit of googling and looked at the docs but haven't seen an example of how to place a checkbox (or other widgets) into a QTreeWidget. Does anyone have a small sample of code they can share that shows how to insert a widget such as a QCheckbox into either a QTree or QList? Thank

[PyQt] Selected text color of QTreeWidgetItem

2008-07-08 Thread Jake Richards
Hello: Is there any way to set the highlighted text color of QTreeWidgetItems? Using setColor or setForeground, it only sets the color of the non-highlighted text. QTreeWidgetItems don't seem to have a setPalette call but the QTreeWidget does. The problem with setting the palette on the QTreeWi

[PyQt] Copying to QClipboard

2008-06-19 Thread Jake Richards
Hello: I am having a little trouble with the QClipboard in linux. I seem to be able to read from the clipboard, but am unable to write to it. Using the code below, I get what is currently hilighted and print it out, then try to set the clipboard, but when I try to paste (using middle mouse butt

[PyQt] Selection border in qtreewidget

2008-06-16 Thread Jake Richards
Hello: I apologize if this is a very simple fix, but I can't seem to find it in the docs. But, when I select something in a qtreewidget, it draws a stippled box around the current item only in the column that the mouse is over. Is there any way to manipulate or change the way this stippled box

[PyQt] Drag from listView to a lineEdit

2008-05-09 Thread Jake Richards
Hello: I've got a pretty simple listviewWidget with 1 column. I'd like to be able to drag items from the listView over to a qlineEdit and paste the text that is in the column. I've set up a dropEvent for my QLineEdit and it appears to be triggered, but I don't know how to get the data from the

[PyQt] Screenshots in linux

2008-05-05 Thread Jake Richards
Hello: Does anyone have any idea how I might select a region of my desktop and then take a screen grab of it? The screenshot example shows me how to grab the snapshot, but the hard part (at least for me) is changing my mouse cursor to some crosshairs and drawing a region on the desktop that I'd

[PyQt] Simple Draw/Erase on image

2008-04-30 Thread Jake Richards
Hello: I am looking to write just a simple drawing program that would load an image, and then allow me to draw and erase on top of it. I looked at the scribble example and it has basically everything I need except the ability to erase any marks I've made over the source image. What would be the

[PyQt] set Vertical Offset in a treeview

2008-02-26 Thread Jake Richards
Hello: I am trying to basically bookmark a spot in a tree view and then return to it later. For example, say I'm looking about 1/3 the way down a large tree, I want to set a bookmark so if I scroll way down to the bottom of the tree with the scrollbars, I can quickly go back to where I was. I s

Re: [PyQt] Wacom tablet support

2008-02-07 Thread Jake Richards
On Tuesday 05 February 2008, Jake Richards wrote: > Hello: > I'm a little new to python and pyqt so please forgive any naive questions > I might have :) But, what I am attempting to do is simply have my wacom > tablet work similarly to my mouse in a pyqt application. It ap

[PyQt] Wacom tablet support

2008-02-05 Thread Jake Richards
Hello: I'm a little new to python and pyqt so please forgive any naive questions I might have :) But, what I am attempting to do is simply have my wacom tablet work similarly to my mouse in a pyqt application. It appears that left clicks, right clicks and tapping on the tablet all work fine, bu

[PyQt] Contextmenu in a QTreeWidget

2007-11-27 Thread Jake Richards
Is there a better way of creating a contextMenu (a small menu when you right click) inside a QTreeWidget than setting the setContextMenuPolicy? This is what I currently do: self.treeView = QTreeWidget() self.treeView.setContextMenuPolicy(Qt.CustomContextMenu) self.connect(self.treeView,SIGNAL('cu