#include "mycombobox.h"
{
}
MyCombobox::~MyCombobox()
{
}
#include "mycombobox.h"
MyCombobox::MyCombobox(QWidget *parent) : QComboBox(parent)
{
}
MyCombobox::~MyCombobox()
{
}
To copy to clipboard, switch view to plain text mode
#ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H
#include <QObject>
#include <QWidget>
#include <QComboBox>
{
Q_OBJECT
public:
~MyCombobox();
};
#endif // MYCOMBOBOX_H
#ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H
#include <QObject>
#include <QWidget>
#include <QComboBox>
class MyCombobox : public QComboBox
{
Q_OBJECT
public:
MyCombobox(QWidget *parent = 0);
~MyCombobox();
};
#endif // MYCOMBOBOX_H
To copy to clipboard, switch view to plain text mode
The error is when I only use the above code without QMouseEvent etc
Bookmarks