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 146809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:40:10+00:00 2026-05-11T08:40:10+00:00

Coming from the .NET world over to Python and PyQt4. Was wondering if anyone

  • 0

Coming from the .NET world over to Python and PyQt4. Was wondering if anyone is familiar with any functionality that would allow me to bind data to Qt widgets? For example (using sqlalchemy for data):

gems = session.query(Gem).all() list = QListWidget() list.datasource = gems 

Is such a thing possible?

  • 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. 2026-05-11T08:40:11+00:00Added an answer on May 11, 2026 at 8:40 am

    One option would have a function that returns a list (or tuple) object from a query, and then use that to update the QListWidget. Remember that the QListWidget stores QListStrings. Your update function might look like this:

    def updateQListWidget(qlistwidget, values):         ''' Updates a QListWidget object with a list of values         ARGS:             qlistwidget  - QListWidget object             values       - list of values to add to list widget         '''         qlistwidget.clear()         qlist = QtCore.QStringList()         for v in values:             s = QtCore.QString(v)             qlist.append(s)         qlistwidget.addItems(qlist)  
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm coming from the .NET world, and I'm trying to figure out the Rails
I'm new to Visual C++, .NET, and the Windows world of programming (coming from
Coming from the .NET world into ObjC and iPhone development, I'm used to providing
coming from .Net world, just want to know what is the corresponding collection to
I'm coming from the .NET world where Visual Studio is pretty ubiquitous. VS has
Where should I store my Android application's configuration settings? Coming from the .NET world
I am coming from the .net world where too much use of the Forms
This is just the continuation of this post . I'm coming from ASP.NET world.
I'm new to the asp.net world coming from windows programming. The sessions, authentications, page
I'm coming from the open source world, and interested in giving ASP.NET a spin.

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.