GSoC/GCI Archive
Google Code-in 2011 KDE

do a screenshot of result of attached code on OS X

completed by: Ivo Nunes

mentors: Sune Vuorela

As inspiration for my work on the future of popup notifications, I would love to see how the following code looks on various operating systems, and I need screenshots of various operating systems.

A assessment wether or not this is 'integrated' in the system is also required.

The attached code in c++ or python does the same thing, and you can choose either.

This task is about doing it on MacOS X, and might require a application called 'Growl' installed.


Code in c++:

#include <QtGui>

int main(int argc, char** argv) {

  QApplication app(argc,argv);

  QSystemTrayIcon* icon = new QSystemTrayIcon();


  icon->showMessage("This is title", "This is a message");


  return app.exec();



Code in python:

#!/usr/bin/env python

import sys

from PyQt4.QtCore import QTimer

from PyQt4.QtGui import QApplication, QSystemTrayIcon

app = QApplication(sys.argv)

icon = QSystemTrayIcon(app)

icon.showMessage('foo', 'bar')

QTimer.singleShot(5*1000, app.quit)