Results 1 to 2 of 2

Thread: I can't to refresh a QAbstractItemView ??'

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: I can't to refresh a QAbstractItemView ??'

    Sorry ... I delete the original post by error.
    I explain that I had a button to add data to a model and it did not change

    Solved:
    The problem is :
    I had :
    Qt Code:
    1. connect (botonadd,SIGNAL(clicked()),this,SLOT(anadir));
    To copy to clipboard, switch view to plain text mode 
    And it must be :
    Qt Code:
    1. connect (botonadd,SIGNAL(clicked()),this,SLOT(anadir()));
    To copy to clipboard, switch view to plain text mode 

    I dont understand how has been possible that the last code has not launched an error ?
    Last edited by tonnot; 16th March 2011 at 18:33.

  2. #2
    Join Date
    May 2010
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: I can't to refresh a QAbstractItemView ??'

    Slot and signal connections are determined at run-time so the compiler will not generate an error. If you look at the application output though you should see something to the effect of QObject::connect: No Such Signal. That is why you didn't get an "error"

Similar Threads

  1. Replies: 2
    Last Post: 14th January 2011, 15:09
  2. QAbstractItemView
    By dima in forum Qt Programming
    Replies: 0
    Last Post: 11th October 2010, 09:00
  3. Replies: 3
    Last Post: 26th November 2009, 18:28
  4. QAbstractItemView
    By zgulser in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2009, 12:30
  5. QAbstractItemView
    By defumar in forum Newbie
    Replies: 9
    Last Post: 22nd January 2008, 13:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.