Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    1
    2
    1229
    Loading More Posts
    • 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.
    • 8Observer8
      8Observer8 last edited by

      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 Reply Quote 0
      • 8Observer8
        8Observer8 last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post