slint icon indicating copy to clipboard operation
slint copied to clipboard

macOS: Slint 1.3 has warnings, `AboutSlint` fails to display on macOS/Linux with QT backend

Open rjzak opened this issue 1 year ago • 5 comments

OS: macOS Sonoma 14.1.1 Arch: aarch64 Rust: 1.74.0 Project: https://github.com/malwaredb/malwaredb-rs Slint: 1.3 Slint Backend: QT6 via homebrew

  • AboutSlint table does not show
  • Warning output: QGraphicsEffectSource::draw: Can only begin as a result of QGraphicsEffect::draw with/without AboutSlint

Worked with Slint 1.2. I haven't tried macOS without QT.

Linux (Debian Bookworm) with QT5, Slint 1.3, xorg: AboutSlint table does not show but without error/warning output.

rjzak avatar Nov 24 '23 20:11 rjzak

Thanks for the bug report. I opened the .slint files with the viewer on X11 with the Qt5 backend, and i could properly see the AboutSlint

ogoffart avatar Nov 28 '23 07:11 ogoffart

QT6 might be the problem. I haven't tried it with QT6 & X11 yet.

rjzak avatar Nov 28 '23 14:11 rjzak

Showing admin.slint on macOS produces the following window for me.

Screenshot 2023-11-29 at 11 00 46

This is indeed too small to show the "About Slint" tab. I think that this may however be due to the fact that admin.slint fixes the window size:

    width: 440px;
    height: 390px;

Clearly 440px is not enough to show all tabs. Perhaps you may want to remove the fixed size?

tronical avatar Nov 29 '23 10:11 tronical

Removing the height and width statements has the same result.

QGraphicsEffectSource::draw: Can only begin as a result of QGraphicsEffect::draw
QGraphicsEffectSource::draw: Can only begin as a result of QGraphicsEffect::draw

image

rjzak avatar Dec 02 '23 00:12 rjzak

Ok... resizing and it shows up, but still does't look right compared to how I remember Slint 1.2. The spacing of the items in the window feels off. Maybe it's a QT6 thing.

rjzak avatar Dec 02 '23 01:12 rjzak