Phil,
On Jan 26, 2011, at 11:48 AM, Phil Thompson wrote:
On Wed, 26 Jan 2011 11:24:28 -0800, Scott Frankel >
wrote:
Hi all,
What's the best way to connect an action group triggered signal? The
following isn't working:
self.connect(self.theActGroup, QtCore.SIGNAL(&quo
Hi all,
What's the best way to connect an action group triggered signal? The
following isn't working:
self.connect(self.theActGroup, QtCore.SIGNAL("triggered(action)"),
self.foo)
I'm adding a QToolButton with mutually exclusive actions to a
QToolBar. I must be missing some
On Aug 23, 2010, at 2:18 PM, Baz Walter wrote:
On 23/08/10 16:11, Scott Frankel wrote:
Please excuse the re-post. I'm at a loss as to why executing a
QSqlRecord object's count() or isEmpty() method results in a bus
error
crash. Suggestions would be greatly appreciated.
i'
Please excuse the re-post. I'm at a loss as to why executing a
QSqlRecord object's count() or isEmpty() method results in a bus error
crash. Suggestions would be greatly appreciated.
Thanks!
Hi all,
Can anyone please help shed light on why methods performed on a
QSqlRecord object w
Hi all,
Can anyone please help shed light on why methods performed on a
QSqlRecord object would cause bus error crashes?
I'm trying to view data before it's written to my database.
Connecting to my table model's beforeUpdate signal provides me with
access to the QSqlRecord for the updat
Hi all,
Is it possible to get the insert &/or update query statement from a
QSqlRelationalTableModel's submitAll() operation?
I'm looking for a way to get the query string from a table model's
submitAll() method when a user invokes it to save data back to the
database. I've found QSqlQu
DB access: http://www.linuxjournal.com/article/9602?page=0,0.
Scott
On May 29, 2010, at 3:12 AM, Colin McPhail wrote:
Hi,
On 28 May 2010, at 23:11, Scott Frankel wrote:
Hi all,
What's the best way to manage multiple database connections in an
application? Specifically, how can I manag
Hi all,
What's the best way to manage multiple database connections in an
application? Specifically, how can I manage which db connection is
used for models, queries, &c.?
The documentation says that multiple connections can be declared with
a unique name for each on calling addDatabas
w, in the tableView. I want to
hide row when the data is an empty string.
I found that I can get the string with
self.currentIndex().data().toString()
so, I suppose that I have to find a way to modify the currentIndex
2010/5/6 Scott Frankel :
On May 6, 2010, at 9:46 AM, Philippe Crave
On May 6, 2010, at 9:46 AM, Philippe Crave wrote:
actually, I just want to loop over the rows.
I do not find a max_row, or an iterator over the rows of a Table.
Take a look at your model's rowCount() and record() methods. I think
you'll want to be iterating over the records in your model,
an you point me to a working version,
i'm tring to learn from it.
It is a cool example to learn how to use thread in PyQt
Thanks a lot!!!
Massimo.
Il giorno 15/apr/2010, alle ore 22.24, Russell Valentine ha scritto:
What about just put this in your for loop. Then the pause/resume
butt
toggles self.paused? That seems good to me.
while(self.paused):
QThread.msleep(100)
On 04/15/10 13:53, Scott Frankel wrote:
Hi all,
What's the best way to pause and resume processing in QThread
objects?
I've built a small test app that sets up a Python os.walk() proc
Hi all,
What's the best way to pause and resume processing in QThread objects?
I've built a small test app that sets up a Python os.walk() process
that I'd like to be able to pause and restart from where it left off.
The documentation on QWaitCondition looks promising, though my app
appe
On Apr 3, 2010, at 5:16 PM, Scott Frankel wrote:
On Apr 2, 2010, at 5:05 PM, Scott Frankel wrote:
I'm hoping to be able to adapt a QSqlRelationalTableModel object to
display only specified item rows directly. Using the view's
setRowHidden() method is proving clunky.
Ap
On Apr 2, 2010, at 5:05 PM, Scott Frankel wrote:
I'm hoping to be able to adapt a QSqlRelationalTableModel object to
display only specified item rows directly. Using the view's
setRowHidden() method is proving clunky.
Apologies in advance for taking up more bandwidth with
On Apr 3, 2010, at 8:42 AM, Phil Thompson wrote:
On Sat, 3 Apr 2010 08:28:07 -0700, Scott Frankel >
wrote:
On Apr 2, 2010, at 5:24 PM, Phil Thompson wrote:
On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel
wrote:
In my attempts so far, my model instance
isn't calling its data(
On Apr 2, 2010, at 5:24 PM, Phil Thompson wrote:
On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel >
wrote:
In my attempts so far, my model instance
isn't calling its data() method. (See attached.)
Because you've added a data() method to your QWidget subclass. You
need a
Is it possible to override the data() method of a
QSqlRelationalTableModel? In my attempts so far, my model instance
isn't calling its data() method. (See attached.)
I'm hoping to be able to adapt a QSqlRelationalTableModel object to
display only specified item rows directly. Using the
witch gears and look into multi-threading my data model
loads and select() statements.
Thanks for the suggestions! Much appreciated.
Scott
Russell Valentine
On 03/19/10 15:29, Scott Frankel wrote:
On Mar 19, 2010, at 12:24 PM, Russell Valentine wrote:
Perhaps time each part to see
On Mar 19, 2010, at 12:59 PM, Matt Newell wrote:
On Friday 19 March 2010 12:06:12 Scott Frankel wrote:
Hi all,
Would anyone have any suggestions for improving QSqlDatabase PSQL
connection performance?
The Qt docs refer to PSQL connection options and demonstrate the
"requiressl=1&quo
s"
Is it really the initial connection that takes a long time to get,
or is
it something else on that remote machine. work_mem has nothing to do
with making a connection for example.
On 03/19/10 14:06, Scott Frankel wrote:
Hi all,
Would anyone have any suggestions for improving QSq
ds PSQL errors.
I've optimized my working code further. Running from a local data
set, launch times are down to 4 seconds. Running from an identical
data set hosted remotely, my application launches in 40+ seconds!
Thanks in advance!
Scott
On Mar 16, 2010, at 9:09 PM, Scott Fran
Hi all,
Is there a buffer size or similar optimization parameter that can be
set for QSqlDatabase PSQL connections? The docs refer to PostgreSQL
"options" without specifying what they may be.
I have a PG database cluster of about 7MB, spread over a couple dozen
tables. Locally, it take
rows that are selected
in the first QTableView (A).
How do I achieve this? Ie, each selected row in view (A) should be
displayed in view (B).
Best regards,
Mads
--
+-+
| Mads Ipsen, Scientific developer
On Mar 2, 2010, at 11:56 AM, wrote:
Your code is not going to work. You are trying to connect to a
signal that has already been emitted. For this to work, you need to
manually call emitSignal AFTER you create your Foo() Dialog.
Of course. Thanks!
__
Hi all,
How does one connect dialogs to a parent object to receive any signals
they may emit?
This doesn't work:
dialog = Foo()
self.connect(dialog, QtCore.SIGNAL("foo(string)"),
self.printString)
The attached code sample creates a dialog that emits a signal
Hi all,
Are there any other ways to specify a table model's section position,
other than by using the db schema's column order?
I'm referring to methods like:
bool QSqlQueryModel::setHeaderData ( int section, Qt::Orientation
orientation, const QVariant & value, int role = Qt::EditRole )
On Nov 14, 2009, at 12:07 PM, Hans-Peter Jansen wrote:
On Saturday 14 November 2009, 19:35:28 Scott Frankel wrote:
Hi,
I've put together a simple test app that demonstrates the problem I'm
having with QSettings.value() INT arguments on Windows.
An invalid argument type error caus
f.dbHost: ", self.dbHost
print "self.dbPort: ", self.dbPort
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
mainwindow = MainWindow()
mainwindow.show()
sys.exit(app.exec_())
On Nov 10, 2009, at 1:12 AM, Scott Frankel wrote:
Hi,
I'm get
Hi,
I'm getting a fatal error from the following QSettings line on
Windows. But on Mac OSX, the same code runs without error. The exe
log file says that argument 2 of settings.value() has an invalid
type. That'd be my int.
The first line of the method reads a string value. That appea
operating system, thus my code sample didn't "silently fail."
Thanks for the links!
Scott
On Oct 23, 2009, at 10:07 AM, Baz Walter wrote:
Scott Frankel wrote:
> Very strange. I've double-checked that the code I emailed does
not work
for me. I'm on OSX 10.5.8, Q
On Oct 22, 2009, at 2:55 PM, Baz Walter wrote:
Scott Frankel wrote:
On Oct 22, 2009, at 10:57 AM, Baz Walter wrote:
Scott Frankel wrote:
Does a QMainWindow, or an app based on, one contain a list of
default action names?
I'm trying to add an action called "Settings"
On Oct 22, 2009, at 10:57 AM, Baz Walter wrote:Scott Frankel wrote:Does a QMainWindow, or an app based on, one contain a list of default action names?I'm trying to add an action called "Settings" to my app. The addAction() method silently fails unless I rename or misspell the action, like "Foo" or
Hi,
Does a QMainWindow, or an app based on, one contain a list of default
action names?
I'm trying to add an action called "Settings" to my app. The
addAction() method silently fails unless I rename or misspell the
action, like "Foo" or "Setttings."
Actions named "Settings", "Preferen
On Oct 13, 2009, at 1:35 PM, Hans-Peter Jansen wrote:
Am Dienstag 13 Oktober 2009 schrieb Scott Frankel:
Hi Scott, you might try the pyinstaller svn version. It did quite some
progress lately. There might still some issues left with plugins,
but they
can be resolved easily.
My mac
Hi David,
Thanks for considering my question.
On Oct 5, 2009, at 5:58 PM, David Boddie wrote:
On Thu, 1 Oct 2009 23:04:49 -0700, Scott Frankel wrote:
Can a qt.conf file be used to specify an images directory using the
QLibraryInfo.LibraryLocation enum?
Maybe you could use the Data entry
Solved. Turned out to be another case of dependent libs in the wrong
location of my osx package build.
On Oct 1, 2009, at 11:04 PM, Scott Frankel wrote:
Hi,
Can a qt.conf file be used to specify an images directory using the
QLibraryInfo.LibraryLocation enum?
I wonder if I
Hi,
Can a qt.conf file be used to specify an images directory using the
QLibraryInfo.LibraryLocation enum?
I wonder if I'm barking up the right tree. My app displays images
that have been compiled as resources (.png, .tif, or .jpg) without
issue on Fedora and Windows. But it doesn't di
Hello,
What's the best way to explicitly set row and column sizes for a
QTableView?
I'm trying to use an QSqlRelationalDelegate, but print statements show
that its sizeHint() method is never called. The paint() method is.
If I set the editable model methods, I lose the FK comboBoxes.
On Sep 4, 2009, at 1:23 PM, Mario Daniel Carugno wrote:
Hi list, i'm coding my first PyQt4-Sql application, and i can't
understand a strange behavior.
I'll write a snippet of code with an erroneous Sql syntax, and i hope
then to catch the error
text and display it, in order to know what happene
Is there a way to have the QSqlTableModel.setFilter() method accept
"where exists" clauses?
According to the documentation, the setFilter method sets a "where"
clause without the "where" keyword. I have a situation in which
setting a "where exists" clause would be the ideal solution.
T
elative to branch parent
NEW>>>print "parent", index.parent()
Cheers - jamie
On Thu, Aug 27, 2009 at 8:46 AM, Scott
Frankel wrote:
Hello,
How would one identify the parent of a selected item in a
QTreeWidget?
I have a tree with several branches. Each branch contains
Hello,
How would one identify the parent of a selected item in a QTreeWidget?
I have a tree with several branches. Each branch contains leaves with
the same names. (See attached sample code.) I'd like to be able to
identify that the leave item selected, say "Bbbb," was picked from
bran
Hello,
Pardon the cross-post and tangential subject matter. My PyQt-QPSQL
app dies on OSX, yielding the following error: "Cannot move to target
thread." Linux and Windows builds behave properly. I've rebuilt my
macports environment from scratch, googled myself silly, and poked and
pr
Hello,
What's the proper way to set default values for a relational table
model when adding a new row?
The documentation for setData() says that for relational columns, the
value must be the index, not the display value. Yet when I do this,
the table view displays the numeral rather tha
Hello,
How can I view the last query submitted to an QSqlRelationalTableModel
instance?
I'm trying to debug a data-widget mapped form's submitAll() that is
not storing one of it's mapped members.
I've made numerous stabs at things like:
theQuery = QtSql.QSqlQueryModel.qu
Scott
Doug.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Scott Frankel
President/VFX Supervisor
Circle-S Studios
www.circlesfx.com
510-339-7477 (o)
510-332-29
Hello,
What's the proper way to use QTreeWidget's itemAt() method? I'm
passing incrementing int values to it, yet it only returns the tree's
root item. eg:
for ii in range(self.treeRowCount):
item = self.theTree.itemAt(0, ii)
yields:
ii:
Hello,
Is there a way to specify a default value for a Data Widget Mapper if
a user leaves a mapped field empty? The mapper appears to ignore the
db schema's default declarations. Ideally, I'd like to insert Null.
Something analogous to this:
test=# INSERT INTO gear (name, ad
Thanks for sharing the tutorial. In my case, it's quite timely.Would you have any suggestions for including sqldriver support in an py2app project? I still have not gotten that to work and haven't found relevant info in my searches. (Reference my email to the list: "QPSQL and py2app" on 2009-09
Hello,
What's the best way to declare sqldrivers in a py2app setup.py file?
I'm in the throes of building my app for OSX, using py2ap for the
first time. One of the issues I'm still facing is how to include
PostgreSQL support and the QPSQL driver in the build process. I'm
building using
Hello David & Darryl,
On Jun 3, 2009, at 7:22 AM, dbod...@trolltech.com wrote:
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
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?"My searches are coming up empty.Thanks in advance!ScottBegin forwarde
How does one set an app's About (help) menu to display the app's name,
rather than "Python."
In addition, I'd like to have the menu's aboutAction item and the
exitAction item display my app name as well. They currently display
"About Python" and "Quit Python," respectively.
Interesting
...@riverbankcomputing.com] On Behalf Of Scott
Frankel
Sent: Thursday, May 14, 2009 9:02 PM
To: pyqt@riverbankcomputing.com
Subject: [PyQt] string printing question
How does one convert from QString and QBytArray values to plain ascii
strings for printing?
I would like to print plain ascii text to
How does one convert from QString and QBytArray values to plain ascii
strings for printing?
I would like to print plain ascii text to a file, based on values I
glean from QLineEdit and QDateEdit fields. eg:
self.theLineEdit = QtGui.QLineEdit()
self.theDateEdit = QtGui.Q
Hello,
Is there a way to test for SQL table ID numbers in an
QSqlRelationalDelegate.paint() method?
The attached example app paints a background color on specific rows of
a QTableView, by overriding an QSqlRelationalDelegate.paint() method.
I pass the row numbers to paint() in a list th
After reading the documentation and working through example code, I'm
still left with a number of questions regarding how to add, close, and
remove databases. Although my app appears to be working properly, I'm
getting an error msg that I'd like to understand and clean up:
QSqlDatabaseP
Hello,
Does the following message ring any bells?
Unable to free statement: connection pointer is NULL
I seem to be getting it sporadically and it appears to prevent entries
to be written to my database. I've searched the Qt, PyQt, and
PostgreSQL sites. Only references I found add
On Dec 1, 2008, at 10:51 PM, Milan Hemžal wrote:
hi,
i'm learning PyQt and cannot find how create:
a=["1Test1","2Test1","3Test1","4Test1","5Test1"]
def __init__(self):
QtGui.QDialog.__init__(self)
app.connect(self.lv_find,QtCore.SIGNAL("textEdited ( const
QString &
)"),sel
M, Andreas Pakulat wrote:
On 19.11.08 12:56:59, Scott Frankel wrote:
Hello,
What's the proper way to identify which row of a QTableView
instance a
user may have selected?
Pouring through the docs, and web searches, I think I've gotten
close by
listening for signals from a
Hello,
What's the proper way to identify which row of a QTableView instance a
user may have selected?
Pouring through the docs, and web searches, I think I've gotten close
by listening for signals from a QItemSelectionModel instance. I'm
still missing something though, as my implementat
I've just upgraded PyQt & Qt versions and took the opportunity to
document the process. While there's no substitute for the detailed
build and installation instructions that come with each package in
their README files, I find that a simple list is a handy companion.
To that end, and to
Hello,
What's the proper way to perform sql SELECT statements to populate a
table model, when the statement is more complex than select(),
filters, and order clauses can handle?
According to the Qt documentation, QSqlTableModel.setQuery should
"normally" not be called on a QSqlTableMode
Doug Bell wrote:
Scott Frankel wrote:
Is there a flag, property, or hint that can be invoked on a QDialog
to
have it display its window's dismiss/minimize/maximize buttons?
setWindowFlags(QtCore.Qt.Window)
(inherited from QWidget)
Doug.
___
PyQt
Hello,
Is there a flag, property, or hint that can be invoked on a QDialog to
have it display its window's dismiss/minimize/maximize buttons?
Thanks
Scott
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com
Hello,
If anyone has an idea on how to resolve the buggy delegate behavior I
mention below, I'd great appreciate it!
Thanks!
Scott
On Sep 9, 2008, at 10:03 AM, Scott Frankel wrote:
Hello,
Looking at documentation for the QSqlRelationalDelegate class, I've
hacked my way
editor,
model,
index)
On Sep 8, 2008, at 9:56 PM, Scott Frankel wrote:
Hello,
Can anyone point me to documentation &/or examples for setting
pixmaps in a table view that gets its data from a table model?
I h
Hello,
Can anyone point me to documentation &/or examples for setting pixmaps
in a table view that gets its data from a table model?
I have a table view I populate from a QSqlRelationalTableModel
instance. One of the model's data fields is an absolute path to small
thumbnail images on d
x27;ll dig through the pg list archives for any references to this
problem.
Thanks!
Scott
On Sep 1, 2008, at 11:41 PM, simone wrote:
Scott Frankel ha scritto:
Am I missing something obvious? I've tried to peek inside using
queryModel.lastError(), but it's returning a memor
Hi,
I have a form in which I use a QDataWidgetMapper object. When I try
to submit values from the form back to the DB, no data gets written.
However, mapping field values from my DB to the widgets on the form
behaves flawlessly.
(See attached source code file. The Postgresql schema fo
---
self.connect(self.searchList, QtCore.SIGNAL("itemSelectionChanged()"), self.searchItem)
self.connect(self.yesButton, QtCore.SIGNAL("clicked()"), self.yes)
self.connect(self.noButton, QtCore.SIGNAL("clicked()"), self.no)
# methods
#
def yes(self):
print "yes() ..."
d
Hello,
I'm having trouble getting checkboxes to work properly when I use a
sub-classed QDirModel and CheckStateRole in data(). The app's
checkboxes don't appear to respond to mouse-clicks. (Although their
states are changing, as I've verified in the model.)
If anyone has a moment to ex
Andreas
--
You will be married within a year, and divorced within two.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Scott Frankel
President/VFX Supervisor
Circle-S Studios
510-339
gain)! Still wrapping my head around MVC tree
widgets.
Scott
On Jul 19, 2008, at 6:19 PM, Scott Frankel wrote:
Hello,
How does one allow the fields of a tree to be editable?
I've read that items of a tree widget are not editable by default.
By setting setEditTriggers(), one
Hello,
How does one allow the fields of a tree to be editable?
I've read that items of a tree widget are not editable by default.
By setting setEditTriggers(), one can control editability. That gets
set on the view, right? I've got a pure model that the view gets set
to. Is there som
On Jul 14, 2008, at 8:02 AM, simone wrote:
Scott Frankel ha scritto:
I've seen the subclassed model's internal select statement, using
model.selectStatement(). I'm hoping to not have to re-implement
that mess by hand in a hundred custom queries ;)
Have you tried,
Hello,
Is it possible to specify the (Postgre)SQL keyword "ONLY" when
subclassing QSqlRelationTableModel?
My db schema currently uses a mechanism that requires that my select
statements declare "ONLY" in order to return valid records. eg:
SELECT * FROM ONLY foo;
I've seen the s
self
.emit(QtCore.SIGNAL("dataChanged(QtCore.QModelIndex,QModelIndex)"),
index, index)
return True
return QtGui.QDirModel.setData(self, index, value, role)
On Jul 10, 2008, at 2:39 PM, Scott Frankel wrote:
Fabulous!
On Jul 10, 2008, at 2
Fabulous!
On Jul 10, 2008, at 2:08 PM, Andreas Pakulat wrote:
On 10.07.08 11:46:36, Scott Frankel wrote:
Right. Thanks for pointing out that I still need to explicitly pass
"self."
I'm still not getting checkboxes displayed in the tree widget,
though. I
believe the pr
es[self.fileInfo(index).absoluteFilePath()]
# <-- problem???
return QtGui.QDirModel.data(self, index, role)
Thanks in advance for your suggestions!
Scott
On Jul 9, 2008, at 11:36 PM, Phil Thompson wrote:
On Wed, 9 Jul 2008 22:39:27 -0700, Scott Frankel <[EMAIL PROTECTED]
&g
Hello,
I just joined this list and am new to PyQt (and Qt). I've scanned the
archives, but I'm not sure even what I'm looking for to answer my
question.
I'm looking over some C++ code, trying to rewrite it in Python. (My
Spanish is much better than my C++!) I'm sub-classing and extend
82 matches
Mail list logo