Results 1 to 1 of 1

Thread: Qt QWebView White Screen After Codesign For App Store

  1. #1
    Join Date
    Nov 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt QWebView White Screen After Codesign For App Store

    Env: Qt 5.2 rc1 QML Mixed with C++ backend on 10.8 MBPro
    Issue: Qt QWebView White Screen After Codesign For App Store

    For speed and deployment purposes, I used QWebView on the C++ side to display websites such as "http://www.google.com". The webpage is displayed properly during development and even after I used macdeployqt for deployment. However, as soon as I issued codesign on the individual Qt libraries and package, the QWebView shows white screen.

    Various debugging steps I tried:
    * QWebView window showed. Right click shows refresh context menu. But shows white screen.
    * None of the QWebView signals was emitted.
    * Turned on QT_DEBUG_PLUGINS. Shows all library and plugin loads correctly
    * Comment out codesign build steps, rebuild, and QWebView works fine.
    * Tried Qt 5.1.1 and 5.2.0 rc1. Same issue.

    The codesign build steps in .pro is the following
    codesign.commands += codesign -f -s $${APPCERT} -i $${BUNDLEID} \"$${TARGET}.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore\"; codesign.commands += codesign -f -s $${APPCERT} -v --entitlements misc/MyEntitlements.plist \"$${TARGET}.app\";

    Any help, pointers, or suggestions would be much appreciated. Thanks in advance.


    Added after 1 51 minutes:


    It seems so obvious now, yet I was stuck for hours. In the Entitlements.plist, I need to add com.apple.security.network.client for network access.

    QWebView white screen because there is not internet connection.
    Last edited by kevin0722; 26th November 2013 at 06:56.

Similar Threads

  1. Qt white font on Nokia N8, block screen orientation
    By Asus_G72GX in forum Qt Programming
    Replies: 2
    Last Post: 26th December 2012, 07:11
  2. Replies: 0
    Last Post: 5th November 2010, 17:46
  3. Displaying Text on Black and White Screen
    By Stobie in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 8th December 2009, 01:03
  4. Webkit/QWebView rendering for small screen
    By mdvernick in forum Qt Programming
    Replies: 2
    Last Post: 12th September 2008, 17:26
  5. Screen get white on minimize?
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2008, 21:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.