You can use the following method to get your Windows 10 Product Key. This can be useful specially if you are dealing with a pre-installed Windows or you have upgraded to Windows 10 from Windows 7, 8 or 8.1 and for any reason you need to know the product key.
Continue reading “How to Get Windows 10 Product Key from Command Prompt”How to Convert Unreadable Binary to Readable QString
Web developers are quite familiar with Base64 and its usage. To put it simply, whenever to want to store, transfer (send or receive) or do anything else with the contents of a binary file (in this example, an image file) you can use Base64 encoding to simplify things by converting unreadable binary contents to a readable string.
Continue reading “How to Convert Unreadable Binary to Readable QString”
Mouse Hover (Over) Events for Qt Widgets
Qt does not have mouse hover, or mouse over (as some people call it) events in its widgets by default but it provides the means to do it quite easily if you just know how to inherit a class and add some protected functions to it. Here is an example that shows how to create a push button (QPushButton) that reacts to mouse hover events.
Continue reading “Mouse Hover (Over) Events for Qt Widgets”Running EXE (Executables) in FoxPro
You can use the following method to run any external EXE programs in your Visual FoxPro code.
Continue reading “Running EXE (Executables) in FoxPro”QRecorder, Screen Recorder for Windows
QRecorder (version 1.0.1) is a new application I wrote for screen recording. Record your desktop activities with this simple tool. It requires no configurations and it’s easy to use. It supports all windows versions from the good old XP to the recent Windows 10. You can record part or whole of the screen. You can make QRecorder totally invisible while recording. Well, head to download page and test it for yourself. Click on the icon below to be taken to QRecorder official webpage.
Credits
This application uses Qt Framework, OpenCV Library and icons from Freepik. All of them are credited in detail inside QRecorder. This free application is sponsored by ToTRVL.com.
How to Find Min and Max in a Vector (Qt + STL)
In Qt, finding the minimum or maximum value in a QList or QVector can be frustrating sometimes and it also will complicate things when you just want a quick and simple minimum and maximum. Use the pieces of codes below to get them with a single line of code.
Continue reading “How to Find Min and Max in a Vector (Qt + STL)”How to Send and Receive JSON Requests in Qt
There are many APIs on the web that accept JSON requests and reply using JSON. An example for this can be most of Google’s API services. For example if you are writing a Qt application that needs JSON interaction with a Google API (such as Google Webmaster API) you can easily send requests and receive responses if you follow these steps.
Image Filtering Using Fourier Transform
In Machine Vision there is a magical trick that involves Fourier transformation of an image and I would like to share it with you today. I learned this long ago from a professor of mine but I remember back then there was not much experience and information about this on the web. Also there was no program that allowed experimenting with Fourier transformation of Images, until I developed an Android application titled Image Transformer, using OpenCV and Qt, which allows you to do just that.
Embedding Fonts in Your Qt Application
Whether you are building an application or a game using Qt for desktop or mobile, you probably like to see the same fonts on the target computers or phones that you set during development. Well sometimes the fonts that you have used just don’t exist in target platforms. Follow these simple steps to embed a font in your application and guarantee that it will exactly look the same when your users run them.
Continue reading “Embedding Fonts in Your Qt Application”How to Use Text to Speech in Qt for Windows
Unfortunately for Cross-Platform developers, there is no standard method or API that you can code once and use to have TTS (Text to Speech) in your programs. You may find some 3rd party libraries that allow a great deal of reusability in different Operating Systems but at some point they also prove to do less than what you require. Qt has promised to make this available for us in the near feature but it has been postponed all the time. The main reason is that there is a huge race between major Software companies (Microsoft, Google and Apple) in this field and it seems that they somehow make it work in totally different ways on purpose. So anyway that is why I decided to share the method to have TTS in Qt in all well known operating systems and I am going to start with the easiest one, which is Windows. Continue reading “How to Use Text to Speech in Qt for Windows”

