[X2Go-Dev] Porting Windows X2goclient to Qt5?

Peter Bieringer pb at bieringer.de
Sat May 6 10:08:18 CEST 2023


Hi,

during installation of following preview:

https://code.x2go.org/releases/binary-win32/x2goclient/previews/4.1.2.3/

Qt5 libraries are included, Qt5Core.dll has version 5.12.3.0 from 2019

=> at least 2022-12-05 one was already succeeding building for Qt5 in 
the past...

Potentially this helps,
	Peter


Am 05.05.23 um 23:08 schrieb Orion Poplawski:
> 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().
> 
> 
> _______________________________________________
> x2go-dev mailing list
> x2go-dev at lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-dev

-- 
Dr. Peter Bieringer
Heideckstr. 27
D-80637 Muenchen
Germany

mailto:pb at bieringer.de
phone:+49-89-36109686
fax:+49-89-36109689
mobile:+49-174-9015046



More information about the x2go-dev mailing list