Bug 73811 - QWebPage select all and copy clipboard won't work with xhtml
Summary: QWebPage select all and copy clipboard won't work with xhtml
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 02:42 PST by A Denever
Modified: 2022-07-29 10:44 PDT (History)
0 users

See Also:


Attachments
small project to reproduce the bug on win7 Qt sdk 1.1.4 (32.32 KB, application/x-zip-compressed)
2011-12-05 02:42 PST, A Denever
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description A Denever 2011-12-05 02:42:08 PST
Created attachment 117860 [details]
small project to reproduce the bug on win7 Qt sdk 1.1.4

Work with the url  "http://nokia.com", but not with "http://bumerang.hu/?ezaz=2_20111202"
        
 

  view->setContent( msg.toLocal8Bit() );
    QString cucc("Bum");
    qDebug() << view->title();
    view->page()->setContentEditable(true);
    view->page()->triggerAction(QWebPage::SelectAll);
    view->page()->triggerAction(QWebPage::Copy);
    QFile fs("./after");

    if (!fs.open(QIODevice::WriteOnly | QIODevice::Text))
            return;
     const QClipboard *clipboard = QApplication::clipboard();
    QTextStream out3(&fs);
    out3 << clipboard->text();


At least the title is possible to extract, that is expected to be copied.

"
This page contains the following errors:

error on line 1 at column 0: Encoding error
Below is a rendering of the page up to the first error.
"

How to avoid the encoding problem for clipboard copy action?
Comment 1 Alexey Proskuryakov 2022-07-29 10:44:26 PDT
The Qt port has been removed from WebKit, resolving.