Using Qt to create an almost native Windows application?

I like that Qt is cross-platform, but I want to create an application that will be called in some specific Windows DLLs. Like Google Chrome with glass in Windows Vista / 7 (I know that Chrome is not written using the Qt infrastructure, I just thought it was a good example).

How can I do this in Qt? Is it possible?

+3
source share
4 answers

You can, of course, call WinAPI functions directly from your Qt code, then it is better to include qt_windows.h not windows.h.

Windows 7 , Qt. Q7Goodies.

+2

, . ! Qt - DLL, , . DLL, , .

, Qt Windows.

+8

Windows SDK, , Qt Win32-. Qt Creator ++, MinGW Win32 SDK. Windows #ifdefs , - , :

#ifdef Q_OS_WIN

#include <windows.h>

void someWindowsSpecificFunc()
{
  ...
}

#endif // Q_OS_WIN
+3

Fearlessly go to your Win application. You can use all the necessary Windows DLLs. In this sense, Qt has no limits. You will continue to take advantage of the excellent Qt layout features and custom skinning. As for skinning, there is no better basis for Qt. Your users will love all the modified dialogs that you provide them.

+2
source

Source: https://habr.com/ru/post/1722182/


All Articles