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

List:       kde-devel
Subject:    KApplication and QWidget
From:       Gioele Barabucci <dev () gioelebarabucci ! com>
Date:       2001-04-21 15:18:55
[Download RAW message or body]

Hi,
I've a KApplication (MyApp) with

class MyApp : public KApplication { [...] //common constructor
private:
	Gui *gui;
};

class Gui : public QWidget {[...]} //common constructor

MyApp::MyApp {
	gui = new Gui(this, 0);
}

This gives me the following error since MyApp != QWidget

In method `MyApp::MyApp()':
no matching function for call to `Gui::Gui(MyApp *, int)'
candidates are: Gui::Gui(QWidget * = 0, const char * = 0)
                Gui::Gui(const Gui &)

How can I solve this?
removing "this, 0" and adding a "delete Gui" in MyApp::~MyApp() ?

-- 
Gioele Barabucci (Gb]) 
) mailto:dev@gioelebarabucci.com
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) )          /Magic Pie^Oasis


>> 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