Results 1 to 2 of 2

Thread: QTableWidget and setSpan

  1. #1
    Join Date
    Oct 2007
    Location
    Poland
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTableWidget and setSpan

    I have QTableWidget( qt 4.3.2 ) witch 7 columns and very simple code:
    Qt Code:
    1. for(int i=0; i<rowCount();i++)
    2. {
    3. if(i%2==0)
    4. {
    5. resizeRowToContents( i );
    6. item( i, 5 )->setText("aaaaaa" );
    7. setSpan( i, 1, i, 7 );
    8. }
    9. }
    To copy to clipboard, switch view to plain text mode 
    After that I have something like this
    before

    after

    Why this code doesn't work? It's bug or what?

  2. #2
    Join Date
    Oct 2007
    Location
    Poland
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableWidget and setSpan

    my mistake - I have 8 columns

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.