From kde-devel Thu Jun 25 15:29:04 2009 From: Robin Atwood Date: Thu, 25 Jun 2009 15:29:04 +0000 To: kde-devel Subject: How to make an extra toolbar? Message-Id: <200906252229.05179.robin () binro ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=124594384415930 In the KDE3 version of my app I created an extra toolbar with no associated menu simply by doing: toolBar( "extra" )->insertButton(...) toolBar( "extra" )->insertComboBox(...) I tried a similar thing with KDE4 by declaring a couple of KPushButton and KComboBox objects and adding them them via: toolBar( "extra" )->addWidget( pb1 ), etc. Everything compiled cleanly, so imagine my dismay when after starting the app there was no sign of the new toolbar. :( Is it necessary for every toolbar to be configured in the XML rc file? Must I use actions rather than widgets? TIA -Robin -- ---------------------------------------------------------------------- Robin Atwood. "Ship me somewheres east of Suez, where the best is like the worst, Where there ain't no Ten Commandments an' a man can raise a thirst" from "Mandalay" by Rudyard Kipling ---------------------------------------------------------------------- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<