[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> </div>
<div>It's X. The output of xprop:</div>
<div>
<div>_NET_WM_ICON_NAME(UTF8_STRING) =<br/>
_KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.labplot2"<br/>
_KDE_NET_WM_COLOR_SCHEME(STRING) = \
"/usr/share/color-schemes/BreezeHighContrast.colors"<br/> XdndAware(ATOM) = \
BITMAP<br/> _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 2840133529<br/>
WM_NAME(STRING) = "Import Data to Spreadsheet or Matrix"<br/>
_NET_WM_NAME(UTF8_STRING) = "Import Data to Spreadsheet or Matrix — \
labplot2"<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/>
\
Client accepts input or input focus: True<br/> \
\
Initial state is Normal State.<br/> _NET_WM_PID(CARDINAL) = 29202<br/>
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 83886351<br/>
WM_CLASS(STRING) = "labplot2", "labplot2"<br/>
WM_PROTOCOLS(ATOM): protocols 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/>
\
user specified location: 819, 262<br/> \
\
user specified size: 536 by 711<br/> \
\
program specified minimum size: 522 by 711<br/> \
\
window gravity: Static</div>
<div> </div>
<div> </div>
<div>P.S.: sorry for html and for the full-quote, writing from the \
web-frontend...</div> </div>
<div>
<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> Montag, 04. März 2019 um 15:08 Uhr<br/> \
<b>Von:</b> "David Edmundson" <david@davidedmundson.co.uk><br/> \
<b>An:</b> kde-devel <kde-devel@kde.org>, "Kwin, NET API, kwin styles \
API, kwin modules API" <kwin@kde.org><br/> <b>Betreff:</b> Re: \
setWindowIcon for QDialog</div>
<div name="quoted-content">On Mon, Mar 4, 2019 at 1:49 PM Aleix Pol \
<aleixpol@kde.org> wrote:<br/> ><br/>
> On Sun, Mar 3, 2019 at 11:00 AM Alexander Semke <alexander.semke@web.de> \
wrote:<br/> > ><br/>
> > Hi,<br/>
> ><br/>
> > in LabPlot we have couple of modal dialogs, created on the heap and shown \
with<br/> > > dlg->exec(). The dialog icon is set in the constructor of the \
dialog via<br/> > > QDialog::setWindowIcon(), e.g.<br/>
> > setWindowIcon(QIcon::fromTheme(QLatin1String("labplot-worksheet")));<br/>
> ><br/>
> > The icon is set/handled by the window manager if I understand this \
correctly.<br/> > > 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