Posts

QTableWidget: center a checkbox inside a cell

Image
QTableWidget is a very good control for show and manage data in a table format. It allow to insert inside cells different type of controls like listbox, checkbox and so on. In this post we'll discuss about the use of a checkbox control inside a cell with no text and the centering problem.

Visual Studio color schemes collection

Image
Visual Studio is one of the best IDE available with a lot of nice features. One of the most useful is the possibility to customize the color scheme of the editor to allow a quick reading of the various elements of the code. Find the right combination of colors, though, can sometimes be quite long than the following site will can help you.   

Android 'su' unlocked for get root privileges

Image
Please note, this post is for developer who is building custom Android image and have access to Androud su.c source. If you are an android user and are looking for a way to root your device this post will not help you, sorry.

QListWidget and item edit event

Image
QListWidget control allow, once properly configured, to edit items by, usually, double clicking over it. However if you want be informed when the user finished to edit item value for make your personal check there is no signals dedicated to this type of event. This because the line edit control created on the fly is delegated to another Qt object.

Access physical memory from Linux user space

Image
If you want to find a way for access physical memory in Linux there are only two solutions. The first is to develop a module running in kernel space with the correct privileges to access physical memory and the second is to use a special devices called " /dev/mem ". If your purpose is only to read or write some small parts of physical memory from user space this device is the right solution for you. Basically you can manage it as a file with additional use of some special functions required for get a pointer to the memory address your are interested to work in.

Browse android source code in a quicker way

Image
The Android package is composed of an huge amount of sources code and, since the documentation about internal structure is virtually non-existent (except some text files around that doesn't help very much), the only "documentation" are the sources code itself. Using some tool like grep is possible to search inside sources tree but it take a large amount of time and the output could be very hard to "follow". The following site could be a very very useful tool for make quick search inside Android source package. Basically it have already indexed all the Android versions from 1.6.0 to the last and allow advanced searches inside Android sources tree. The search result is well formatted and each language elements (functions. defines, variables and so on) is linked for allow to jump very quickly between the code inside source files. I strongly suggest to give a try!

Develop Android Qt apps on Windows

Image
A very complete visual guide about how to configure Qt environment to develop application for Android on Windows.