Is any work being do to port the Windows x2goclient code to Qt5? The issue I'm running into is that the HWND type returned by wapiFindWindow() is not compatible with the long type - at least when compiling for 64-bit.
I'm also curious that you need to shift to a Windows API call - should we be able to do everything in Qt?
If I shift to 32-bit compiles I get:
../src/wapi.cpp: In function 'void wapiSetWindowIcon(HWND, const QPixmap&)': ../src/wapi.cpp:224:88: error: 'class QPixmap' has no member named 'toWinHICON' 224 | largeIcon=icon.scaled(iconx,icony, Qt::IgnoreAspectRatio,Qt::SmoothTransformation).toWinHICON (); | ^~~~~~~~~~ ../src/wapi.cpp:225:90: error: 'class QPixmap' has no member named 'toWinHICON' 225 | smallIcon=icon.scaled(smallx,smally, Qt::IgnoreAspectRatio,Qt::SmoothTransformation).toWinHICON (); | ^~~~~~~~~~
Now, the only call to wapiSetWindowIcon() is commented out, so I just commented out that code for now. Looks like the current function to use is QImage::toHICON().
-- Orion Poplawski IT Systems Manager 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 https://www.nwra.com/