image_response = requests.get(profile_image_url) if image_response.status_code == 200: # Resmi dosyaya kaydet with open("profile_image.jpg", "wb") as f: f.write(image_response.content) # Görseli QPixmap ile yükleyin pixmap = QPixmap("profile_image.jpg") if pixmap.isNull(): print("Görsel yüklenemedi.") else: self.profile_image_label.setStyleSheet("border-radius: 10px; border: 2px solid white;") self.profile_image_label.setPixmap(pixmap.scaled(100, 150, Qt.KeepAspectRatio)) print("Veri API'ye başarıyla gönderildi.") else: print("Görsel indirme hatası:", image_response.status_code)