How to expose a QList in a ViewModel to QML
MyPlugin/MyPlugin.cpp: #include <ViewModels/MyListClass.h> #include <ViewModels/DisplayViewModel.h> qmlRegisterUncreatableType<MyListClass>( a_uri, 1, 0, "MyListClass", "Use access...
View ArticleBinaries in git, release numbering, Git-Flow and Scrum at the CIA
Funny how even the software developers at the CIA have problems with idiots who want to put binaries in git. They also know about Git-Flow, my preferred git branching workflow. I kind of wonder how...
View ArticleDuck typing
Imagine you have a duck. Imagine you have a wall. Now imagine you throw the duck with a lot of force against a wall. Duck typing means that the duck hitting the wall quacks like a duck would. ps....
View ArticleMerkel bashing
It seems to be the new sport of nitwit moronic world leaders like Trump and Erdogan to bash Frau Merkel. It makes me respect her more.
View ArticlePerfection
Perfection has been reached not when there is nothing left to add, but when there is nothing left to take away.
View ArticleMaking something that is undoable editable with Qt
Among the problems we’ll face is that we want asynchronous APIs that are undoable and that we want to switch to read only, undoable editing, non-undoable editing and that QML doesn’t really work well...
View ArticleThe undoable editor that can open > 4 GB text files
We are making an editor for industrial uses at Heidenhain. This is to make big Klartext programs, editable. I’m sure other industries could also use that. Nowadays these programs often come out of a...
View ArticleAsynchronous undoable and redoable APIs
Combining QFuture with QUndoCommand made a lot of sense for us. The undo and the redo methods of the QUndoCommand can also be asynchronous, of course. We wanted to use QFuture without involving...
View ArticleRE: Bye Facebook
Wim made a stir in the land of the web. Good for Wim that he rid himself of the shackles of social media. But how will we bring a generation of people, who are now more or less addicted to social...
View ArticleHow do they do it? Asynchronous undo and redo editors
Imagine we want an editor that has undo and redo capability. But the operations on the editor are all asynchronous. This implies that also undo and redo are asynchronous operations. We want all this to...
View ArticleThe rules of scuba diving
First rule. You must understand the rules of scuba diving. If you don’t know or understand the rules of scuba diving, go to the second rule. The second rule is that you never dive alone. The third...
View ArticleLoading truly truly huge text files with a QAbstractListModel
Sometimes people want to do crazy stuff like loading a gigabyte sized plain text file into a Qt view that can handle QAbstractListModel. Like for example a QML ListView. You know, the kind of files you...
View ArticleColleague tells me I write blogs in chats while I explain how to write a...
I’m at home now. I don’t do non-public unpaid work. So let’s blog the example I’m making for him. workplace.h #ifndef Workplace_H #define Workplace_H #include <QObject> #include <QFuture>...
View ArticleComité I deelt informatie met De Tijd. Waarom niet met de burger?
Onze inlichtingendiensten en Comité I geven dit jaar enkele cijfers over het speurwerk van staatsveiligheid, blijkbaar ‘vertrouwelijk’, aan een Belgische krant. Het is spijtig dat gewone burgers dit...
View ArticleAbstractCommand Model View ViewModel techniques
In the .NET XAML world, you have the ICommand, the CompositeCommand and the DelegateCommand. You use these commands to in a declarative way bind them as properties to XAML components like menu items...
View ArticleThe RelayCommand in Qt
A few days ago I explained how we can do MVVM techniques like ICommand in Qt. Today I’ll explain how to make and use a simple version of the, in the XAML MVVM world quite famous, RelayCommand. In the...
View ArticleHave confidence in yourself – technology will never replace human beings
Children aren’t worried about the future. Young people aren’t worried about the future; they’re worried about us: us leading them into the future we envision Jack Ma — Oct 2017, keynote speech at...
View Article200 cybersoldaten nodig?
Hoe lok je de gepassioneerde computernerds? Zorg ervoor dat ze opleiding krijgen. Ook in zaken die niet technisch zijn. Laat toe dat ze zich verdiepen in dieptechnische zaken. Bv. low level...
View ArticleAsynchronous commands
With asynchronous commands we have typical commands from the Model View ViewModel world that return asynchronously. Whenever that happens we want result reporting and progress reporting. We basically...
View Article