天天看點

Qt編寫OCX插件注冊錯誤

用Qt編寫OCX插件在本機注冊沒問題,在其他機器上注冊時錯誤問題。

this application failed  to start because it could not find or load the Qt platform plugin "windows"。

雖然我把依賴的Qt庫已拷貝到目前ocx插件路徑下還是沒有解決。

問題是缺少Qt相關檔案,需要把你程式連結的Qt路徑下的platforms檔案夾,拷貝到與應用程式的同級目錄。