Results 1 to 14 of 14

Thread: how i can add image in verticalHeaderview() of tableWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Location
    gurgaon
    Posts
    49
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X

    Question how i can add image in verticalHeaderview() of tableWidget

    hi all
    i m using QT4.2 on MacOs .
    i can add image directly by designer
    but i actully wanna this view(attached) by coding..so than i can resize the pixmap which is placed there ...means i want to add image more large on this verticalHeader

    i have code for this row items

    Qt Code:
    1. int row=0;
    2. int RowCount=0;
    3. row=tableWidget->rowCount();
    4. tableWidget->setRowCount(row+1);
    5. QTableWidgetItem *item=new QTableWidgetItem("Nikon");
    6. item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsUserCheckable);
    7. item->setCheckState(Qt::Unchecked);
    8. tableWidget->setItem(RowCount,0,item);
    9.  
    10. QTableWidgetItem *item1=new QTableWidgetItem("Png ");
    11. tableWidget->setItem(RowCount,1,item1);
    To copy to clipboard, switch view to plain text mode 

    plz do suggest me as soon as possible,its urgent
    Attached Files Attached Files
    Last edited by wysota; 26th December 2006 at 14:29. Reason: missing [code] tags
    thanks & regards
    --------------------
    jyoti

Similar Threads

  1. how i can add image in my toolbar
    By jyoti in forum Qt Tools
    Replies: 7
    Last Post: 19th December 2006, 14:39
  2. "sensitising" an image
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2006, 07:21
  3. Fast image drawing/scaling in Qt 3.3
    By eriwik in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 10:45
  4. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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.