Results 1 to 2 of 2

Thread: QTableView + QSqlQueryModel column alignment

  1. #1
    Join Date
    Jan 2008
    Location
    Slovenia
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTableView + QSqlQueryModel column alignment

    Hi!
    I found a lot of answers on this forum but this is my first post.
    I can't find a solution to this.

    I use QSqlTableModel to get some data from database and QTableView to display it. How can I change alignment for let's say first column in table?

    And if my query returns double in first column, how can I format this column in TableView to display my localized currency format?

    tnx for help

  2. #2
    Join Date
    Jun 2008
    Location
    Rome, Italy
    Posts
    95
    Thanks
    19
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTableView + QSqlQueryModel column alignment


Similar Threads

  1. QTableView column trouble
    By nategoofs in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2009, 20:14
  2. QTableView, QSqlQueryModel and delegates
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 29th January 2008, 12:04
  3. Currently sorted column in QTableView
    By borges in forum Newbie
    Replies: 1
    Last Post: 21st September 2007, 16:52
  4. QTableView without the first counter column?
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 2
    Last Post: 4th January 2007, 22:03
  5. Reg - QTable | Column alignment
    By suresh in forum Newbie
    Replies: 1
    Last Post: 18th December 2006, 15:58

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.