Results 1 to 2 of 2

Thread: Help with QTextTable

  1. #1
    Join Date
    Jan 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Help with QTextTable

    I am trying the QTextDocument for the first time and I have a QTextTable that I am trying to insert a database field (double) into a cell.
    I have been over the documentation but I am missing something, I tried to use the QTextFormat::doubleProperty() but I could not get it to work.
    Does anyone know of a good example, or have a snippet that I could review.

    Thanks in advance
    Fred Wohlfert

  2. #2
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help with QTextTable

    The function you want is QString & QString::setNum ( double n, char format = 'g', int precision = 6 ). You can then put your QString in the table.
    Last edited by jrideout; 1st November 2006 at 09:06. Reason: reformatted to look better

Similar Threads

  1. QTextCursor Find QTextTable ok and !QTextImageFormat
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2006, 16:29
  2. Replies: 1
    Last Post: 16th June 2006, 09:14
  3. How to get current row(column) index in the QTextTable?
    By denny.t in forum Qt Programming
    Replies: 3
    Last Post: 5th April 2006, 07:53

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.