Posts

Qt Snippet: Create QPixmap with transparent background

Image
If you want to create a QPixamp object with transparent background you simply need to fill the entire area with transparent color immediately after created. After doing this you can start to draw over.

Qt Snippet: Draw into QPixmap

Image
Draw inside QPixmap can be made using QPainter object. Basically you have to pass to QPainter the pointer to your QPixmap (already created with fixed size) and you can draw inside as the same of window area painting.

Using Eclipse for develop Android app mixed Java and C/C++ code

Image
Eclipse is the "official" IDE proposed by Google for Android development. Usually Android app are written using Java code but for some specific task could be necessary to use native C/C++ code to interface with the Java side. Here a tutorial about how to configure Eclipse for a mixed Java and C/C++ code and how to develop it.

Android.mk and prebuilt static library

Image
Java language used in Android allow to communicate to external libraries written in C language through JNI interface. However is possible to use only dynamics libraries and there is no possibility, for obvious reasons, to use static libraries instead. In case you have a precompiled static library you need to use in your Android app you can create a dynamics as "wrapper" for your static library.

Show whole world by default in Google Maps

Image
If you want to use Google Maps in your web site or application and want to have, by default, show the whole world this is the basic page to use.

Make Input/Output operations from Linux user space

Image
Input/Output operation are made with special x86 instructions. This mean this interface exist only in x86 systems and is not available in ARM platforms. The operation consist in send or receive data to/from special "registry" called port and is frequently used for a lot of common tasks.

Qt: Get click event from button inside QTableWidget cell

Image
QTableWidget is a very flexible control allowing to manage various type of widgets inside each cell. However some widgets like button require an immediate action in consequence of click event. Insert a button inside a table cell is very easy but we need a way to get the click event since there will be a button for each new row in the table.