Results 1 to 3 of 3

Thread: building report problem

  1. #1
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question building report problem

    hello every one

    is there any way that i can write two words in QTextEdit (report) at the same line BUT one at right an the other at the left ?

    i tried to do it by adding two frames at one block , but it seems that every frame will take the whole line.

    any ideas ?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: building report problem

    Have a look at QTextCursor.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: building report problem

    i solved the problem by adding a table of two columns to the textEdit . and then i made one cell direction left to right and the other right to left

    then i made the table boarder hidden through this command :

    Qt Code:
    1. tableFormat.setBorder(0);
    To copy to clipboard, switch view to plain text mode 

    and every thing went as i wanted

Similar Threads

  1. Report generator
    By mak_user in forum General Programming
    Replies: 6
    Last Post: 13th October 2015, 11:36
  2. problem printing a multi page report
    By schnitzel in forum Newbie
    Replies: 12
    Last Post: 23rd January 2011, 01:50
  3. Replies: 0
    Last Post: 17th November 2009, 20:59
  4. problem while building
    By mohanakrishnan in forum Newbie
    Replies: 4
    Last Post: 28th October 2009, 12:29
  5. QT report
    By triperzz in forum Qt Programming
    Replies: 3
    Last Post: 25th February 2008, 17: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
  •  
Qt is a trademark of The Qt Company.