{"id":205,"date":"2008-12-29T17:17:00","date_gmt":"2008-12-29T15:17:00","guid":{"rendered":"http:\/\/www.thelins.se\/johan\/blog\/2008\/12\/environmentally-friendly\/"},"modified":"2008-12-29T17:17:00","modified_gmt":"2008-12-29T15:17:00","slug":"environmentally-friendly","status":"publish","type":"post","link":"https:\/\/www.thelins.se\/johan\/blog\/2008\/12\/environmentally-friendly\/","title":{"rendered":">Environmentally Friendly"},"content":{"rendered":"<p>>Continued from <a href=\"http:\/\/www.thelins.se\/johan\/2008\/12\/it-is-all-about-environment.html\">here<\/a>.<\/p>\n<p>The Qt painting system uses four quite interesting environment variables: QT_FLUSH_PAINT, QT_FLUSH_PAINT_EVENT, QT_FLUSH_UPDATE and QT_FLUSH_WINDOWSURFACE. The purpose of each of these four is to initialize painting surfaces with a yellow colour before painting. See <a href=\"http:\/\/aseigo.blogspot.com\/2006\/03\/better-than-watching-paint-dry.html?showComment=1143067260000\">Aaron&#8217;s blog on this<\/a> for an example.<\/p>\n<p>The input method module, qmultiinputcontext.cpp, uses the QT_IM_MODULE and QT4_IM_MODULE variables to pick an appropriate module.<\/p>\n<p>If you have a debug version of Qt, QT_LAYOUT_DEBUG adds additional warning messages indicating if you place your widgets in strange layouts (wrong parent or layout).<\/p>\n<p>If you want to skip Qt&#8217;s double buffering (the backing store) you can use the QT_ONSCREEN_PAINT variable to force all the painting to be made directly to the screen.<\/p>\n<p>The QT_PLUGIN_PATH environment variable can be used to control where Qt looks for plugins.<\/p>\n<p>Using the QT_STYLE_NO_PIXMAPCACHE<br \/>environment variable, you can make the Plastique style not use the <a href=\"http:\/\/doc.trolltech.com\/4.5\/qpixmapcache.html\">QPixmapCache<\/a>.<\/p>\n<p>The WebKit module listens to the QT_WEBKIT_LOG and QTWEBKIT_PLUGIN_PATH variables. These two control which logging channels to use and where to look for plugins.<\/p>\n<p>This concludes this afternoons grepping. I will continue with TMPDIR before reaching the Qt for Embedded Linux source.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>>Continued from here. The Qt painting system uses four quite interesting environment variables: QT_FLUSH_PAINT, QT_FLUSH_PAINT_EVENT, QT_FLUSH_UPDATE and QT_FLUSH_WINDOWSURFACE. The purpose of each of these four is to initialize painting surfaces with a yellow colour before painting. See Aaron&#8217;s blog on this for an example. The input method module, qmultiinputcontext.cpp, uses the QT_IM_MODULE and QT4_IM_MODULE variables &hellip; <a href=\"https:\/\/www.thelins.se\/johan\/blog\/2008\/12\/environmentally-friendly\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">>Environmentally Friendly<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-qt"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":0,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}