Re: [Interest] qt.gui.imageio.jpeg: Corrupt JPEG data

2025-03-07 Thread Wang Gary
Sounds like the saved images are already corrupted. Somewhat related to https://bugreports.qt.io/browse/QTBUG-115454 IMO. ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] Make a specific Unicode glyph wider in a QTextLayout

2024-12-15 Thread Wang Gary
> But since you want to edit it, it is probably too cumbersome. Of your two > suggested approached I think the QTextLayout has the best chance of working. So do you mean subclassing QTextLayout and accessing the private APIs? I also think it might be the way to do so but I'm just not sure if that'

Re: [Interest] Make a specific Unicode glyph wider in a QTextLayout

2024-12-15 Thread Wang Gary
Hi again, > > > Replace the non-visible character in the model with a visible one in the > > > view? > > Well, there are some reasons that I personally would like to avoid > > that. Firstly this > > feature itself is more of a view-level function, modifying the model > > sounds weird[1]. > My sugg

Re: [Interest] Make a specific Unicode glyph wider in a QTextLayout

2024-12-15 Thread Wang Gary
> > So the question is, what's the proper approach to implement such a feature > > using Qt's public API? Do the mentioned two approaches sound right? > > > Replace the non-visible character in the model with a visible one in the view? Well, there are some reasons that I personally would like to a

[Interest] Make a specific Unicode glyph wider in a QTextLayout

2024-12-14 Thread Wang Gary
Hi, I'm attempting to implement a feature in a plain text editor that similar to Notepad++'s "show hidden characters", which allows toggle the visibility of non-printable characters, like zero-width space, CR LF and so-on, which look like this in Notepad++ (see the attachment for the sample docume

[Interest] QAudioProbe alternative in Qt 6's Multimedia Module

2024-09-07 Thread Wang Gary
Hi, In Qt 5, QAudioProbe is a pretty handy class that allows developers attach it on a QMediaObject to monitor the audio currently being played. For example, it can be use to attach to a QMediaPlayer to create real-time audio visualization. In Qt 6, QAudioProbe no longer exists, and it seems ther