Qt-interest Archive, September 2002
changing iconbutton runtime
Message 1 in thread
Hello. Is possible to change an iconbutton clicking the button at runtime?
Giuseppe.
Message 2 in thread
don't quite understand,
if you mean change the icon on the button,
void QButton::setPixmap ( const QPixmap & pixmap )
make a function that calls this [say changeIcon()], connect function to
signal
void QButton::released () [signal]
something like:
connect(button, SIGNAL(released()),this, changeIcon())
have i understood your problem?
mike
-----Original Message-----
From: Giuseppe Falchi [mailto:egius.falk@tiscalinet.it]
Sent: Donnerstag, 5. September 2002 14:06
To: qt-interest@trolltech.com
Subject: changing iconbutton runtime
Hello. Is possible to change an iconbutton clicking the button at runtime?
Giuseppe.
--
[ signature omitted ]