Many qt image related classes allow you to load an image from a file such as: QIcon ButtonIcon(“myprogrammingnotes.com.ico”); button->setIcon(ButtonIcon); Or, QPixmap pixmap(“myprogrammingnotes.com.ico”); QIcon ButtonIcon(pixmap); button->setIcon(ButtonIcon); That is very convenient. But […]

If you do not set an icon for your qt project, the built exe has a default icon, which seems a blank window. If you run the program, the icon […]

If you does not provide any parameter when configuring qt, the qt binaries you build will not support ssl. When you build a project that needs ssl, you will get […]

After building qt from source, you may want to install the build results by running “mingw32-make install”. But wait a minute, you do not really need to install the generated […]

In my previous post what .prf files are automatically loaded by qmake, you have known that qmake will read a spec file qmake.conf before reading your .pro file. This spec […]

Some qmake variables, functions, and conditions are hard to know their meanings. I list here for a memo. $$replace(variable, old_string, new_string): replace old_string in variable with new_string. $$unique(variable): remove duplicated […]