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 this was a machine which had been running 16.04 64-bit. The clean install would go great, taking forever with downloads … Raspberry Qt – RefreshRead more
Author: admin
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 single editor as the greatest editor of all time. (Besides, you will always find one grizzled troll declaring vi to … C++ 11 and Qt — Part 5 Constructor Initializer List ReligionRead more
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 #include “SmallData.h” #include <iostream> SmallData::SmallData() { std::cout << “SmallData Default constructor data value ” << m_data << std::endl; } … C++ 11 and Qt — Part 4 Test Your CompilerRead more
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 and explain why it is the wrong way. Most of the token few wrong way post and book examples you … C++ 11 and Qt — Part 3 This is BrokenRead more
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 char *ptr = txt; // non-const pointer, const data char * const ptr = txt; // const pointer, non-const data … C++ 11 and Qt — Part 2 constRead more