Quantcast
Channel: maemo – How easy it is to make people believe a lie, and how hard it is to undo that work again!
Browsing all 43 articles
Browse latest View live

Gebruik maken van verbanden tussen metadata

Ik beweerde onlangs ergens dat een systeem dat verbanden (waar, wanneer, met wie, waarom) in plaats van louter metadata (titel, datum, auteur, enz.) over content verzamelt een oplossing zou kunnen...

View Article


Image may be NSFW.
Clik here to view.

Composition and aggregation with QObject

Consider these rather simple relationships between classes Continuing on this subject, here are some code examples. Class1 & Class2: Composition An instance of Class1 can not exist without an...

View Article


Loading 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 Article

Truly huge files and the problem of continuous virtual address space

As we all know does mmap, or even worse on Windows CreateFileMapping, need contiguous virtual address space for a given mapping size. That can become a problem when you want to load a file of a...

View Article

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 Article


Duck 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 Article

Perfection

Perfection has been reached not when there is nothing left to add, but when there is nothing left to take away.

View Article

Making 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 Article


Asynchronous 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 Article


How 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 Article

The 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 Article

Support for null with Tracker’s INSERT OR REPLACE feature.

I believe it was the QtContacts Tracker team who requested this feature. When they have to unset the value of a resource’s property and at the same time set a bunch of other properties, they need to...

View Article

Colleague 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 Article


AbstractCommand 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 Article

The 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 Article


Asynchronous 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

With sufficient thrust, pigs fly just fine

View Article


Metaclasses, generative C++

This is awesome: Youtube-link Youtube-link Youtube-link Paper on the proposal Blog about it by Herb Sutter Live demo with Clang

View Article

Doing it right, making libraries using popular build environments

Enough with the political posts! Making libraries that are both API and libtool versioned with qmake, how do they do it? I started a project on github that will collect what I will call “doing it...

View Article

Doing It Right examples on autotools, qmake, cmake and meson

About I finished my earlier work on build environment examples. Illustrating how to do versioning on shared object files right with autotools, qmake, cmake and meson. You can find it here. The DIR...

View Article
Browsing all 43 articles
Browse latest View live