From kde-devel Wed Apr 12 17:48:34 2000 From: Sven Radej Date: Wed, 12 Apr 2000 17:48:34 +0000 To: kde-devel Subject: Re: KToolBar bug X-MARC-Message: https://marc.info/?l=kde-devel&m=95556459527298 On Wed, 12 Apr 2000, Joachim Ansorg wrote: >Hi! >Thanks for the answer. > >Here's a small example (doing this in a KTMainWindow): > >toolBar()->insertLined("Test", ID_PRESENTER_LINED, SIGNAL(returnPressed(const QString&)), this, SLOT(lineEditChanged(const QString&)), true, i18n("Edit line for the current key"), 150); > >The error message looks like this > > >QPainter::begin: Cannot paint null pixmap >QPainter::setPen: Will be reset by begin() This doesn´t look as insertLined(...) problem. Looks more like pixmap problem ... (iconLoader returned null pixmap for some button). Application still crashes if you comment out this line, right? -- Sven Radej radej@kde.org KDE developer Visit http://www.kde.org