Aw: Re: setWindowIcon for QDialog
"Alexander Semke" <[email protected]>
| Newsgroups | gmane.comp.kde.devel.general,gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <trinity-4d025ced-49d6-45ab-9318-2e88d795eda1-1551717552024@3c-app-webde-bap08> |
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. It's X. The output of xprop: _NET_WM_ICON_NAME(UTF8_STRING) = _KDE_NET_WM_DESKTOP_FILE(UTF8_STRING) = "org.kde.labplot2" _KDE_NET_WM_COLOR_SCHEME(STRING) = "/usr/share/color-schemes/BreezeHighContrast.colors" XdndAware(ATOM) = BITMAP _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 2840133529 WM_NAME(STRING) = "Import Data to Spreadsheet or Matrix" _NET_WM_NAME(UTF8_STRING) = "Import Data to Spreadsheet or Matrix — labplot2" _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x7, 0x26, 0x1e, 0x3, 0x0 _NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_NORMAL _XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1 WM_CLIENT_LEADER(WINDOW): window id # 0x5000008 WM_HINTS(WM_HINTS): Client accepts input or input focus: True Initial state is Normal State. _NET_WM_PID(CARDINAL) = 29202 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 83886351 WM_CLASS(STRING) = "labplot2", "labplot2" WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST, _NET_WM_CONTEXT_HELP WM_NORMAL_HINTS(WM_SIZE_HINTS): user specified location: 819, 262 user specified size: 536 by 711 program specified minimum size: 522 by 711 window gravity: Static P.S.: sorry for html and for the full-quote, writing from the web-frontend... Gesendet: Montag, 04. März 2019 um 15:08 Uhr Von: "David Edmundson" <[email protected]> An: kde-devel <[email protected]>, "Kwin, NET API, kwin styles API, kwin modules API" <[email protected]> Betreff: Re: setWindowIcon for QDialog On Mon, Mar 4, 2019 at 1:49 PM Aleix Pol <[email protected]> wrote: > > On Sun, Mar 3, 2019 at 11:00 AM Alexander Semke <[email protected]> wrote: > > > > Hi, > > > > in LabPlot we have couple of modal dialogs, created on the heap and shown with > > dlg->exec(). The dialog icon is set in the constructor of the dialog via > > QDialog::setWindowIcon(), e.g. > > setWindowIcon(QIcon::fromTheme(QLatin1String("labplot-worksheet"))); > > > > The icon is set/handled by the window manager if I understand this correctly. > > With kwin, the specified icons are not shown Not shown where exactly? Also X or xwayland? Does running xprop and clicking on the window show the correct icon?
import_dialog_linux.png
(image/png, 44.7 KB) - not displayed
import_dialog_windows.jpg
(image/jpeg, 50.3 KB) - not displayed