Results 1 to 3 of 3

Thread: QTableView Alignment

  1. #1
    Join Date
    Dec 2010
    Location
    Russia
    Posts
    83
    Thanks
    1
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QTableView Alignment

    Hey!

    I've the following question: is there a way to adjust table's placement inside it's frame?
    Screenshot below will probably explain what i mean:left fragment shows the normal look of the table,right one is more or less what i'm trying to achieve. Maybe i have to create a custom delegate for this purpose...i'm not sure.
    Any tips are greatly appreciated!

    -Thanks!

    VireProb.jpg

  2. #2
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTableView Alignment

    Quote Originally Posted by AlexSudnik View Post
    Hey!

    I've the following question: is there a way to adjust table's placement inside it's frame?
    VireProb.jpg
    u can add a frame and then u can add table inside that frame. wondering what u want exactly

    Bala

  3. #3
    Join Date
    Dec 2010
    Location
    Russia
    Posts
    83
    Thanks
    1
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTableView Alignment

    Quote Originally Posted by BalaQT View Post
    u can add a frame and then u can add table inside that frame. wondering what u want exactly

    Bala
    Thanks for the reply.Well,i know i can do so but it's not the case.I wonder if there is way to adjust table's position within it's initial widget...Hope you can see an image i've attached.

Similar Threads

  1. QTableView alignment items
    By repaco in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2010, 22:27
  2. QTableView - alignment/selection problem
    By Nesbitt in forum Qt Programming
    Replies: 7
    Last Post: 30th November 2009, 02:37
  3. QTableView + QSqlQueryModel column alignment
    By frido in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 06:12
  4. Help with alignment
    By IsleWitch in forum Newbie
    Replies: 1
    Last Post: 20th October 2007, 18:20
  5. Alignment issue
    By tebs in forum Newbie
    Replies: 3
    Last Post: 24th April 2007, 14:44

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.