<div dir="ltr"><div dir="auto">Iirc I have made some patches for the windows version. I thought they had been merged but <span class="gmail_default" style="font-family:courier new,monospace">I must check that. For now try this:</span></div><div dir="auto"><span class="gmail_default" style="font-family:courier new,monospace"><br></span></div><div dir="auto"><span class="gmail_default" style="font-family:courier new,monospace"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>#if QT_VERSION >= 0x050200
<br>    largeIcon=QtWin::toHICON(icon.scaled(iconx,icony, Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
<br>    smallIcon=QtWin::toHICON(icon.scaled(smallx,smally, Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
<br>#else
<br>    largeIcon=icon.scaled(iconx,icony, Qt::IgnoreAspectRatio,Qt::SmoothTransformation).<span style="color:rgb(255,255,255);background-color:rgb(0,0,0)">toWinHICON</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">();
</span><br>    smallIcon=icon.scaled(smallx,smally, Qt::IgnoreAspectRatio,Qt::SmoothTransformation).<span style="color:rgb(255,255,255);background-color:rgb(0,0,0)">toWinHICON</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">();
</span><br>#endif
<br><br>
<br></span></span></div><div><span class="gmail_default" style="font-family:courier new,monospace"><span style="font-family:monospace">Uli</span></span><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Orion Poplawski <<a href="mailto:orion@nwra.com" target="_blank">orion@nwra.com</a>> schrieb am Di., 9. Mai 2023, 19:00:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: x2goclient<br>
Version: 4.1.2.2<br>
Tag: patch<br>
<br>
<br>
When compiling against Qt5 5.15.9 I get:<br>
<br>
../src/wapi.cpp: In function 'void wapiSetWindowIcon(HWND, const QPixmap&)':<br>
../src/wapi.cpp:224:88: error: 'class QPixmap' has no member named <br>
'toWinHICON'<br>
   224 |     largeIcon=icon.scaled(iconx,icony, <br>
Qt::IgnoreAspectRatio,Qt::SmoothTransformation).toWinHICON ();<br>
       |                        ^~~~~~~~~~<br>
../src/wapi.cpp:225:90: error: 'class QPixmap' has no member named <br>
'toWinHICON'<br>
   225 |     smallIcon=icon.scaled(smallx,smally, <br>
Qt::IgnoreAspectRatio,Qt::SmoothTransformation).toWinHICON ();<br>
       |                          ^~~~~~~~~~<br>
<br>
Now, the only call to wapiSetWindowIcon() is commented out, so I just <br>
commented out the wapiSetWindowIcon() code as we...  Looks like the <br>
current function to use is QImage::toHICON().<br>
<br>
I'm also curious that you need to shift to a Windows API call - <br>
shouldn't we be able to do everything in Qt?<br>
<br>
<br>
<br>
-- <br>
Orion Poplawski<br>
he/him/his  - surely the least important thing about me<br>
IT Systems Manager                         720-772-5637<br>
NWRA, Boulder/CoRA Office             FAX: 303-415-9702<br>
3380 Mitchell Lane                       <a href="mailto:orion@nwra.com" rel="noreferrer" target="_blank">orion@nwra.com</a><br>
Boulder, CO 80301                 <a href="https://www.nwra.com/" rel="noreferrer noreferrer" target="_blank">https://www.nwra.com/</a>_______________________________________________<br>
x2go-dev mailing list<br>
<a href="mailto:x2go-dev@lists.x2go.org" rel="noreferrer" target="_blank">x2go-dev@lists.x2go.org</a><br>
<a href="https://lists.x2go.org/listinfo/x2go-dev" rel="noreferrer noreferrer" target="_blank">https://lists.x2go.org/listinfo/x2go-dev</a><br>
</blockquote></div>