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 <[email protected]> Aan: kristof mulier <[email protected]> Cc: QScintilla <[email protected]> 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, [email protected] 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 _______________________________________________ QScintilla mailing list [email protected] https://www.riverbankcomputing.com/mailman/listinfo/qscintilla
