If you are in a situation that you want to upload a file to a FTP server or delete, rename, copy some files on a FTP server in your Qt programs there are no definite choices anywhere. At least that is the case with Qt 5.5. You usually have to use a platform dependent library. So here it is. I use this library when I need FTP access in Qt for Windows. It uses Windows API therefore you won’t be able to use this in Linux or MAC. Download from the link provided below (you may have to register at codeproject.com) and follow the steps to be able to use it in your Qt programs.
CATOX 2000 is a fully automatic metal sheet cutting system built by Ahmadi Industrial Group during 2000’s. It is able to get AutoCAD drawings as an input and cut the drawing from a metal sheet (iron, steel and any other metal type depending on the cutter section of the machine which can be Oxygen-Propane, Plasma or Laser) CATOX 2000 is widely used in heavy industries.
Qt is a cross-platform framework that encapsulates API across many Operating Systems but one always faces situations in which he/she needs to access and use OS specific capabilities. Windows API is a massive collection of interfaces that allow a programmer to use and include Windows features in their programs. Below is a simple example on how to use Windows API in Qt.
Continue reading “How to use Windows API in Qt (A simple example)”
I use the function below to get the version of my Windows applications and show it on the title bar or about page programmatically. It uses Win32 API so it is not cross-platform.
I use the code from the following article to allow only a single instance of my programs (mostly written using Qt Framework) to run on Windows. Some programs (specially the ones which connect to a specific type of hardware or resource) need this limitation to avoid conflicts.
Please also note that this code is specific to Windows.
This function can be used to get an EXE file version. I use this class in almost all of my programs to add EXE version to Main window title.