Monthly Archives: March 2015

Warning! Qt Can Damage Your Computer

Don’t get me wrong, I love Qt, but they do make the disclaimer when you download and use their software. Just note that unless you have money to burn, if you keep pushing the limits of your hardware and operating … Continue reading

Posted in Qt | Leave a comment

How To Embed Font in Qt Application Using QFontDatabase

You can embed a True Type font or Open Type font into your Qt application using QFontDatabase. You can link to an external font file or link to a font embedded as a resource. First, make sure you include a … Continue reading

Posted in Qt | Leave a comment

How to create X11 colors into Qt QColor Wrapper

You can mix any color you want nowadays with 32-bit colors. But sometimes, it’s just so much more convenient if the color palette already exists. And unfortunately, Qt only provides users with the most basic of colors. Therefore, it’s up … Continue reading

Posted in Qt | Leave a comment

How to Implement Custom Optimized MouseDoubleClickEvent Function in Qt

If you were unaware that Qt’s default mouseDoubleClickEvent isn’t exactly optimized, as that is the nature of the beast, so when you override it, it will slow everything down. So the only thing you can do is write your own … Continue reading

Posted in Qt | Leave a comment

Qt MouseDoubleClickEvent May Slow Down Performance

http://qt-project.org/doc/qt-4.8/qwidget.html#mouseDoubleClickEvent I just discovered this. I’ve been implementing the convenience overriding of MouseDoubleClickEvent in all of my custom widgets. After optimizing all of my basic overrided mouse handling events: mousePressed, mouseMove, mouseReleased, it turns out it was that dang doubleclick … Continue reading

Posted in Qt | Leave a comment