[X2Go-Dev] Porting Windows X2goclient to Qt5?

Orion Poplawski orion at nwra.com
Fri May 5 23:08:55 CEST 2023


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 at nwra.com
Boulder, CO 80301                 https://www.nwra.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3847 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.x2go.org/pipermail/x2go-dev/attachments/20230505/26b0fa08/attachment.bin>


More information about the x2go-dev mailing list