strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Text is misrendered in QSearchField

Open jirislaby opened this issue 1 year ago • 1 comments

Describe the bug The text I write to QSearchField in the top of the main window is misrendered as can be seen in the screenshot.

To Reproduce

  • start strawberry on primary monitor (on secondary, this does not happen)
  • maximize it (it doesn't happen on non-maximized windows)
  • type in the field

Expected behavior The typed text can be seen. Note that it is re-rendered correctly upon minimizing->maximizing it. Also by moving to the other monitor and back. So I suppose there is some weird rendering while typing on screens configured some way (see below).

Screenshots: straw

System Information:

  • Operating system: Linux, qt6, wayland, screens are scaled up (the primary one is full HD at 125 %, secondary is 4k at 150 %)
  • Strawberry Version: 1.0.18

jirislaby avatar Aug 02 '23 09:08 jirislaby

I can reproduce this with 125% scaling, but only on the playlist search field, not the collection search field. I'm not sure why since they both use the same search widget.

jonaski avatar Oct 07 '23 18:10 jonaski

Took me many hours to figure this out, turns out it's the global stylesheet strawberry uses which has a specific style for QToolButton which is supposed to be used for the collection options (tool) button in the search, but the search field's clear button is also a QToolButton, since the style got applied there too things gets weird.

jonaski avatar Feb 25 '24 01:02 jonaski

Thanks, but it does not help completely. While it is fixed for a maximized window, I still see that with a non-maximized one. This is with 1.0.23 and 6d52a2b4095b1ee13fe9806c2f7a9b223c4ef489, 72bccad82d0605b7de2c553657fc90cfd7aa12af applied. Screenshot_20240226_080247

Another issue is that even if I type and can see it when maximized, the list of songs is not redrawn (I have to hover with mouse or minimize+maximize the window to see it updated). Screenshot_20240226_080753

Is this worth a new issue?

jirislaby avatar Feb 26 '24 07:02 jirislaby

I can not reproduce the misrendered text in the search field anymore, but I can reproduce the playlist search update issue, looks like a Qt Wayland bug too me.

jonaski avatar Feb 27 '24 20:02 jonaski