Activate QtWebKit module for Qt Quick after manually building Qt inWindows

After building Qt from source code, you’ll find out that Qt Creator will complain that “module QtWebKit is not installed” for your Qt WebKit 3.0 applications.

In this case, follow the order here as a remedy:

  1. Copy jsc.exe and QtWebBrowser.exe in qtwebkit/bin to qtbase/bin
  2. Copy QtWebKit directory from qtwebkit/import to qtbase/qml
  3. in qtbase/qml/QtWebKit, make a new file named qmldir, and write down following:
    module QtWebKit
    plugin qmlwebkitplugin
  4. Try your code
  5. PROFIT! :)

Windows에서 Qt를 build한 후 QtWebKit을 활성화하는 방법

Qt를 소스코드에서 빌드한 후 Qt Quick에서 QtWebKit 3.0을 import한 후 실행해보면, Qt Creator가 “module QtWebKit is not installed”라는 메시지를 내며 Qt WebKit을 제대로 가져오지 못하는 경우가 있습니다. 이 경우 다음을 따라해보세요:

  1. qtwebkit/bin에 있는 jsc.exe와 QtWebBrowser.exe를 qtbase/bin으로 복사합니다
  2. qtwebkit/import에 있는 QtWebKit 디렉토리를 qtbase/qml에 복사합니다
  3. qtbase/qml/QtWebKit 디렉토리에 qmldir이라는 이름의 파일을 새로 생성하고 다음의 내용을 입력합니다:
    module QtWebKit
    plugin qmlwebkitplugin
  4. 코드를 테스트합니다
  5. PROFIT! :)

블로그를 이전합니다

뭐, 이런 작은 변방의 블로그에 관심있으신 분들은 아무도 없으시리라 생각합니다만...... (웃음) 블로그 플랫폼을 블로거에서 dev.to로 옮겼습니다. 새 URL은 아래와 같습니다: https://dev.to/teminian 새로운 거처에서 뵙겠습니...

Popular in Code{nested}