[Qt-interest] Shared data issue

Srdjan Todorovic todorovic.s at googlemail.com
Tue Jul 13 10:53:19 CEST 2010


Hi,

On 13 July 2010 08:27, Sajjad <dosto.walla at gmail.com> wrote:

> void GroupBoxCommandExtendedBox::createActions()
> {
>     swapAction = new QAction(tr("&Swap translate/rotate"),this);
>     swapAction->setStatusTip(tr("Swap  the glTranslate and the glRotate
> command"));
>     swapAction->setCheckable(true);
>
>
> connect(swapAction,SIGNAL(triggered(bool)),pSharedData,SLOT(setSwapFlag(bool)));

At this exact point in time, is pSharedData == NULL ? Is it allocated?

> The program crashes on the above connection. Is that possible to have a
> non-checkable context menu and still manage to send a boolean to the slot?

Regards,
Srdjan




More information about the Qt-interest-old mailing list