View Single Post
Posts: 249 | Thanked: 277 times | Joined on May 2010 @ Brighton, UK
#1
Been getting started with Qt for Maemo to build something I've been musing over.

Anyway, I've got the Win32 Qt Creator environment set up, got it building for the various targets (N900, QEMU, Simulator, and Win32), and have my little test proggie with auto rotation, stackable windows, and so on. What I've been unable to figure out though is how to get icons to appear, in particular on menus. They appear on the Win32 build, but none of the others.

Here's what I have for one of them...
Code:
aboutAct = new QAction(QIcon(":/resources/icon.png"), tr("&About"), this);
	aboutAct->setStatusTip(tr("Show the application's About box"));
	aboutAct->setIconVisibleInMenu(true);
I know it's possible on Maemo, as Gnumeric has them. I've just got no ideas right now, and the next step is to pore over the Gnumeric port's code. Which I might leave until more important bits work