Raspberry Qt – Refresh

This post is more for me than you. A combination of client wanting me to do some QML stuff and having done too many horrible things to my desktop set me up for a wipe and re-install of Ubuntu 16.04. NOTE: I wasted all of Sunday with various crashes and being unable to boot. And …

Continue reading ‘Raspberry Qt – Refresh’ »

C++ 11 and Qt — Part 5 Constructor Initializer List Religion

Okay, we are going to cover this one last time. If you are new to C++ programming you probably don’t know the doo-doo storm I kicked off bringing the subject up earlier in this series of posts. There are a few things which will start a bar fight among programmers. The first is declaring a …

Continue reading ‘C++ 11 and Qt — Part 5 Constructor Initializer List Religion’ »

C++ 11 and Qt — Part 4 Test Your Compiler

As promised, here is a test to see if your compiler actually handles initialization lists correctly or adopted a “last one in wins” strategy. #ifndef SMALLDATA_H #define SMALLDATA_H class SmallData { public:     explicit SmallData( int nuVal);     explicit SmallData();     ~SmallData();      private:     int m_data = 8; }; #endif // SMALLDATA_H   …

Continue reading ‘C++ 11 and Qt — Part 4 Test Your Compiler’ »

C++ 11 and Qt — Part 3 This is Broken

One of the many reasons medical devices and all systems where adverse outcome for humans are slow to adopt “new” things is that there is so little known about “the wrong way.” You will find many snippets and books on-line professing to show you “the write way” but so few show you the wrong way …

Continue reading ‘C++ 11 and Qt — Part 3 This is Broken’ »

C++ 11 and Qt — Part 2 const

This really isn’t a C++ 11 or Qt thing we need to discuss next. It is something which hoses every C/C++ programmer at some point, especially if you are either tired or reading fast. Where const is matters char txt[] = “Red baby buggy bumpers”; char *ptr = txt;               // non-const pointer, non-const data const …

Continue reading ‘C++ 11 and Qt — Part 2 const’ »