Answer is here: http://redmine.webtoolkit.eu/boards/2/topics/show/122
In the hangman example, we do it like this:
BackToGameText = new WText(" Gaming Grounds ", elementAt(2, 0));
BackToGameText->decorationStyle().setCursor(PointingHandCursor);
BackToGameText->clicked().connect(SLOT(this, HangmanGame::showGame));
You can add some additional CSS styles to underline it, set it to
different color, ...
Alternatively, use a WAnchor and WAnchor::setRefInternalPath() if you
don't only want the link to look like an anchor but also behave like
an anchor.
On Sat, Feb 13, 2010 at 7:07 PM, omer katz <[email protected]> wrote:
> On Saturday, February 13, 2010, Sergey Bryukov
> <[email protected]> wrote:
>> Hello! How to make WText looks like a link, and then catch clicked() signal?
>> Probably Im looking for like this:
>>
>> text = new WText("<a>link</a>", this);
>> text->clicked().connect(SLOT(x,x));
>>
>> Any advice please?
>>
>> Sergey
> You should take a look at the wt code that emitts the clicked signal
> in WAnchor and try to replicate it. Why won't you use an anchor to the
> same place?
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest