Im using the Qt library. I'm currently trying to create my own QDockWidget (the class MY class is inheriting). Right now MY class has an ptr to QDockWidget. Does this even make sense? is that a legal statement? is there a better way to separate the QDockWidget from the rest of my program in Qt? Im a little lost on how to implement a new Dock Widget. Here is a copy of MY QDockWidget class:
#ifndef DOC_MENU_WIDGET_H
#define DOC_MENU_WIDGET_H
#include "App_interface.h"
#include <QObject>
#include <QWidget>
#include <QDockWidget>
class Doc_menu_widget : public QWidget
{
//Q_OBJECT
public:
Doc_menu_widget(App_interface *parent);
~Doc_menu_widget();
private:
QDockWidget *dock_widget;
};
#endif