Monthly Archives: May 2014
How to tell if the power outage is only for your apartment or a wider area

Had a 10-minutes power failure the other day. In this situation, after a couple of minutes, you probably want to find out if the power outage is just your apartment (which means you have to do something about it) or other people as well (which means someone else has already called it in).

It was around lunchtime and the sun was shining, so I couldn’t tell just by looking outside. Of course I could’ve exited my apartment and checked the lights in the stairway but being lazy I figured there was a quicker way. Indeed there was. Take your phone and browse for Wi-Fi connections 🙂 Unless you have lots of crazy survivalist neighbors that have a UPS, if the power outage is widespread you will notice that all the usual hotspots around you are gone. Which means you can relax and not worry about fixing your fuses/breakers.

Deploying a real Qt app – understanding more of Qt

I’ve written about deploying a simple Qt app, but what about deploying a more complex, “real” Qt app. This means copying all the needed files: besides the main executable file there usually are some shared libraries, e.g. DLLs, and some other files like configuration or certificate files. In this blog post I’ll concentrate on getting the binary executable files setup correct; of course there can be other important files, like the qmldir declaration file in the QtQuick.2 subdirectory etc. but that’s a topic for another blog post.

First there’s the option of static linking i.e. one build that packs all of Qt’s DLLs and your code together in a single .exe file. This hugely simplifies deployment, but it’s a time consuming process that can be tricky; of course if you distribute large quantities of your software, static linking is definitely something you should try.

But if you’re not yet targeting a couple of millions of PCs (or a similar number 🙂 ) then you’re building your Qt app the normal, dynamic way. And that app structure in Qt depends heavily on shared or dynamically loaded libraries; on your deployment PC the Qt installer sets these up for you, but on other PCs you need to do it yourself. You can either use an installer, for example Qt has a good one, or copy the files manually.

Read More…