[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Still doesn't work(was: writing the text of a QLineEdit to disk)
From:       Malte.Starostik () t-online ! de (Malte Starostik)
Date:       2001-04-16 17:25:58
[Download RAW message or body]

On Montag, 16. April 2001 19:18, Michael Grützner wrote:
> Hi,
>
>
> ok, I've tried "stream << getName->text();",
> but it still doesn't work.
>
> I get "invalid use of undefined type 'class QLineEdit'
> and "forward declaration of 'class QLineEdit'
If you create a dialog with Designer, you need to explicitly add #include 
statements for the widgets you use in subclasses, as designer only forward 
declares them in the header (which speeds up compilation and reduces 
recompilations).
So, add
#include <qlineedit.h>
and be fine.
-Malte
 
>> Visit http://master.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