Re: [Interest] QSqlDatabase segfault - me or Qt5?

2013-03-04 Thread Mark Summerfield
k. I did a cut down version to show you but that doesn't segfault, so clearly the error is in my own code. Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Go" - ISBN 03217746

[Interest] QSqlDatabase segfault - me or Qt5?

2013-03-01 Thread Mark Summerfield
void Database::~Database() { if (QSqlDatabase::contains(m_cname)) { { QSqlDatabase db = QSqlDatabase::database(m_cname); db.close(); } QSqlDatabase::removeDatabase(m_cname); } } Any suggestions as to what I'm doing wrong? Thanks! -- Mark Su

Re: [Interest] QML Canvas: bug or programmer error?

2013-02-12 Thread Mark Summerfield
ctx.fill(); >ctx.restore(); >} > } > > And it should work fine. Yes, it does. Thanks for spotting my silly mistake:-) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Go" - ISBN 0321

[Interest] QML Canvas: bug or programmer error?

2013-02-12 Thread Mark Summerfield
ngles even if you enlarge the window, and the yellow triangle is drawn incorrectly. I am unfamiliar with the JavaScript Canvas, so perhaps I am making a mistake? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and con

Re: [Interest] QML Runtime

2013-02-01 Thread Mark Summerfield
On Wed, 30 Jan 2013 09:11:59 -0800 Alan Alpert <4163654...@gmail.com> wrote: > On Wed, Jan 30, 2013 at 1:24 AM, Mark Summerfield > wrote: > > Hi, > > > > I noticed that last month there was a discussion on the dev mailing > > list about creating a qml runtime

Re: [Interest] QML window icon

2013-02-01 Thread Mark Summerfield
Hi Samuel, On Thu, 31 Jan 2013 13:38:22 +0100 Samuel Rødal wrote: > On 01/29/2013 01:42 PM, Mark Summerfield wrote: > > Hi, > > > > I am trying to create a "pure" QML program, so may main.cpp is simply: > > > > #include > > #include &g

[Interest] Direction of Qt [Was: Re: QML Runtime]

2013-02-01 Thread Mark Summerfield
they want rapid development & are willing to resolve any efficiency problems by dropping down to C++ when necessary. Is this where Qt is headed? Or will the Qt devs "hold the line" and insist on the need for C++? FWIW I don't have any axe to grind either way, I just want to k

[Interest] QML Runtime

2013-01-30 Thread Mark Summerfield
qsTr()? - Would this mean that QML would be able to access all or most of the Qt C++ APIs (e.g., QFile, etc.)? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Rapid GUI Programming with Python and Qt" - ISBN

Re: [Interest] QML window icon

2013-01-30 Thread Mark Summerfield
e that for most QML types the color property is really the background color; but for Text it is the foreground color. This seems a bit inconsistent but I guess is too late to change. Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy

[Interest] QML window icon

2013-01-29 Thread Mark Summerfield
application's icon. (I know I could use QApplication, but I am trying to avoid using QWidget.) Is it possible to set an application icon, and if so, how? Thanks! -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Advanced Q

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread Mark Summerfield
client can emit a signal thats recevied in a slot on a server and vice versa. > > - An API for reading and writing .gz, .zip, and .tar.gz files. > QtIOCompressor is not enough? I think it needs a bit more work. And doesn't support .tar. -- Mark Summerfield, Qtrac Ltd, w

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread Mark Summerfield
On Thu, 16 Aug 2012 13:28:25 +0100 Richard Moore wrote: > On 16 August 2012 13:12, Mark Summerfield wrote: > > Hi Thiago, > > > > On Thu, 16 Aug 2012 13:07:08 +0200 > > Thiago Macieira wrote: > >> On quinta-feira, 16 de agosto de 2012 10.54.30, Mark Summerf

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread Mark Summerfield
Hi Thiago, On Thu, 16 Aug 2012 13:07:08 +0200 Thiago Macieira wrote: > On quinta-feira, 16 de agosto de 2012 10.54.30, Mark Summerfield wrote: > > Hi, > > > > I hope that Digia proves to be a good steward of Qt---for Qt/Desktop > > users as well as for Qt/Mobile users

[Interest] Qt5 - my hopes for when the dust settles...

2012-08-16 Thread Mark Summerfield
dvanced Qt Programming"'s epiloge. -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Advanced Qt Programming" - ISBN 0321635906 http://www.qtrac.eu/aqpbook.html ___ Int

Re: [Interest] query about QT textbooks

2012-04-12 Thread Mark Summerfield
hoice, but right now it seems a bit under-documented, and requires C++ programming which makes it too difficult. So I think that the easiest route into cross-platform GUI programming is to learn Python (ideally Python 3), and then learn PyQt or PySide for GUI programmi