Category Archives: Qt

Debugging DPDK programs in QtCreator: the root issue

There doesn’t seem to be any easy way to get DPDK to work without root permission. Not impossible to deal with when running code but it does present a problem when debugging with QtCreator (or any other IDE that directly calls the debugger). There is a trick that allows gdb to be run with root permission without requiring a password (largely as described here).

Continue reading


Restarting a Qt app programmatically

I had a requirement to restart some Qt apps remotely. This kind of thing can be a little tricky in a multi-platform environment but of course Qt makes it nice and easy – just four lines of code:

    QStringList args = QApplication::arguments();
    QProcess::startDetached(QApplication::applicationFilePath(), args);

The removeFirst() is needed because the first string in the list is the app name – the result is just the arguments that were originally passed to the app.