2

How can I issue a POST request over a QWebView instance?

metafex
  • 179
  • 2
  • 11
  • You open some url where post form has, and want to upload some file in the same qwebview window? – mosg May 07 '10 at 11:36

2 Answers2

1

I think the information below will help you:

1). Standard Qt example project, called "previewer", which comes with Qt SDK, may help you. For me, the absolute path is:

C:\Qt\4.6.2\examples\webkit\previewer

QWebView class, as I could test it, supports "post method", i.e. you can free open URL with POST page, and tap on the "Open file" button and after that upload any data.

2). About a month ago a have some kind of a problem with posting data (any files) to server, and here was my question.

Community
  • 1
  • 1
mosg
  • 12,041
  • 12
  • 65
  • 87
0

There is a load method which allows you to specify custom QNetworkRequest object and request type (GET, POST etc): http://doc.qt.io/archives/4.6/qwebview.html#load-2

Christophe Weis
  • 2,518
  • 4
  • 28
  • 32
VestniK
  • 1,910
  • 2
  • 17
  • 29