久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

未解析的外部符號(hào)“public: virtual struct QMetaObject

Unresolved external symbol quot;public: virtual struct QMetaObject const * __thiscall Parent(未解析的外部符號(hào)“public: virtual struct QMetaObject const * __thiscall Parent)
本文介紹了未解析的外部符號(hào)“public: virtual struct QMetaObject const * __thiscall Parent的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我從 QObject 繼承了一個(gè)類(lèi):

I inherited a class from QObject :

class Parent: public QObject
{
    Q_OBJECT
    QObject* cl;

public:
    Parent(QObject *parent=0):QObject(parent) {
        cl = NULL;
    }

    QObject* getCl() const {
        return cl;
    }
    void setCl(QObject *obj) {
        cl = obj;
    }
};

但是當(dāng)我寫(xiě):

Parent ev;

我收到以下錯(cuò)誤:

main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Parent::metaObject(void)const " (?metaObject@Parent@@UBEPBUQMetaObject@@XZ)

main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual void * __thiscall Parent::qt_metacast(char const *)" (?qt_metacast@Parent@@UAEPAXPBD@Z)

main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual int __thiscall Parent::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Parent@@UAEHW4Call@QMetaObject@@HPAPAX@Z)

推薦答案

您應(yīng)該刪除應(yīng)用程序的 debug 文件夾,然后再次運(yùn)行以解決此問(wèn)題.

You should delete the debug folder of your application and run it again to correct this problem.

這篇關(guān)于未解析的外部符號(hào)“public: virtual struct QMetaObject const * __thiscall Parent的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數(shù)據(jù)?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫(xiě) for() 循環(huán): for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環(huán)?)
Reusing thread in loop c++(在循環(huán) C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環(huán)形?)
主站蜘蛛池模板: 99re国产精品 | 欧美精品一二三区 | 尤物在线精品视频 | 日韩精品av一区二区三区 | 久久久亚洲成人 | 国产成人精品一区二区三区网站观看 | 日韩精品在线视频 | 狠狠亚洲| 在线一级片 | 一区视频在线免费观看 | 欧美日韩高清在线一区 | 七七婷婷婷婷精品国产 | 九九av| 视频一区二区中文字幕 | 久久久久亚洲精品 | 欧美黄色一区 | 在线91| 亚洲91视频 | 天天干天天操天天射 | 最新中文字幕在线 | 在线观看免费毛片 | 精品国产乱码久久久久久a丨 | 亚洲男女激情 | 国产成人高清成人av片在线看 | 人人天天操 | wwwxxx日本在线观看 | 毛片一级片 | 久久精品这里精品 | 午夜免费精品视频 | 亚洲精品一区av在线播放 | 国产精品国产精品国产专区不卡 | caoporn国产精品免费公开 | 精品一级电影 | 中文字幕在线二区 | 91文字幕巨乱亚洲香蕉 | 成年人在线观看视频 | 成人av免费网站 | 亚洲国产成人在线视频 | 国产欧美日韩一区二区三区在线 | 久久久久久久久蜜桃 | 亚洲精品成人 |