[QScintilla] Inserting images in a QScintilla editor

kristof.mulier at telenet.be kristof.mulier at telenet.be
Tue Jun 6 12:16:55 BST 2017


Hi Phil,

Thank you for your message. But I'm afraid I have to disagree. If the QsciScintilla class would be subclassed from QScrollArea, then your argument would be valid. I could simply access the widget getting scrolled with the "widget()" function. But the QsciScintilla class is subclassed from QAbstractScrollArea. As a result, one cannot use that function to access the widget getting scrolled. In fact, the way to access that widget depends on the way the subclass (QsciScintilla) was implemented.
This is something only QScintilla experts know. That's why I don't post it on the general Qt forum :-)



----- Oorspronkelijk bericht -----
Van: Phil Thompson <phil at riverbankcomputing.com>
Aan: kristof mulier <kristof.mulier at telenet.be>
Cc: QScintilla <QScintilla at riverbankcomputing.com>
Verzonden: Tue, 06 Jun 2017 12:43:27 +0200 (CEST)
Onderwerp: Re: [QScintilla] Inserting images in a QScintilla editor

On 6 Jun 2017, at 9:36 am, kristof.mulier at telenet.be wrote:
> 
> Dear QScintilla enthusiast,
> I have tried to add images into a QScintilla editor, but I'm facing a problem. Please help me out:
> 
> https://stackoverflow.com/questions/44385030/inserting-an-image-in-a-qscintilla-editor

What you are trying to do has nothing to do with QScintilla - that's what just happens to be being displayed in the scroll area. You might have better luck rephrasing the question in terms of a generic widget and asking in a Qt forum.

Phil


More information about the QScintilla mailing list