[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: How to show lineedit at mainwindow?
From: Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date: 2001-11-05 12:05:20
[Download RAW message or body]
On Samstag, 3. November 2001 09:14 Force Ding wrote:
> I have a windows which inherit from KTMainWindow. and add a lineedit on
> toolbar. But, lineedit can'nt be show. Why?
> Code:
> const int URLLined = 1;
> toolBar()->insertLined( "" , URLLined, SIGNAL (returnPressed () ), this,
> SLOT (slotNewURL) ) ;
> toolBar()->setItemAutoSized (URLLined);
> toolBar()->show();
> toolBar()->getLined(URLLined)->show();
Weird. If you have the kdelibs sources, have a look at
kdeui/tests/kwindowtest.cpp, there is similar code, which works just fine (I
only tested with KDE 2.2 tho.
Cheers
Carsten Pfeiffer
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic