[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Aw: Re: setWindowIcon for QDialog
From:       "Alexander Semke" <alexander.semke () web ! de>
Date:       2019-03-04 16:39:12
Message-ID: trinity-4d025ced-49d6-45ab-9318-2e88d795eda1-1551717552024 () 3c-app-webde-bap08
[Download RAW message or body]

[Attachment #2 (text/html)]

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>not shown in the window bar, left to the window title. Please check the attached \
screenshots. On windows the proper icon is shown, on linux/kwin the applicaion icon \
is used.</div>

<div>&nbsp;</div>

<div>It&#39;s X. The output of xprop:</div>

<div>
<div>_NET_WM_ICON_NAME(UTF8_STRING) =<br/>
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = &quot;org.kde.labplot2&quot;<br/>
_KDE_NET_WM_COLOR_SCHEME(STRING) = \
&quot;/usr/share/color-schemes/BreezeHighContrast.colors&quot;<br/> XdndAware(ATOM) = \
BITMAP<br/> _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 2840133529<br/>
WM_NAME(STRING) = &quot;Import Data to Spreadsheet or Matrix&quot;<br/>
_NET_WM_NAME(UTF8_STRING) = &quot;Import Data to Spreadsheet or Matrix &mdash; \
labplot2&quot;<br/> _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x7, 0x26, 0x1e, 0x3, 0x0<br/>
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG, \
_NET_WM_WINDOW_TYPE_NORMAL<br/> _XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1<br/>
WM_CLIENT_LEADER(WINDOW): window id # 0x5000008<br/>
WM_HINTS(WM_HINTS):<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Client accepts input or input focus: True<br/> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Initial state is Normal State.<br/> _NET_WM_PID(CARDINAL) = 29202<br/>
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 83886351<br/>
WM_CLASS(STRING) = &quot;labplot2&quot;, &quot;labplot2&quot;<br/>
WM_PROTOCOLS(ATOM): protocols&nbsp; WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, \
_NET_WM_SYNC_REQUEST, _NET_WM_CONTEXT_HELP<br/> WM_NORMAL_HINTS(WM_SIZE_HINTS):<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
user specified location: 819, 262<br/> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
user specified size: 536 by 711<br/> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
program specified minimum size: 522 by 711<br/> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
window gravity: Static</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>P.S.: sorry for html and for the full-quote, writing from the \
web-frontend...</div> </div>

<div>&nbsp;
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; \
border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;"> <div style="margin:0 0 10px \
0;"><b>Gesendet:</b>&nbsp;Montag, 04. M&auml;rz 2019 um 15:08 Uhr<br/> \
<b>Von:</b>&nbsp;&quot;David Edmundson&quot; &lt;david@davidedmundson.co.uk&gt;<br/> \
<b>An:</b>&nbsp;kde-devel &lt;kde-devel@kde.org&gt;, &quot;Kwin, NET API, kwin styles \
API, kwin modules API&quot; &lt;kwin@kde.org&gt;<br/> <b>Betreff:</b>&nbsp;Re: \
setWindowIcon for QDialog</div>

<div name="quoted-content">On Mon, Mar 4, 2019 at 1:49 PM Aleix Pol \
&lt;aleixpol@kde.org&gt; wrote:<br/> &gt;<br/>
&gt; On Sun, Mar 3, 2019 at 11:00 AM Alexander Semke &lt;alexander.semke@web.de&gt; \
wrote:<br/> &gt; &gt;<br/>
&gt; &gt; Hi,<br/>
&gt; &gt;<br/>
&gt; &gt; in LabPlot we have couple of modal dialogs, created on the heap and shown \
with<br/> &gt; &gt; dlg-&gt;exec(). The dialog icon is set in the constructor of the \
dialog via<br/> &gt; &gt; QDialog::setWindowIcon(), e.g.<br/>
&gt; &gt; setWindowIcon(QIcon::fromTheme(QLatin1String(&quot;labplot-worksheet&quot;)));<br/>
 &gt; &gt;<br/>
&gt; &gt; The icon is set/handled by the window manager if I understand this \
correctly.<br/> &gt; &gt; With kwin, the specified icons are not shown<br/>
<br/>
Not shown where exactly?<br/>
Also X or xwayland?<br/>
Does running xprop and clicking on the window show the correct icon?</div>
</div>
</div>
</div></div></body></html>


["import_dialog_linux.png" (image/png)]
["import_dialog_windows.jpg" (image/jpeg)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic