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. QWebView Page Loading Issue in Release Mode with Windows
Forum Updated to NodeBB v4.3 + New Features

QWebView Page Loading Issue in Release Mode with Windows

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.1k 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.
  • Z Offline
    Z Offline
    Zain
    wrote on last edited by
    #1

    Hello All,

    I am facing very strange problem with QWebView, In my application I need to get web page source which have Japanese Characters.

    Here is my code

    @
    void MainWindow::on_btnGetSource_clicked()
    {
    QString url=QString::fromUtf8("http://www.amazon.co.jp/BUFFALO-外付けハードディスク-Regza-HD-LB2-0TU2-フラストレーションフリーパッケージ/dp/B0052VIGXA/ref=sr_1_1?s=electronics&ie=UTF8&qid=1366439116&sr=1-1");

    ui->wvProductpage->load(QUrl(url));
    

    }

    void MainWindow::on_wvProductpage_loadFinished(bool arg1)
    {
    QString htmlString=ui->wvProductpage->page()->currentFrame()->toHtml();

    }

    @

    This above code working in Debug Mode with Windows OS as well as in Debug and Release mode with MAC OS.

    But it is not working in Release mode with Windows OS. In Release with Windows webpage not loading with proper Japanes Characters.

    For example I am getting like followes.

    BUFFALO ŠO•t‚¯ƒn[ƒhƒfƒBƒXƒN PC/‰Æ“d‘Ήž (Regza[ƒŒƒOƒU]/Aquos[ƒAƒNƒIƒX]) 2TB HD-LB2.0TU2/N [ƒtƒ‰ƒXƒgƒŒ[ƒVƒ‡ƒ“ƒtƒŠ[ƒpƒbƒP[ƒW(FFP)]

    Instead of

    BUFFALO 外付けハードディスク PC/家電対応 (Regza[レグザ]/Aquos[アクオス]) 2TB HD-LB2.0TU2/N [フラストレーションフリーパッケージ(FFP)]

    on my webview and also in string.

    Please help me to solve this issue. I need to get proper page source in release mode.
    I am using QT4.8.1 and MinGW compiler.

    Thanks
    Zain

    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