如何在Qt中使用cookies
妳好,像這樣:qlistnetworkcookielist = cookie jar()-》cookiesForUrl(req . URL());由妳來決定是否得到它。defCookieOk(self):self . cookies =【】forciteminself . browser . page()。網絡訪問管理器()。cookieJar()。cookiesForUrl(QUrl(self。CookiesForUrl)):self . cookies . append(“% s = % s“%(citem . name(),citem . value())# self . cookies = common . to _ unicode(‘;‘)。join(self . cookies cookies)(return self . cookies)