<div dir="ltr"><div><div><div><div>Sorry for late answering.<br>Some backpain and bad situations here.<br><br></div>BTW,<br></div>I remember that we were using HTML way, to show images. adding images to resources and giving address from resource in html tag <img>.<br>

</div>Why didn't you use that approach?<br><br></div>Regards,<br>Mehrdad<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 3:51 AM, Daniel Kreuter <span dir="ltr"><<a href="mailto:daniel.kreuter85@gmail.com" target="_blank">daniel.kreuter85@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I found a way how to download images with standard Qt code using QNetworkAccessManager, QNetworkReply and QNetworkRequest. Images get downloaded but now I struggle with the postwidget adding the image to the UI (I use the QLabel and set the Image with setPixmap(pixmap)).<br>


How can I add the QLabel best to the UI without breaking the layout? I thought using a QVBoxLayout and adding first the textbrowser followed by the QLabel would do it's work, but this way no image is shown and the text in the textbrowser widget is totally broken.<br>


<br>
Any hints? If not I'm considering to move to QML first and add the bugfix afterwards because then the UI part is a lot easier to add new items to it. But this would take quite a lot of work to accomplish I think.<br>


<br>
Cheers<br>
<br>
Daniel<br>
<br>
> Am 05.03.2014 um 22:22 schrieb Daniel Kreuter <<a href="mailto:daniel.kreuter85@gmail.com">daniel.kreuter85@gmail.com</a>>:<br>
<div><div class="h5">><br>
> Hi,<br>
><br>
> I'm using Choqok's MediaManager to download images from twitter, but without success.<br>
><br>
> For downloading the image the MediaManager uses the following piece of code:<br>
><br>
> KIO::Job *job = KIO::storedGet( srcUrl, KIO::NoReload, KIO::HideProgressInfo);<br>
><br>
> srcUrl contains the correct image url (as KUrl). So far everything is fine.<br>
><br>
> But once the signal result (KJob*) is called, I get only an html page from my internet provider with an dnserror and I don't know why.<br>
><br>
> Calling the srcUrl in my Webbrowser works as expected, but through KIO::Job I don't get the image I request.<br>
><br>
> Has anyone an idea if my code is wrong or something in kdelibs?<br>
> (The piece of code I'm talking about is in the project Choqok, file mediamanager.cpp lines 92 to 140)<br>
><br>
> Cheers,<br>
><br>
> Daniel<br>
</div></div>_______________________________________________<br>
Choqok-devel mailing list<br>
<a href="mailto:Choqok-devel@kde.org">Choqok-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/choqok-devel" target="_blank">https://mail.kde.org/mailman/listinfo/choqok-devel</a><br>
</blockquote></div><br></div>