From kde-devel Mon Oct 23 11:58:45 2006 From: Frank Osterfeld Date: Mon, 23 Oct 2006 11:58:45 +0000 To: kde-devel Subject: Re: connect( KMultiTabbar->tab(theId), SIGNAL( clicked( int ) ), Message-Id: <200610231404.46022.frank.osterfeld () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-devel&m=116160472531556 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1285432551==" --===============1285432551== Content-Type: multipart/signed; boundary="nextPart4299697.HTTbd4ErQs"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4299697.HTTbd4ErQs Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 23 October 2006 10:34, Philipp H=C3=BClsdunk wrote: > I have created a KMultiTabBar. Then I added a tab: > m_multiTabBar->appendTab( icon, theId, "test" ); > I have tried to connect the signal if a tab is clicked: > connect( m_multiTabBar->tab( theId ), SIGNAL( clicked( int ) ), widget, > SLOT( doSomthing( int ) ) ); If your test slot is really doSomething() and you just copied this line int= o=20 the mail, you have a typo: doSomthing instead doSomething() > It seems that doSomething is not called is I click on runtime on the > created tab of my KMultiTabBar. What should I do to connect the signal if= a > tab on my KMultiTabBar to a slot? Do you get an error message on the console at runtime when the connect is=20 executed? =46rank --nextPart4299697.HTTbd4ErQs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBFPK/dFZrnbFOwfvQRAsKeAKCuNs7xyP113OQWlCNfUgRMwSiMtACfVWxD m95Z2iPt8z+XV5stSRYppbo= =d7kn -----END PGP SIGNATURE----- --nextPart4299697.HTTbd4ErQs-- --===============1285432551== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1285432551==--