Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5977143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:19:42+00:00 2026-05-22T21:19:42+00:00

PyQt has two different API’s: the old and the new. By default you get

  • 0

PyQt has two different API’s: the old and the new.
By default you get the old API with Python 2 and the new API with Python 3.
Is it possible to enable the new PyQt API with Python 2? How?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:19:43+00:00Added an answer on May 22, 2026 at 9:19 pm

    Perhaps you could try using sip.setapi. A simple example from the docs:

    import sip
    sip.setapi('QString', 2)
    

    And a list of the supported APIs:

    QDate v1, v2
    QDateTime v1, v2
    QString v1, v2
    QTextStream v1, v2
    QTime v1, v2
    QUrl v1, v2
    QVariant v1, v2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm very new to Python and even newer to PyQt. I've managed to create
I'm writing a small app (learning Python and PyQt) that has an About box.
I have a PyQt program, in this program I start a new thread for
I'm practicing PyQt and (Q)threads by making a simple Twitter client. I have two
I'm working with PyQt and trying to get video from a webcam to play
I'm starting a basic application using Python and PyQt and could use some experienced
I'm currently attempting to migrate a legacy VBA/Microsoft Access application to Python and PyQt.
I have seen through python - Pygtk VS Pyqt VS WxPython VS Tkinter ;
I'm doing a little game in Python 3.2 with use of PyQt. I needed
Python has a lot of GUI libraries: tkinter, wxWidgets, pyGTK etc. But all these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.