Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qtwebkit language problem in windows xp and xp sp3
Forum Updated to NodeBB v4.3 + New Features

Qtwebkit language problem in windows xp and xp sp3

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rishygupta
    wrote on last edited by
    #1

    I am making a browser in windows with qwebview .In window vista+7+8 its showing the language correctly but in windows xp its not abe to show some websites "http://www.goolgule.com/":http://www.goolgule.com/ . When i copied some fonts in windows/fonts folder firefox works correcty but not browser with qt even i tried

    Qupzilla"link":www.qupzilla.com/

    Qtweb "Your text to link here...":http://qtweb.net/‎

    I don't know its problem of qtwebkit or i am missing something.
    this are some code :

    @ QWebSettings *defaultSettings = QWebSettings::globalSettings();
    QString standardFontFamily = defaultSettings->fontFamily(QWebSettings::StandardFont);
    int standardFontSize = defaultSettings->fontSize(QWebSettings::DefaultFontSize) +;
    QFont standardFont = QFont(standardFontFamily, standardFontSize);
    standardFont = (settings.value(QLatin1String("standardFont"), standardFont)).value<QFont>();
    defaultSettings->setFontFamily(QWebSettings::StandardFont, standardFont.family());
    defaultSettings->setFontSize(QWebSettings::DefaultFontSize, standardFont.pointSize());

    QString fixedFontFamily = defaultSettings->fontFamily(QWebSettings::FixedFont);
    int fixedFontSize = defaultSettings->fontSize(QWebSettings::DefaultFixedFontSize);
    QFont fixedFont = QFont(fixedFontFamily, fixedFontSize);
    fixedFont = (settings.value(QLatin1String("fixedFont"), fixedFont)).value<QFont>();
    defaultSettings->setFontFamily(QWebSettings::FixedFont, fixedFont.family());
    defaultSettings->setFontSize(QWebSettings::DefaultFixedFontSize, fixedFont.pointSize());
    
    bool zoom_text_only = settings.value(QLatin1String("zoom_text_only"), false).toBool();
    defaultSettings->setAttribute(QWebSettings::ZoomTextOnly, zoom_text_only);
    
    defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, settings.value(QLatin1String("enableJavascript"), true).toBool());
    defaultSettings->setAttribute(QWebSettings::JavascriptCanOpenWindows, ! (settings.value(QLatin1String("blockPopups"), true).toBool()));
    defaultSettings->setAttribute(QWebSettings::JavaEnabled, settings.value("allowJava", true).toBool());
    defaultSettings->setAttribute(QWebSettings::DnsPrefetchEnabled, settings.value("DNS-Prefetch", false).toBool());
    defaultSettings->setAttribute(QWebSettings::JavascriptCanAccessClipboard, settings.value("allowJavaScriptAccessClipboard", true).toBool());
    defaultSettings->setAttribute(QWebSettings::LinksIncludedInFocusChain, settings.value("IncludeLinkInFocusChain", false).toBool());
    defaultSettings->setAttribute(QWebSettings::ZoomTextOnly, settings.value("zoomTextOnly", false).toBool());
    defaultSettings->setAttribute(QWebSettings::PrintElementBackgrounds, settings.value("PrintElementBackground", true).toBool());
    defaultSettings->setAttribute(QWebSettings::XSSAuditingEnabled, settings.value("XSSAuditing", false).toBool());
    
    defaultSettings->setAttribute(QWebSettings::PluginsEnabled, settings.value(QLatin1String("enablePlugins"), true).toBool());
    defaultSettings->setAttribute(QWebSettings::AutoLoadImages, settings.value(QLatin1String("autoLoadImages"), true).toBool());
    
    bool enable_local_storage = settings.value(QLatin1String("enableLocalStorage"), false).toBool();
    defaultSettings->setAttribute(QWebSettings::LocalStorageEnabled, enable_local_storage);
    defaultSettings->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, enable_local_storage);
    defaultSettings->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, enable_local_storage);
    
    QLatin1String localStoragePath ;
    defaultSettings->setLocalStoragePath(localStoragePath);
    defaultSettings->setOfflineStoragePath(localStoragePath);
    defaultSettings->setOfflineWebApplicationCachePath(localStoragePath);
    
    defaultSettings->setIconDatabasePath(dataLocation());
    
    QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled,true);
    QWebSettings::globalSettings()->setWebGraphic(QWebSettings::MissingImageGraphic, QPixmap());@
    

    Qt version 4.8.1+mingw, i also tried 5.0.1+mvc and 5.1+mingw

    thanks

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rishygupta
      wrote on last edited by
      #2

      www.epa.gov/chinese/‎
      http://www.anime-manga.jp

      these language also not working

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved