[Qt-interest] QPushButton's clicked signal(signal/slot issue)

Parameshwari paramr at tataelxsi.co.in
Wed Apr 8 10:56:59 CEST 2009


I wanted to create different shape of the frame?is that possible?. if it is
, please guive some clue..
i could able to see "drawFrame" option for Frame Object.

Regards
Param

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]On Behalf Of Ravi_Kalepalli
Sent: Wednesday, April 08, 2009 2:07 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QPushButton's clicked signal(signal/slot issue)


Hi everyone,
  I am working on  a media gallery where thumbnails of the pixmaps are set
on top of push buttons.When I click any of the pushButtons,
I want that the pixmap set on top of it to be  enlarged.
I am thinking of implementing it this way,whichever button is clicked,the
path of the picture on top of it (as QString) will be passed to the resize(
) slot.

But,according to a post I found on the internet-
according to Qt documentation, within the SIGNAL() and SLOT() macros only
function signatures are allowed? I.e. you can only say something like

connect(obj1, SIGNAL(sig(int)), obj2, SLOT(slot(int))),

and you cannot say this:

connect(obj1, SIGNAL(sig(int param)), obj2, SLOT(slot(int param))).


So,how do I send  the 'path' info along with the clicked() signal?

I also came across this http://doc.trolltech.com/4.5/qobject.html#sender but
couldn't make out much.
Am new to Qt so,hope the question's not too dumb.

Thank you.



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2764 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090408/f5e06403/attachment.bin 


More information about the Qt-interest-old mailing list