Allowing the users of your Qt application (regardless of whatever its purpose is) to use Drag & Drop is a very important aspect of writing easy to use apps and user interfaces. In this post I have described how to add Drag & Drop functionality in your Qt programs with just a few simple steps.
Continue reading “How to Add Drag & Drop Capability in Your Qt Application”باقی
دست را تیغ زنم باز همان حس لطیفت باقیست
چشم را شویم و سیمای پدیدار توام تکراریست
چاره کار مجانین سفر از غمکده ها نیست دریغا
قرص کامل شده ماه به هر دور و دیاری باقیست
How to set Android Screen Orientation in Qt
To be able to set your Android app orientation (to Portrait or Landscape mode) in Qt you have to modify AndroidManifest.XML manually. In this post I am going to describe where you can find this “AndroidManifest.XML”, because it does not exist in your project folder by default and how to modify it to set any desired Screen Orientation for your App.
Continue reading “How to set Android Screen Orientation in Qt”
Dediler
Soru sordukça bu iş zorlaşıyor, bakma unut, takma bırak,
dediler. Ben seni buldum diye artık ne gerek var, sus unut,
dediler. Bu tesadüf olamaz, biz bu cisimler değiliz demek isterdim ama, aaahh,
dediler. Başka bir yerde seninle sevişirken, seni gördum, o değildir,
dediler. Kafir oldum, bana mümin dediler.
Picture Stamper 2.0 For Mac OS X Released!
Another update on Picture Stamper. Now Mac OS X users can also download and use this tool for free! It’s not available in Mac App Store yet but hopefully it will, soon, and also in many other trusted download websites (just like Windows version).
Continue reading “Picture Stamper 2.0 For Mac OS X Released!”
How to use ODBC in Qt
ODBC (Open Database Connectivity) drivers allow connection to many databases out of the box. In Windows and Qt you can use ODBC Plugin (for Qt) to connect to those databases.
Continue reading “How to use ODBC in Qt”Picture Stamper 2.0.0 Released!
Just released Picture Stamper Version 2.0.0. Here is a brief list of changes:
- Added Drag and Drop (Now you can simply drag and drop images and folders to add them in Picture Stamper)
- Added more file type support (*.bmp *.dib *.jpeg *.jpg *.jpg *.jp2 *.png *.webp *.pgm *.pbm *.ppm *.sr *.ras *.tiff *.tif *.xbm *.xpm)
Head to Picture Stamper page to download this latest release.
How to Build OpenCV 3.1 with MSVC2010 for x86
OpenCV 3.1 was released yesterday and with a first look I noticed that prebuilt libraries for x86 VC10 (MSVC2010) are nowhere to be found in the installation folder. In fact there is no x86 folder to begin with. Some of my recent apps all are built using MSVC2010 so I had to build OpenCV myself. Here is what I did and what I suggest you should do.
Continue reading “How to Build OpenCV 3.1 with MSVC2010 for x86”
How to get screen size in Qt
Qt includes a very simple method to get the size of the screen (width and height). Here it is:
QSize size = qApp->screens()[0]->size();
Note that this function works perfectly in Android and iOS too.
Another thing to note is that if you replace [0] with 1, 2, 3, … you can access other monitors (if there are any) on desktop computers.
How to List All Running Programs and Windows in Qt
If you are learning how to use Windows API (specially Win32 API) in Qt you might have come across a lot of functions which require the usage of Callback Functions. A very well-known example is EnumWindows function. This function allows listing all open windows through a callback function.
Continue reading “How to List All Running Programs and Windows in Qt”
