PDA

View Full Version : how to draw columns in QPainter's rectangle



jyoti
23rd August 2007, 13:25
hi all
i am using qt4.1 on Mac Os


i have widget on that i am drawing a rectangle using QPainter's paintEvent
that i am showing it init() of my application..

now i want to create columns with header ,header Text and all basics as like table have except rows using QPainter's PainEvent which will be shown in init()...


can anyone tell me to do this with simple example code

thanks in advance

jpn
24th August 2007, 11:50
Why not use a readily available widget, namely QTableView?