#ifndef QMPQABSTRACTEDITOR_H#define QMPQABSTRACTEDITOR_H#include <QObject>#include <QDebug>class QMPQAbstractEditor : public QObject{ Q_OBJECTpublic: QMPQAbstractEditor(); virtual void vopen() = 0;public slots: void open() {this->vopen();}};class test :public QMPQAbstractEditor{ void vopen() {qDebug() << "lol";}};#endif // QMPQABSTRACTEDITOR_H QMPQAbstractEditor * e = new test(); connect(ui->action, SIGNAL(triggered()), e, SLOT(open())); //печатает lol
void *TabDialog::qt_metacast(const char *_clname){ if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_TabDialog)) return static_cast<void*>(const_cast< TabDialog*>(this)); return QDialog::qt_metacast(_clname);}int TabDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a){ _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: TabChanged((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 1; } return _id;}
QString s = "Alex";s += "_1";