Tag Archives: qt

Automatic random testing for QT-based projects

Published on: Author: dariusz.cieslak Leave a comment

My current project I'm working on is based on embedded systems and QT platform. Of course the very first task in the project is to implement some kind of testing method to get feedback on software quality. The test system is composed from few components: Automatic crash reports collected on central server Automatic random test… Continue reading Automatic random testing for QT-based projects

Fighting with NullPointerException in C++, the static way

Published on: Author: dariusz.cieslak Leave a comment

Dereferencing NULL pointer is a very common programming error in almost any programming language that supports pointers. It cannot be caught at build time in general, so we can carefully check every pointer before dereference and handle errant cases in runtime (warning in log?). But above method is a runtime method. If you don't have… Continue reading Fighting with NullPointerException in C++, the static way

Better debugging of QT warnings

Published on: Author: dariusz.cieslak Leave a comment

When a QT warning is issued you might not know what code is causing activation of this warning. Warnings are not fatal, application is not stopped with proper backtrace. QT creators added very useful option for that purpose: QT_FATAL_WARNINGS. If  you set: export QT_FATAL_WARNINGS You will be correct backtrace under gdb that allow to locate… Continue reading Better debugging of QT warnings