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

  • Home
  • SEARCH
  • 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 7084283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:16:56+00:00 2026-05-28T07:16:56+00:00

I need some advise about how to read PyQt’s documentation. Because on my own

  • 0

I need some advise about how to read PyQt’s documentation. Because on my own I can hardly figure anything out. I’m a programming newbie so sorry if my question is confusing. I’ll try to explain the best I can 🙂

This is an example of where I got stuck. I was experimenting around with QListView. Basically just trying to print out data of what I have selected in the view. I got stuck until Justin, a very patient Python tutor, showed me this bit of code.

listView.clicked.connect(B)
def B(index):
    record = sqlmodel.record(index.row())

It connects a clicked signal from QListView to function B. I was very surprised that right away the clicked event sends index to B by itself. I tried to look through QListView’s documentation but can’t find anything that explains this.

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qlistview.html

In this case, where in the docs should I look at to learn about this clicked event, and the index it sends out?

Would really appreciate any advise. 🙂

  • 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-28T07:16:57+00:00Added an answer on May 28, 2026 at 7:16 am

    Unfortunately PyQt documentation is not full. Better source for knowledge is Qt documentation.

    In your case QTableView inherits QAbstractItemView, and there is no clicked signal in QTableView docs, you can find it in List of all members, including inherited members page. And you can see, that this signal comes from QAbstractItemView and it’s defined as:

    void QAbstractItemView::clicked ( const QModelIndex & index )

    Here you can see type of function arguments (clickable).

    So, index passed to you function will be instance of QModelIndex and it has row method.

    If you are confused with C++ syntax, another option is to use PySide documentation, which is more Python friendly.

    QAbstractItemView.clicked in PySide docs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some advice in tackling a query. I can handle this in a
I need some advice on how to go about a particular issue I'm trying
I just need some advice about using tags. I'm working on a website right
I need some advise on the best way to achive the following: Store a
I need some advice/help on this, I can't see the wood from the trees
I've read lots of posts about sorting a 2D array but I still can't
I need some advice on what kind of pattern(s) I should use for pushing/pulling
I need some advice from experts :) I will develop a website using PHP
I need some advice, what is the rule of the thumb when creating Rails
I need some advice on techniques to perform page redirect in asp.net. Which one

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.