Skip to content

Qt WebKit

Questions about Qt WebKit and related topics? Post here!
1.5k Topics 5.9k Posts
  • Save javascript message box in QString with QWebView

    2
    0 Votes
    2 Posts
    2k Views
    No one has replied
  • Patch in qmake to split libQtWebkit.so

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Is webkit supposed to build with Qt5?

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    You'll probably be better off if you start a new topic for that - if it has a good title, it might attract relevant people. You may also want to contact guys working on QML and Qt3d on mailing lists ("link":http://lists.qt-project.org/mailman/listinfo, "link":http://lists.qt.nokia.com/mailman/listinfo).
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • Werid problem of QTWebkit in QT4.8.0

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QWebView cookies?

    5
    0 Votes
    5 Posts
    12k Views
    G
    [quote author="hungnd" date="1319992506"]I think u can handle the event loadStarted of QWebView widget, then use webView->page()->mainFrame()->evaluateJavaScript to execute javascript to set cookies as u want. Good luck![/quote] This is not an answer I had the same problem you describe.You have to construct the cookie and not consider all the lines as one line... You have to do like this : @ QList<QNetworkCookie> cookies; QStringList list=U.GetValueConfig("cookie").split("\n"); // I store the cokkies in base all the lines separated ny \n foreach ( QString elem, list) { QNetworkCookie cookie; /// create a cookie cookie.setName(C.Name(elem)); cookie.setValue(C.Value(elem)); cookie.setDomain(C.Domain(elem)); cookie.setExpirationDate(C.Expirationdate(elem)); cookie.setPath(C.Path(elem)); cookie.setHttpOnly(C.HttpOnly(elem)); cookies.append(cookie); } MonCookieJar *jar = new MonCookieJar; jar->SetAllCookies(cookies); @ C.name is a function reading a cookie line and extracting the value @ QByteArray cookie::Name ( QString str) { return (str.split(QRegExp("; *")).at(0).split("=").at(0).toAscii()); } @ You have to write Domain Value For the ExpiratioDate you have to make a QDateTime fonction be care QDateTime::fromString will work in your locale for me in france Lundi, dimanche etc.. you need to convert @ QDateTime cookie::Expirationdate (QString str) { int index=str.split(QRegExp("; ")).indexOf(QRegExp("^expires=.")); QString date=str.split(QRegExp("; *")).at(index).split("=").at(1); date.replace("Jan",QDate::longMonthName(1)); date.replace("Feb",QDate::longMonthName(2)); date.replace("Mar",QDate::longMonthName(3)); date.replace("Apr",QDate::longMonthName(4)); date.replace("May",QDate::longMonthName(5)); date.replace("Jun",QDate::longMonthName(6)); date.replace("Jul",QDate::longMonthName(7)); date.replace("Aug",QDate::longMonthName(8)); date.replace("Sep",QDate::longMonthName(9)); date.replace("Oct",QDate::longMonthName(10)); date.replace("Nov",QDate::longMonthName(11)); date.replace("Dec",QDate::longMonthName(12)); date.replace("Mon",QDate::longDayName(1)); date.replace("Tue",QDate::longDayName(2)); date.replace("Wed",QDate::longDayName(3)); date.replace("Thu",QDate::longDayName(4)); date.replace("Fri",QDate::longDayName(5)); date.replace("Sat",QDate::longDayName(6)); date.replace("Sun",QDate::longDayName(7)); date.replace(" GMT",""); QDateTime Date= QDateTime::fromString(date,"dddd, dd-MMMM-yyyy hh:mm:ss"); return (Date); } @ [EDIT: fixed quote formatting and code formatting, please use @-tags for code and the quote linke for quoting comments, Volker]
  • [solved] Cannot add custom url scheme handler to QWebView

    2
    0 Votes
    2 Posts
    3k Views
    C
    I've found cause of the problem: missing call of parent bytesAvailable, so correct method definition must looks like this: @qint64 Reply::bytesAvailable() const { qint64 bc = QIODevice::bytesAvailable() + content.size() - offset; qDebug() << "Reply::bytesAvailable()" << bc; return bc; }@
  • 0 Votes
    7 Posts
    6k Views
    A
    Does Qt libraries 4.8.0 fix the problem? I installed the latest "Qt libraries 4.8.0 for Windows (VS 2010, 275 MB)" and launched fancyBrowser demo. The html5test.com still shows 0 score for both video and audio support. Youtube asked me to install flash plugin. If this works, should I expect to play youtube video without installing flash player?
  • Can we port QWebKit application to iPad

    2
    0 Votes
    2 Posts
    3k Views
    P
    unfortunately, you have to use the WebView from Apple on iOS, like other browsers for iOS do (e.g. opera) (see thread http://developer.qt.nokia.com/forums/viewthread/7271 )
  • How to let qtwebkit support html5 audio tag in windowsxp?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Split] Frozen keyboard and mouse with Webkit

    2
    0 Votes
    2 Posts
    2k Views
    G
    I split off your question from the other thread, please don't append unrelated questions on existing threads, but open a new one, thanks.
  • Create a cross browser plugin with hardware interaction.

    2
    0 Votes
    2 Posts
    3k Views
    S
    Hello! Apparently Qt doesn't support USB sticks. If you want only to see wheter the USB stick is connected or do some file reading and writing to an USB drive, this is quite straight forward (as to any storage media) by means of QFile and QDir classes. Otherwise, you should use external libraries like for example libusb. Qt is multiplatform, so if you use only Qt libraries on your plugin, I don't see any problem of portability to mac. Bye!
  • 0 Votes
    8 Posts
    8k Views
    P
    Hi Tobias Hunger from imxdev website, I got the mkspec?
  • 0 Votes
    3 Posts
    2k Views
    A
    I solved this problem using win32 functions LONG lStyle = GetWindowLong(m_objWebView.winId(), GWL_STYLE); lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU); SetWindowLong(m_objWebView.winId(), GWL_STYLE, lStyle); Thanks qt developers.........
  • QWebView: Cookies not working.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • What is CoInternetCombineUrl equalient in qt

    4
    0 Votes
    4 Posts
    2k Views
    A
    Cooooooool man!!!!!!!!!!!!!!!!!!!!!! The function suggested by you really rocks!!!!!!!!!!!! It just returning me the exact url as expected in the example mentioned above by me. Thanks a lot for you help.
  • Qt WebKit API is slow, true?

    4
    0 Votes
    4 Posts
    3k Views
    D
    My Qt debug build opens google in under one second...
  • QT Question for linux board

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    G
    Closed. Don't to "double posting":/forums/viewthread/12617/. And it has nothing to do with webkit. Please choose the forums sanely.
  • QWebView and google maps

    3
    0 Votes
    3 Posts
    6k Views
    S
    Hi Steven, really thanks for your answer and your code ;-)
  • How to set win32 window as a parent of QWebView widget window.

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied