Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qurl
    Log in to post

    • UNSOLVED QTWebEngineView doesn't load QRC html files (C++)
      QtWebEngine • c++ qwebengineview qwebengine qrc qurl • • peterkmoss  

      5
      0
      Votes
      5
      Posts
      226
      Views

      First off, thanks for your time. I've tried that yeah - you can see that I've made the default index_file "qrc:/index-light.html" in the load_args function. It's here in the code. When writing to qDebug() the string is correctly "qrc:/index-light.html", though nothing is shown in the webview... I've tried changing it to "qrc:/light.css" and then it correctly shows the css in the webview (the code in plaintext).
    • SOLVED Can't open an HTML on a specific fragment in QT using hash
      General and Desktop • html qurl qdesktopservice • • a1rltt  

      3
      0
      Votes
      3
      Posts
      203
      Views

      @Bonnie yes, i'm on Windows, thanks for the explaining!
    • UNSOLVED Compare QUrl or slot for each response?
      Qt WebKit • qnetworkaccessm c++11 signals & slots qurl restful api • • Rizwan94  

      4
      0
      Votes
      4
      Posts
      290
      Views

      @Rizwan94 I never used QNAM, so do not know whether better to use that one or QNetworkReply Yes
    • UNSOLVED Qurl
      General and Desktop • qurl tabs google qurl tabs winows • • BridgerMiles  

      6
      0
      Votes
      6
      Posts
      611
      Views

      Hi Alternatively, you could use QProcess and start it with QString program = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"; QStringList arguments; arguments << "--new-window" << "https://forum.qt.io"; QProcess chromeProcess; if ( ! chromeProcess.startDetached(program, arguments) ) { qDebug() << "error" << chromeProcess.errorString(); }
    • SOLVED Override link QUrl parsing?
      Qt WebKit • qt 4.8 qurl qwebpage • • define-qt  

      9
      0
      Votes
      9
      Posts
      1760
      Views

      JS handler can be added via evaluateJavaScript, and Qt bridge used to provide actual handling via exported QObject I've considered adding API for C++ event hadlers, but that would require some development effort
    • SOLVED How to get a Json value from an api and display it in a GUI
      General and Desktop • c++ json qnetworkrequest api qurl • • hoonara  

      8
      0
      Votes
      8
      Posts
      3873
      Views

      @Lodhi-bhkr Sorry, but this is not a question. What did you try? What problems do you have? Please ask more specific questions. Looks like you asked here already: https://forum.qt.io/topic/120439/qt-code-to-send-data-on-postman-http-post-request
    • SOLVED ASSERT failure in QList<T>::at: "index out of range"
      General and Desktop • c++ qt 5.7 qlist qstringlist qurl • • Qjay  

      24
      0
      Votes
      24
      Posts
      19715
      Views

      I too was also thinking of full rewrite but i don't have much time for that right now :/ .
    • SOLVED QUrl changed/odd behaviour
      General and Desktop • qurl • • DonRico  

      7
      0
      Votes
      7
      Posts
      1232
      Views

      @kshegunov I guess this wasn't my birghtest moent. Thanks for directing me. Problem solved.
    • SOLVED Save Image to Android device
      Mobile and Embedded • android qt 5.7 image save qurl • • eiriham  

      24
      0
      Votes
      24
      Posts
      10423
      Views

      @Qojote Thank you and congratulations for giving all the details for solving this old and apparently common problem! Without the smallest details, this kind of things are never solved.
    • UNSOLVED HTTP response time with QNetworkAccessManager is more when compared to Dlib and Libcurl
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qurl • • ksranjith786  

      10
      0
      Votes
      10
      Posts
      3711
      Views

      @ksranjith786 said: Could you please provide guidelines or code snippet to use QNetworkAccessManager using multi threaded env. No, I can't, sorry. Not that I don't want to, but I don't know of any way you can control the number of threads QNetworkAccessManager uses internally (I think it's hardcoded). If I were to do multithreading with NAM I'd do it like you - thread the reply's processing. Unfortunately this bears no weight on the HTTP response time. On a related note, I would always prefer to use TCP/IP directly, as it provides much more fine-grained control of what's happening (including threading). The downside of that approach however, is that it'd require implementing the HTTP protocol by hand. Perhaps, as @p3c0 suggested, you could try to ask the question on the mailing list were you might get responses from the actual developers of the module. Kind regards.
    • http post data encoding
      General and Desktop • qnetworkaccessm qurl post • • 4j1th  

      4
      0
      Votes
      4
      Posts
      3301
      Views

      @4j1th said: Hi @Paul-Colby , by using the first method how can I access the file (in server), is it works as a file uploading method ? It depends on your server. What language is your server written with? (Assuming you're POSTing to your own server, and not some third-party API). For example, the server was running PHP, you could do something like: $data = json_decode(file_get_contents('php://input'), true); // save $data to a file somewhere. In that case, you wouldn't need to use WWW form encoding.
    • QDesktopServices::openUrl(QUrl("mailto:"));
      General and Desktop • qurl qdesktopservice mailto • • CraigBakalian  

      5
      0
      Votes
      5
      Posts
      2612
      Views

      Yes there might be, the current Qt version is 5.5.0 so you are using an older version. Can you test with 5.5 to check if you still experiencing this ?
    • How to detect Stream is not playing QMediaplayer
      General and Desktop • qmediaplayer qurl • • SansBlague  

      1
      0
      Votes
      1
      Posts
      711
      Views

      No one has replied

    • percent encoding differs in QUrl in Qt4 vs Qt5
      General and Desktop • qt5 qt4 qurl • • drwho  

      3
      0
      Votes
      3
      Posts
      1226
      Views

      The QString is being formed from a QByteArray. When I make the QString via QString::fromUtf8(QByteArray) QUrl in Qt4 correctly percent encodes the QString. I don't think there is a bug in QUrl in Qt4, I guess QUrl in Qt5 is more tolerant.
    • QHelpEngine with remote file souce, is possible?
      General and Desktop • qurl remote qhelpengine • • Simmete  

      2
      0
      Votes
      2
      Posts
      801
      Views

      Yes. It is a correct way but before the help engine can be used, it must be initialized by calling setupData(). QHelpEngine* helpEngine = new QHelpEngine("http://xxx.yyy/zzz/help.qhc", this); helpEngine->setupData(); Read more here: http://doc.qt.io/qt-4.8/qhelpenginecore.html#details
    • Links and ToolTips per word in QPlainTextEdit
      General and Desktop • qplaintextedit qurl qtooltip • • Mortaneous  

      1
      0
      Votes
      1
      Posts
      909
      Views

      No one has replied