How Far We’ve Come – Pt. 17

On the desktop most of the application looks like this:     One of the many things which is nice about widget based projects and the designer is that we get some really good widgets and can (usually) see what things will look like before we compile. That file chooser is all built in and …

Continue reading ‘How Far We’ve Come – Pt. 17’ »

How Far We’ve Come – Pt. 16

As I pointed out many times in my Qt and databases book, most of the database examples you find online and even in official Qt documentation are shit. This is not my ego talking. They all do everything in the main event loop. Almost all of the cheat by using only a handful of rows …

Continue reading ‘How Far We’ve Come – Pt. 16’ »

How Far We’ve Come – Pt. 15

I need to continue yesterday’s discussion about good architectural design a bit. Particularly the part about not shoving everything into RAM. I see two different kinds of C++ developers on Qt projects. Those who want to be one with the OOP. Every piece of data, including an integer, should be an object derived from the …

Continue reading ‘How Far We’ve Come – Pt. 15’ »

How Far We’ve Come – Pt. 14

If this were one of my geek books, we would spend an inordinate amount of time with me dissecting code in order to teach you something. But, you didn’t pay for this, so I’m only going to speak about one source file. (You really shouldn’t just thieve things on the Internet, you should pay for …

Continue reading ‘How Far We’ve Come – Pt. 14’ »

How Far We’ve Come – Pt. 13

Before we jump straight into the code, we need to talk a bit about the design of this application. When I first started coding up a new version using Qt and SQLite I originally started with the old design. sqlite> select strftime( ‘%Y%m%d’, draw_dt) as ‘drawing date’, no_1, no_2, no_3, no_4, no_5, no_6 from drawings …

Continue reading ‘How Far We’ve Come – Pt. 13’ »