Pane not showing in Window->Panes

I started fresh and was using the pane example in the sample to work from.

I can't see what I am missing after taking a while to scrutinise it. Anyone see what I missed ?

When I go to about plugins it has loaded successfully - but there's no sign of it in the interface.

Thanks for any guidance.

 

myfirstplugin.h

 

#ifndef MYFIRSTPLUGIN_H#define MYFIRSTPLUGIN_H#include "dzpane.h"#include "dzaction.h"class myFirstPluginAction : public DzPaneAction {    Q_OBJECTpublic:    myFirstPluginAction() : DzPaneAction("myFirstPlugin") {    }};class myFirstPlugin : public DzPane {    Q_OBJECTpublic:    myFirstPlugin();    ~myFirstPlugin();};#endif // MYFIRSTPLUGIN_H

 

main.cpp

 

#include "dzapp.h"#include "dzplugin.h"#include "version.h"#include "myfirstplugin.h"DZ_PLUGIN_DEFINITION("Toodle Pip");DZ_PLUGIN_AUTHOR("Mr Morph");DZ_PLUGIN_VERSION(PLUGIN_MAJOR, PLUGIN_MINOR, PLUGIN_REV, PLUGIN_BUILD);DZ_PLUGIN_DESCRIPTION(    "This is probably not going to work ! "	);DZ_PLUGIN_CLASS_GUID(myFirstPlugin, B833CC13 - F88D - 4fd2 - 8C95 - F82D0BF3A5D0);

 

myfirstplugin.cpp

 

#include "myfirstplugin.h"#include <QtCore/QObject>#include <QtGui/QPushButton>#include <QtGui/QVBoxLayout>#include "dzapp.h"#include "dzbone.h"#include "dzfacetmesh.h"#include "dzhelpmgr.h"#include "dzobject.h"#include "dzscene.h"#include "dzshape.h"#include "dzskeleton.h"#include "dzstyle.h"myFirstPlugin::myFirstPlugin() : DzPane("Hello there") {	QGroupBox *groupBox = new QGroupBox(tr("Exclusive Radio Buttons"));	QRadioButton *radio1 = new QRadioButton(tr("&Radio button 1"));	QRadioButton *radio2 = new QRadioButton(tr("R&adio button 2"));	QRadioButton *radio3 = new QRadioButton(tr("Ra&dio button 3"));	radio1->setChecked(true);	QGridLayout *gLay = new QGridLayout(groupBox);	gLay->addWidget(radio1);	gLay->addWidget(radio2);	gLay->addWidget(radio3);    //Create QPushButton	QPushButton *button1 = new QPushButton(tr("Button 1"));	button1->setObjectName("button1");    QMetaObject::connectSlotsByName(this);	// Define the layout for the pane	QVBoxLayout *mainLyt = new QVBoxLayout();	mainLyt->addWidget(groupBox);	mainLyt->addWidget(button1);	mainLyt->addStretch(1);	// Set the layout for the pane	setLayout(mainLyt);    showPane();}myFirstPlugin::~myFirstPlugin(){}

 

Comments

Sign In or Register to comment.