V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
circsqua
V2EX  ›  Qt

继承 QProcess 时编译器报大量错误

  •  
  •   circsqua ·
    circsqua · Feb 7, 2020 · 25139 views
    This topic created in 2281 days ago, the information mentioned may be changed or developed.
    使用的这里的代码 http://www.xargs.com/qml/process.html
    很简单的例子
    为了定位问题,暂时取消 QML 部分调用,也一样报警告
    两条显著与代码相关的错误
    return type 'class QString' is incomplete
    Q_OBJECT
    ^
    invalid use of incomplete type 'class QString'
    Q_OBJECT
    ^

    环境:Qt5.14.1,自带的 mingw73-64 和 prebuild 和 qtcreator
    我不是很懂 C++,源码需要安装吗?

    THX
    Supplement 1  ·  Feb 7, 2020
    最后发现是例子里 Process 似乎和库方法有冲突(重名?)
    改了就可以了……
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1106 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:01 · PVG 07:01 · LAX 16:01 · JFK 19:01
    ♥ Do have faith in what you're doing.