Some strange thoughts

Just about anything

Qt meta-object system

What is is and why we need it? From the Qt documentation we know that “Qt’s meta-object system provides the signals and slots mechanism for inter-object communication, run-time type information, and the dynamic property system.” [1]. I hope everyone knows what is signal-slot in Qt and why you need Q_OBJECT macro at the beginning of each class declaration. Meta-object is also used for object casting using qobject_cast template function. It’s much more safe then build-in C++ cast functions and often is much faster.

Enabling global menu in Qt Creator in Unity (Ubuntu 14.04)

I have just installed Qt 5.3.1 from and…. Qt Creator doesn’t supports global menu in Unity :-( Goggling doesn’t helps me at all. After a little bit tracing I see that it uses it’s own plugins directory and of course it have no So we need just few commands to fix this: sudo apt−get install libgtk2.0−dev libdbusmenu−qt5−dev cd /tmp apt−get source appmenu−qt5 cd appmenu−qt5−0.3.0+14.04.20140415/src ~/Qt/5.3/gcc_64/bin/qmake make test