Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2012
    Posts
    232
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Platforms
    Windows Android

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

    Hi,

    When I close my application I receive:

    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
    This is my application:

    WebBrowser.pro
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-12-03T11:08:08
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui webkitwidgets
    8.  
    9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    10.  
    11. TARGET = WebBrowser
    12. TEMPLATE = app
    13.  
    14.  
    15. SOURCES += main.cpp\
    16. mainwindow.cpp
    17.  
    18. HEADERS += mainwindow.h
    19.  
    20. FORMS += mainwindow.ui
    To copy to clipboard, switch view to plain text mode 

    mainwindow.h
    Qt Code:
    1. #ifndef MAINWINDOW_H
    2. #define MAINWINDOW_H
    3.  
    4. #include <QMainWindow>
    5.  
    6. namespace Ui {
    7. class MainWindow;
    8. }
    9.  
    10. class MainWindow : public QMainWindow
    11. {
    12. Q_OBJECT
    13.  
    14. public:
    15. explicit MainWindow(QWidget *parent = 0);
    16. ~MainWindow();
    17.  
    18. private:
    19. Ui::MainWindow *ui;
    20. };
    21.  
    22. #endif // MAINWINDOW_H
    To copy to clipboard, switch view to plain text mode 

    mainwindow.cpp
    Qt Code:
    1. #include "mainwindow.h"
    2. #include "ui_mainwindow.h"
    3. #include <QUrl>
    4.  
    5. MainWindow::MainWindow(QWidget *parent) :
    6. QMainWindow(parent),
    7. ui(new Ui::MainWindow)
    8. {
    9. ui->setupUi(this);
    10. ui->webView->load(QUrl("http://vk.com"));
    11. }
    12.  
    13. MainWindow::~MainWindow()
    14. {
    15. delete ui;
    16. }
    To copy to clipboard, switch view to plain text mode 

    main.cpp
    Qt Code:
    1. #include "mainwindow.h"
    2. #include <QApplication>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication a(argc, argv);
    7. MainWindow w;
    8. w.show();
    9.  
    10. return a.exec();
    11. }
    To copy to clipboard, switch view to plain text mode 
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2012
    Posts
    232
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Platforms
    Windows Android

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

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

  3. #3
    Join Date
    Dec 2013
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

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

    Qt 5.1.0 MinGW Win32

    Crashed when try to load http://imhonet.ru
    http://www.e1.ru - ok

    Qt Code:
    1. void MainWindow::on_btnBegin_clicked()
    2. {
    3. QString url = ui->leUrl->text();
    4. ui->webView->load(QUrl(url));
    5. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by high_flyer; 4th January 2014 at 11:53. Reason: removed link tags

Similar Threads

  1. Replies: 3
    Last Post: 16th November 2011, 05:06
  2. QWebView and QByteArray: encoding error
    By missoni in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 16th May 2011, 22:41
  3. Replies: 4
    Last Post: 25th September 2010, 12:58
  4. Replies: 4
    Last Post: 24th August 2010, 15:28
  5. Replies: 5
    Last Post: 30th December 2009, 23:40

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.