Results 1 to 2 of 2

Thread: how to draw columns in QPainter's rectangle

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

    Question how to draw columns in QPainter's rectangle

    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
    thanks & regards
    --------------------
    jyoti

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to draw columns in QPainter's rectangle

    Why not use a readily available widget, namely QTableView?
    J-P Nurmi

Similar Threads

  1. Draw a rectangle alternating two colors with qPainter
    By SkripT in forum Qt Programming
    Replies: 12
    Last Post: 24th January 2006, 23:12

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.