Re: [Interest] QSqlDatabase

2013-05-06 Thread Karl Ruetz
Did you check QSqlDatabase::lastError()? Might give you a clue. I'd also check any logs generated by the DBMS to see if a table has become corrupted or some such thing. Karl On 2013-05-06 13:00, Duane wrote: > Why would bool QSqlDatabase::transaction () > return false? I have a system that

Re: [Interest] QSqlDatabase

2013-05-06 Thread Constantin Makshin
It's driver-dependent. You might want to check what QSqlDatabase::lastError() returns or look at the code of the driver you use, find the function/query used to begin a transaction and read the actual library/RDBMS documentation. On May 6, 2013 11:00 PM, "Duane" wrote: > Why would bool QSqlDataba

[Interest] QSqlDatabase

2013-05-06 Thread Duane
Why would bool QSqlDatabase::transaction () return false? I have a system that has been running for years and recently, intermittently calls to this function have been failing. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.o

Re: [Interest] Replacing QPlainTextEdit standard shortcuts

2013-05-06 Thread John Weeks
On 05-May-2013, at 10:18 PM, Wilhelm wrote: > Looking for a solution I ended overwriting QPlainTextEdit::keyPressEvent(), > but I think this is the wrong way? That's what we do. Actually, to be precise, we handle key press events in an evenFilter function in the widget that contains our QPlain

[Interest] Implementation of accelerated rendering of Media in QtWebKit

2013-05-06 Thread Luca Carlon
Hi! I would like to reimplement the MediaPlayerPrivateQt class in QtWebKit in Qt 5.0.2 to use hardware acceleration for rendering video on Raspberry Pi (I got some info from here: https://bugs.webkit.org/show_bug.cgi?id=86410). I suppose that by returning true from virtual bool MediaPlayerPriv

Re: [Interest] QtQuick2 image rendering and custom shader overhead

2013-05-06 Thread Preet
> Using ShaderEffectSource or "Item.layer: true" does mean going through an > FBO. Using ShaderEffect alone or with a plain Image element can be almost > the same as using a plain Image element. I say "can" as the content of the > shader greatly impacts the resulting performance. > > If you do: > >

Re: [Interest] Qml Window: handling close events?

2013-05-06 Thread Josh Faust
> onVisibleChanged or onVisibilityChanged perhaps? But it happens after the > window is already closed, so you can do some auto-saving of data for > example, but it's a bit late to pop up a FileDialog to prompt the user > where to save (the FileDialog would have no visible parent window). > Other

Re: [Interest] Qml Window: handling close events?

2013-05-06 Thread Rutledge Shawn
On 4 May 2013, at 3:54 AM, Josh Faust wrote: > There doesn't appear to be any way of handling Window close events in QtQuick > (nor, now that I look at it, in QWindow). Am I missing something obvious? onVisibleChanged or onVisibilityChanged perhaps? But it happens after the window is already

Re: [Interest] [Development] Qt 5 connect to static function: Suggestion for new overload.

2013-05-06 Thread Björn Piltz
Thiago, thanks for the patch! As you've noted in the comments to the patch yourself, it doesn't quite work. I also would understand if you're reluctant to add changes to such a central part of Qt. The new templated connect already has a tendency to produce verbose and noisy error messages if you mi

Re: [Interest] Qt State Machine Framework C++

2013-05-06 Thread André Somers
Op 5-5-2013 15:52, Sean Harmer schreef: On 05/05/2013 13:54, Antonio wrote: Thanks for replying. I Will work on it. Please, if someday it is Going to Be deprecated, would be nice to know that. There is no reason at all to think it will be deprecated. It is a nice self-contained framework t

Re: [Interest] QtQuick2 image rendering and custom shader overhead

2013-05-06 Thread Sean Harmer
On Monday 06 May 2013 06:39:06 Sletta Gunnar wrote: > On May 5, 2013, at 11:47 AM, Sean Harmer wrote: > > On 04/05/2013 19:30, Preet wrote: > >> Hi, > > ... > > >> 2. > >> I'd like to use ShaderEffects to apply a somewhat trivial shader to most > >> of the images in my application. The images ar