Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView and cookies
Forum Updated to NodeBB v4.3 + New Features

QWebView and cookies

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abeng
    wrote on last edited by
    #1

    Hi to the Qt community. I'm a journalist/writer by trade who loves to explore technology. I recently installed Qt on Debian 7.2 Wheezy when I wanted to create a GUI to administer a SHOUTcast server. I think I achieved 95 per cent of what I intended after a week-and-a-half of googling and searching these forums--I built a tabbed interface that uses QProcess to start and stop instances of the server; monitor the port and issue an alarm when it stops; edit the config file; view the log file, and save the settings which are the paths to the various files: server daemon, url and port, log, config, password. (An hours work for an experienced coder.)

    I added a WebView to open the server's password-protected Web admin where the front end is monitored for content being streamed, listeners and so on. This is the five per cent where I've failed as although I can log in using the credentials saved as mentioned above, when I attempt to navigate to other than the log-in screen I get a message "Unauthorized".

    I assume this may have to do with session cookies but I'm not sure; and the reading I've done about QNetworkCookies and looking at example code has left me stumped. I'm stumped because it seems that the simplest implementation of cookie management requires three times as much code as I've strung together for the other features of the app. Here's "a link":http://www.abengweb.com/downloads/shoutcast-service.tar.gz to the project on my hosted Web server.

    I'd apprecaite help in resolving the WebView issue and tidying up the sloppy amateur coding which may be resource intensisve. (Of course, you'll have to set the Make/build path in your environment.) To be able to view the Web interface, the SHOUTcast 2 server can be downloaded at http://forums.winamp.com/showthread.php?t=373139

    Thanks.

    Thanks. If I knew all of that I wouldn't have asked.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved