[Qt-interest] Need to show a dialog on click of QLabel (Scott Aron Bloom)
chandrasekar wagmare
sekarwagmare at gmail.com
Fri May 15 08:18:31 CEST 2009
there is an option in Qt
if u connect all label signal to common slot()
can use ..
*if(sender() == label[10])
{
cond 1...
}else if(sender() == label[12]){
cond 2
}*
On Fri, May 15, 2009 at 11:39 AM, Kamakshi Sivaraman <
Kamakshi.Sivaraman at lntinfotech.com> wrote:
>
> Hi All,
>
> Thanks for your valuable suggestions it worked well.
> But now I had another problem, I have around 300 - 500 labels,each has
> click event and the click event working well,
> but all the labels are stored in array of QLabel. Now while clicking I want
> to know that the click event is generated by which label-object.
>
> After clicking the label, in the slot function I unable to recognize, from
> which label-object the click is generated.
> Do we have any provisions with QT that recognizes inside the slot function
> that which label-object
> is actually clicked like- storing the address of label-object etc.
> Please suggest some thing upon this.
>
> Thanks & Regards,
> S.KAMAKSHI
> Larsen & Toubro Infotech Limited
> Whitefield,
> Bangalore -560066
> *
> Larsen & Toubro Infotech Ltd.**
> **www.Lntinfotech.com* <http://www.lntinfotech.com/>
>
> This Document is classified as:
>
> L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
> Internal Use Only L&T Infotech General Business
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system.
> ______________________________________________________________________
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090515/4023cb32/attachment.html
More information about the Qt-interest-old
mailing list