Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.1.1. QWebView. ERROR: ICU ambiguous alias warning for encoding: windows-1251

Qt 5.1.1. QWebView. ERROR: ICU ambiguous alias warning for encoding: windows-1251

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.3k Views
  • 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.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by
    #1

    Hi,

    When I close my application I receive:

    [CODE]
    ERROR: ICU ambiguous alias warning for encoding: windows-1251
    platform\text\TextCodecICU.cpp(247) : void WebCore::TextCodecICU::createICUConverter() const
    ERROR: ICU ambiguous alias warning for encoding: windows-1251
    platform\text\TextCodecICU.cpp(247) : void WebCore::TextCodecICU::createICUConverter() const
    LEAK: 18 CachedResource
    LEAK: 1 Range
    LEAK: 462 WebCoreNode
    [/CODE]

    This is my application:

    WebBrowser.pro
    [CODE]
    #-------------------------------------------------

    Project created by QtCreator 2013-12-03T11:08:08

    #-------------------------------------------------

    QT += core gui webkitwidgets

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = WebBrowser
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui
    [/CODE]

    mainwindow.h
    [CODE]
    #ifndef MAINWINDOW_H
    #define MAINWINDOW_H

    #include <QMainWindow>

    namespace Ui {
    class MainWindow;
    }

    class MainWindow : public QMainWindow
    {
    Q_OBJECT

    public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    private:
    Ui::MainWindow *ui;
    };

    #endif // MAINWINDOW_H
    [/CODE]

    mainwindow.cpp
    [CODE]
    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QUrl>

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    ui->setupUi(this);
    ui->webView->load(QUrl("http://vk.com"));
    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }
    [/CODE]

    main.cpp
    [CODE]
    #include "mainwindow.h"
    #include <QApplication>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec&#40;&#41;;
    

    }
    [/CODE]

    1 Reply Last reply
    0
    • 8Observer88 Offline
      8Observer88 Offline
      8Observer8
      wrote on last edited by
      #2

      I think, it is a bug of the Qt 5.1.1.

      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