View Single Post
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#1
Hi,

I've read quite a few threads here and also some pages on the Wiki, but nobody else seems to have the problem I'm seeing, so I must be doing something stupid :-)

I have a very simple app prototype, which I code on the desktop using Designer and eric4, then copy to the N900. It looks strange on the PC but OK on the N900 thanks to all the tips I found here (stacked windows etc.).

It also works as expected on the PC, and almost so on the N900 except for one thing: the toolbar. It's a very plain toolbar with two buttons using QActions, all done in Designer.

The toolbar shows up on the N900, the buttons can be pressed, but they don't do anything (ie, slots are never called).

The signals are bound by eric4 in the usual "connectSlotsByName" way. Is this not supposed to work in Fremantle ? I've read the Qt-for-Maemo5 platform notes and they don't mention toolbars.

Is there something special/different I need to do to make this work on both platforms ?

TIA,
fp

Edit: just tried binding the same QActions to a menuBar, which translates to a "system menu" in Maemo. Same result: menu shows with its entries, is interactive, but doesn't do anything.

So it's not an issue with the toolbar or menu, probably more with the signal/slots...
__________________
maemo blog

Last edited by fpp; 2010-08-23 at 18:36.