Category Archives: C++

Ru: Archive: Шифруемся в Qt (2013)

Так как оказалось, что наши коммуникации довольно легко просматриваются товарищами из АНБ то похоже что нужно шифровать все коммуникации. Я решил проверить насколько сложно подключить шифрование в разработке Qt приложений. Как оказалось что все совсем несложно даже в случае использовании PGP. Так что тут больше дело привычки разработчика чтобы шифровать критические данные. Вот и попробуем
Also posted in Blog, Cryptography, Qt, Ru, Tutorial | Leave a comment

Jongling models beetween threads

We know that in Qt the models are not thread-safe – they totally depend on your implementation. So what we may do to bypass model between threads? Guess that we have some models which implementation we can not adjust much or can not make thread-safe. Danger is that if some model is used somewhere (pointer […]
Also posted in Blog, Boost, Models, Qt | 3 Comments

Qt and use of Cryptography – simple!

In the light of latest news (Snowden et all) it is very clear that all developers should really take care of safety of all communications that your application could perform. In the world of desktop application developments it is often is decided to be postponed and just use plain text protocols or so and later […]
Also posted in Blog, Cryptography, Qt, Research | 7 Comments

Designing tree-like models

We found that developers are often confused about implementing tree-like models using Qt classes. Now we can show some tricks and considerations about the way of designing them. First for some refreshment, let’s remind what you have for addressing the elements in the model. This is QModelIndex, which have pointer to model that created the […]
Also posted in Blog, Models, Qt, Research | 2 Comments

Overhead cost of using Qt models

I decided to run very simple test to have glance on performance of Qt models and overhead cost of using them. Something very simple as make 1M random strings with random size (note: rnd_str(int) return some random string with specified size)
Also posted in Blog, Models, Qt, Research | 3 Comments

About Boost Multi-index Containers

I really like Qt Template Library (QTL), but still have lack of some important functionality which is usually called multi-index. Anyway there is very powerful implementation existing in Boost. I really need these templates to establish relations between different data structures. I often use it as internal “engine” for different Proxy models that I use […]
Also posted in Blog, Boost, Models, Qt, Research | 3 Comments

Ru: Archive: O Boost Multi-index Containers

Хочу представить или даже напомнить о таком замечательном модуле Boost как multi_index_container. Все мы знаем и интенсивно пользуем стандартные STL классы для хранения и доступа к данным как списки, векторы, мапы?, хеши. Про них сказано уже немало и исследованы все особенности их применений. Всё усложняется когда возникает необходимость в классе для хранения и доступа к […]
Also posted in Boost, Ru, Tutorial | Leave a comment

Designing Undo for large-scale projects. Going deep.

That is huge architect-level article about designing undo in large-scale project, welcome under more label…
Also posted in Misc, Qt, Research, Undo | 1 Comment

Stack vs Heap, Pimpl, performance

This post is mostly about C++ but because it involves practices often used with Qt programming too, I tagged it with Qt. Also should be interesting for C++ gurus ;) So, you know that Qt uses Pimpl (Private Implementation or Opaque pointer) which is very effective mechanism to keep binary compatibility between Qt versions. I […]
Also posted in Blog, Qt, Research | 4 Comments

Ru: Archive: Qt приложения в Mac App Store

Возможно многие уже задавались вопросом о возможности создания Qt приложения для Mac App Store или отправке уже существующего. Я давно хотел провести пробу этой возможности – как известно Apple и Nokia развивают сейчас разные экосистемы языков/библиотек и можно ожидать много подводных камней связанных с пропуском Qt приложения. Тем не менее это оказалось не так сложно […]
Also posted in MacAppStore, Projects, Qt, QtSpeech, Ru, TogMeg, TTS, Tutorial | Leave a comment

Ru: Archive: QtSpeech, доступ к text-to-speech

Хочу представить небольшой но удобный модуль для кросс-платформенного использования TTS(text-to-speech). На данный момент поддерживаются основные платформы: * Windows, используя SAPI, * Unixes, используя Festival проект, * MacOSX, используя SpeechSynthesis Так как для Windows и Mac используются родныe API то все голосовые движки установленные в систему будут автоматически вам доступны. Для Unix всё не так радужно, […]
Also posted in Blog, Projects, Qt, QtSpeech, Research, Ru, TTS | Leave a comment

Ru: Archive: Создание Qt+PySide гибридных приложений

Возможно вы знаете про PySide, python биндинги к Qt. Также существует PyQt библиотека которая предоставляет аналогичную функциональность но к сожалению ограничена GPL или коммерческой версией. PySide распространяется под LGPL лицензией что даёт удобную возможность пользовать в коммерческих приложениях. Python даёт возможность очень быстрого создания рабочих приложений и PySide как раз предоставляет такую возможность для Qt […]
Also posted in Embedding, Hybrids, PySide, Ru, Tutorial | Leave a comment