A "Ubuntu HUD"-like HeadUpDisplay using Qt and Qt Quick



  • See video: "HUD enabled arora":http://youtu.be/D708d1mi7uw
    Find the source at: "gitorious - poorhud":https://gitorious.org/poorhud

    poorHud is a simple take on the "Ubuntu HUD" =)
    I implemented a HUD for QMainWindow based applications.
    Just link against the lib poorHud and add one line of code to your app and you are ready to go..

    poorHud is a library which enables every QMainWindow based app to have its own HUD (HeadOverDisplay).
    This is a GUI heavily inspired by the Ubuntu HUD.
    This is how it works:
    poorHud creates an overlay window over your application.
    Toggle the overlay via "CTRL+SHIFT+O" (O not zero).
    The overlay displays the menu structure of your application in a list, that can be filtered as you type.
    Use the arrow keys to navigate the results. Press enter to select a menu entry.
    The action that is triggered by the menu is activated.

    The following two steps are all that is needed to enable the HUD:

    Link against the lib: add -lpoorHud to your .pro file

    Add the following line in a suitable place of your sources: PoorHud* hud = new PoorHud(&w);

    enjoy =)

    For the screencast I enabled a HUD for the qt browser “arora”.

    A minimalistic example on how to add the hud to your app:

    @
    #include "poorhud.h"

    int main(int argc, char argv[])
    {
    QApplication a(argc, argv);
    MainWindow w;
    PoorHud hud = new PoorHud(&w);
    w.show(); return a.exec();
    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.