Eclipse plugin AddressBook sample missing a slot?
I am working on Fedora/Eclipse/Qt4.3.4.
I am doing the AddressBook sample that came with the Eclipse plugin, following the cheat sheet provided.
When Iget to the stage where I have to wire up the Add button on the main form by using the signals/slots editor, I find that the form has no 'accept()' slot, even if I choose 'Show all signals and slots'. When I open up the CPP file for the dialog, I see my dialog class has been derived from QWidget, like this:
#include <QtGui/QWidget>
#include "ui_addressbook.h"
class AddressBook : public QWidget
{
Q_OBJECT
.....etc ....
So basically I think the problem is that the AddressBook should be derived from QDialog to get that accept() slot.
Is that right?
If it is, how did I get the wrong base class ?
How can I most easily fix it? I could just edit the header but not sure of all the other references.
BTW the app compiles and runs just fine but of course the buttons don't do anythings.
Thanks loads
wildsalmon
Free fish for free men ....
This post has been edited 1 times, last edit by "wildsalmon" (Apr 14th 2008, 10:35pm)