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. Connect for "proxyAuthenticationRequired" requires for registration of the QNetworkProxy
Qt 6.11 is out! See what's new in the release blog

Connect for "proxyAuthenticationRequired" requires for registration of the QNetworkProxy

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.7k 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.
  • T Offline
    T Offline
    TonyR
    wrote on last edited by
    #1

    I need handle the signal proxyAuthenticationRequired of QNetworkAccessManager and show dialog. I wrote

    @ QObject::connect(nam, SIGNAL(proxyAuthenticationRequired(QNetworkProxy,QAuthenticator*)),
    mainWin, SLOT(onProxyAuthenticationRequired(QNetworkProxy, QAuthenticator*)));@

    where mainWin is a class for main window. But in console i see follow messages

    @QObject::connect: Cannot queue arguments of type 'QNetworkProxy'
    (Make sure 'QNetworkProxy' is registered using qRegisterMetaType().)@

    I knew about typedef and qRegisterMetaType, but I thought that QNetworkProxy should already be registered.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      And instead it's not. :-)
      What's the problem in doing that?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        I would bet a penny that

        @
        #include <QNetworkProxy>
        // or
        #include <QNetworkAccessManager>
        @

        in the source file that establishes the connection will cure the error.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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