Results 1 to 2 of 2

Thread: QStandarItemModel and span

  1. #1
    Join Date
    May 2006
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QStandarItemModel and span

    I 'm using QT4.1.4 and I want to make a resrevation plan with QTableWidget.
    in this plan I have to insert a same widget in multiple cells by using setCellWidget()
    function.
    the problem with this function is that it insert one widget in only one cell, however I want to
    insert the same widget in multiple cells.
    I find some solution Like subclassing QStandardItemModel and reimplementing span function.

    is there any one who has done this and can explain the mecanism to me ?
    thank you in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QStandarItemModel and span

    span() doesn't do anything yet, it's reserved for future use. In current state (Qt 4.1) multicell items are not supported.

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.