×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Question problem in delegate paint..

    Hi..
    i have to repaint the borders of my table view for row==0,col==0, bellow is my code..




    if(index.row()==0||index.column()==0)
    {
    painter->setBrush(QBrush(Qt::white));
    painter->drawRect((option.rect.left()+1),(option.rect.top()+1),(option.rect.right()+1),(option.rect.bottom()+1));


    }
    in my delegate paint method..



    please help me where am i doing wrong
    Thanks & Best Regards
    Srinivas

  2. #2
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Question problem in delegate paint..

    Hi..
    i have to repaint the borders of my table view for row==0,col==0, bellow is my code..




    if(index.row()==0||index.column()==0)
    {
    painter->setBrush(QBrush(Qt::white));
    painter->drawRect((option.rect.left()+1),(option.rect.top()+1),(option.rect.right()+1),(option.rect.bottom()+1));


    }
    in my delegate paint method..



    please help me where am i doing wrong
    Thanks & Best Regards
    Srinivas

Similar Threads

  1. Replies: 1
    Last Post: 2010-10-07, 14:57
  2. Replies: 6
    Last Post: 2010-06-03, 17:56
  3. How is it possible ? (paint problem)
    By metalcam in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-09-16, 14:56
  4. Regarding Thread and Paint()
    By raj_J2ME in forum Mobile Java General
    Replies: 21
    Last Post: 2009-02-09, 04:42
  5. kjava canvas paint problem on some nokia devices
    By danielwang99 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-02-05, 17:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×