{"id":369,"date":"2014-11-25T22:50:01","date_gmt":"2014-11-25T21:50:01","guid":{"rendered":"http:\/\/pusling.com\/blog\/?p=369"},"modified":"2015-03-23T22:35:38","modified_gmt":"2015-03-23T21:35:38","slug":"qimage-and-qpixmap-in-a-qt-quick-item","status":"publish","type":"post","link":"https:\/\/pusling.com\/blog\/?p=369","title":{"rendered":"QImage and QPixmap in a Qt Quick item"},"content":{"rendered":"<p>For reasons I don&#8217;t know, apparantly a Qt Quick Item that can show a <a href=\"http:\/\/qt-project.org\/doc\/qt-5\/qimage.html\" title=\"http:\/\/qt-project.org\/doc\/qt-5\/qimage.html\" target=\"_blank\">QImage<\/a> or a <a href=\"http:\/\/qt-project.org\/doc\/qt-5\/qpixmap.html\" title=\"http:\/\/qt-project.org\/doc\/qt-5\/qpixmap.html\" target=\"_blank\">QPixmap<\/a> is kind of missing. The current <a href=\"http:\/\/qt-project.org\/doc\/qt-5\/qml-qtquick-image.html\" title=\"http:\/\/qt-project.org\/doc\/qt-5\/qml-qtquick-image.html\" target=\"_blank\">Image QML<\/a> item only works with data that can be represented by a URL.<\/p>\n<p>So I wrote one that kind of works. Comments most welcome.<\/p>\n<p>It is found on git.kde.org: <a href=\"http:\/\/quickgit.kde.org\/?p=scratch%2Fsune%2Fimageitem.git\" title=\"http:\/\/quickgit.kde.org\/?p=scratch\/sune\/imageitem.git\" target=\"_blank\">http:\/\/quickgit.kde.org\/?p=scratch\/sune\/imageitem.git<\/a><\/p>\n<p>Oh, and the KDE End of Year fundraiser is still running. <a href=\"https:\/\/www.kde.org\/fundraisers\/yearend2014\/\" title=\"https:\/\/www.kde.org\/fundraisers\/yearend2014\/\" target=\"_blank\">https:\/\/www.kde.org\/fundraisers\/yearend2014\/<\/a>. Go support it if you haven&#8217;t already.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For reasons I don&#8217;t know, apparantly a Qt Quick Item that can show a QImage or a QPixmap is kind of missing. The current Image QML item only works with data that can be represented by a URL. So I wrote one that kind of works. Comments most welcome. It is found on git.kde.org: http:\/\/quickgit.kde.org\/?p=scratch\/sune\/imageitem.git [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,11],"tags":[],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-english","category-kde","category-qt"],"_links":{"self":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":3,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions\/372"}],"wp:attachment":[{"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pusling.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}