Results 1 to 2 of 2

Thread: [Solved] How to access tableView from delegate?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2016
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default [Solved] How to access tableView from delegate?

    Hi there,

    I've searched a lot, but i cant find anything usefull for C++, only for QtQuick. Maybe its too obvious and i do not see the wood for the trees. If so, i apologize forward...

    My question:

    Is it possible to get a pointer to the tableView inside the code of a delegate that this view uses? I want to alter the view from within the delegate.

    Thanks in advance!
    selli
    Last edited by selli69; 9th January 2016 at 23:59. Reason: set solved

  2. #2
    Join Date
    Jan 2016
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to access tableView from delegate?

    Solved this problem by passing a pointer to the tableViev in the constructor.

    Thanks anyway...

Similar Threads

  1. TableView, use of delegate to edit an item
    By voilier92 in forum Qt Quick
    Replies: 1
    Last Post: 17th December 2015, 19:04
  2. Replies: 1
    Last Post: 28th November 2015, 21:44
  3. Tableview dialog as delegate
    By drmacro in forum Qt Programming
    Replies: 5
    Last Post: 28th October 2015, 08:45
  4. Button Delegate Problem in TableView
    By alizadeh91 in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2013, 18:13
  5. TableView Delegate questions
    By No-Nonsense in forum Qt Programming
    Replies: 3
    Last Post: 11th December 2006, 10:39

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.