Qt Labs Forum » Graphics View

Too many selection on QTableView using QTJambi

(2 posts)

  1. Hello everybody, I wrote in my application this code:
    static int COUNT = 0;

    articleTable.selectionModel().selectionChanged.connect(this, "changeArticle(QItemSelection, QItemSelection)");

    public void changeArticle(QItemSelection current, QItemSelection previous) {
    log.debug("<begin> changeArticle");
    log.debug("COUNT: " + ++COUNT);
    log.debug("<end> changeArticle");
    }

    When I selecting one alone time a row in a table, the output is:
    COUNT: 1
    COUNT: 2
    COUNT: 3
    COUNT: 4

    Seem that I have selected an item four times.

    thanks to all

    Posted: 11 months #
  2. Hi, I've tried to reproduce this with a simple example, and I am only getting a single call to changeArticle each time I select either a cell or a row. Could you try if the problem persists with the newest version of Qt Jambi?

    Also: For future reference, this forum should only be used for questions related to the Trolltech Labs projects. Could you please refer to the Qt Jambi Interest mailing list (http://lists.trolltech.com) for any future questions, reports or feedback related to Qt Jambi in general? :-)

    Thank you!

    Posted: 11 months #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.