QT自定义窗口插件在QT Creator的应用

2022-08-15 08:47:53

      根据《C++ GUI Programming with Qt 4,Second Edition》中第5章的“在Qt设计师中集成自定义窗口部件”小节,使用插件法生成的窗口部件利用QT Creator编译后,在QT Creator中的设计师是找不到的,但是在打开<setuproot>/qt/bin中的Qt designer是可以找到该插件的。

     如果在Qt designer插入该插件,然后在QT Creator中编译是通不过的。

     照成这种问题的原因是QT Creator和Qt designer的窗口部件插件是存在不同路径的.Qt designer是在<setuproot>/qt/plugins/designer中,而QT Creator是在<setuproot>/bin/designer中,解决办法只需将<setuproot>/qt/plugins/designer中的全部内容复制到setuproot>/bin/designer中即可。

(转载请说明出处,谢谢……)

  • 作者:zzh1114
  • 原文链接:https://blog.csdn.net/zzh1114/article/details/6025287
    更新时间:2022-08-15 08:47:53