... or without reading manuals (but you really should read it): you can use protected methods ONLY INSIDE the class (or inherited classes). That means, that if you want to use it outside, you have to overload it or write another public method to access it. Like this:
Qt Code:
  1. class MyCookieJar : public QNetworkCookieJar
  2. {
  3. public:
  4. getAllCookies() { return allCookies(); }
  5. };
To copy to clipboard, switch view to plain text mode