Programming

Incredibuild and “cannot create temporary il file”

This is caused by latest MS security update. After applying these two 3126587 and 3126593 previous versions of Incredibuild stopped working. The solution is to uninstall it https://support.microsoft.com/en-us/kb/3126587 https://support.microsoft.com/en-us/kb/3126593 On Windows 10 the responsible update is KB3135173 Next steps Also it’s necessary to disable these updates in auto-update! More info: http://xoreax.helpserve.com/Knowledgebase/Article/View/131/8/command-line-error-d8037–cannot-create-temporary-il-file

Continue Reading
Qt

QML Notes

Sources https://swanson.kdab.com/owncloud/index.php/s/TY9jG2D70ODOjUi F5 for instant reload,   F10 and F11 for slowing down animations QML Live editing Pelagicore’s QmlLive tools QML Lint http://www.kdab.com/kdab-contributions-qt-5-4-qmllint/

Continue Reading
Qt

Debugging QML application

Batches, clip, changes and overdraw   Links: http://www.sletta.org/apps/blog/ http://imaginativethinking.ca/qt-quick-performance-tips-clipping/ http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph-renderer.html

Continue Reading
Qt

Qml & QtQuick

Qt documentation QML Data Models, Qml Model-view QML Data models real usage (blogpost) QtQuick examples (official Qt site) – lot of examples! QtQuick mouse-keyboard events handling QtQuick signals/events handling (and connections info) Extending Qml with Cpp (pieChart example – QQuickPaintedItem, QQmlExtensionPlugin) Qml CPP integration Qml document scopes Qml debugging QML Canvas http://www.ics.com/blog/qml-canvas-element http://doc.qt.io/qt-5/qml-qtquick-canvas.html https://forum.qt.io/topic/27379/how-to-do-graph-with-qml/2 QML States http://stackoverflow.com/questions/6111295/qt-qml-change-state-c QML MouseEvents …

Continue Reading
Qt

Qt 5.5.0 an Qt 5.5.1, QWebEngine, QtWebKit and ICU

Notes about compiling QtWebEngine (instead of QtWebkit) together with Qt 5.5.1 Qt 5.5.0 configure switches for ICU: Starting with 5.5.1 it shouldn’t be necessary to compile and ship ICU libraries because ICU should be included in Qt package itself. Compile QtWebkit It’s necessary to compile it as standalone module. Simpler solution Much easier solution seem …

Continue Reading
Mac OS Programming Qt

Crash in QTreeWidget / QTreeView index mapping on Mac OSX 10.10 part III

So, one more attempt. Previous articles (part1, part2) mentioned possible solutions to fix crash insinde the QTreeWidget and QAccessibleTableCell. Unfortunately, deselecting current item still doesn’t fix all issues. The problem with deselection is that it’s not handled correctly via QAccessibleTableCell: If current index isn’t valid, QAccessible doesn’t correctly update currect QAccessibleTableCell object which caused all this evil …

Continue Reading
Programming Qt

QDialog::reject can be invoked multiple times

When user use ESC to close the dialog and press it very quickly two or more times in a row, QDialog::reject can be invoked also multiple times. This is very dangerous and unpredictable because in case your reject will contain some one-time-execute routine the application will start crashing. The only solution I found is to …

Continue Reading
Programming Qt Windows

Qt5 application crashed with error 0xc0000005

This is very interesting crash and I think it should be considered as Qt bug. This problem arise only under very special circumstances. But one after another. You will identify this problem when your application stopped/exited immediately after the start without any visible error message. It looks like the application isn’t executed at all. When you check …

Continue Reading
Mac OS Programming Qt

Qt app crash on mac when executed with parameters

Our reporting tool occasional crashed on MacOs when was executed with several command line params. Command looked like this: When inspecting exception report, we found following stack trace: After some google-searching I found out that the problem is in core of our application. When subclassing Qt QApplication, it’s necessary to pass argc with reference, not …

Continue Reading
Programming Qt

VS2010 always rebuilding moc files on Qt

My VS2010 on every build always recreate all .moc files and associated .cpp files. Problem was in incredibuild clausule during compilation of my Qt libraries.   instead of Although qmake added all these incredibuild defines to my VS project, Incredibuild still doesn’t compile it in parallel so it was totally useless. The most simply way …

Continue Reading
Programming Qt Windows

GetTickCount64 problem on WindowsXP

Today we received report from one of our customers about problem with our ORM Designer on WindowsXP – 32bit. Our latest version returns following error: The procedure entry point GetTickCount64 could not be located in the dynamic link library KERNEL32.dll The problem is that GetTickCount64 doesn’t exists in XP system. Solution: It’s necessary to compile your application …

Continue Reading