Results 1 to 3 of 3

Thread: drawing lines using qpainter from file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2011
    Location
    Kolkata,India
    Posts
    18
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default drawing lines using qpainter from file

    I'm new to Qt programming and trying to build a gui program for a project. I need to draw multiple lines on the widget. The dimensions of the lines are stored in a file "line.txt". The file is correctly read by using qfile and qtextstream. I have also implemented the paintEvent() to draw one line. But when i'm trying to draw multiple lines, it shows no output. What's the problem and how to correct it? i'm attaching the code and the file "line.txt"
    Attached Files Attached Files

Similar Threads

  1. Drawing row/column lines in QTreeWidget
    By warvimo in forum Newbie
    Replies: 0
    Last Post: 25th May 2012, 17:33
  2. QPainter::drawLine(): straight lines look aliased
    By xqrp in forum Qt Programming
    Replies: 4
    Last Post: 19th January 2012, 13:18
  3. Combining QPainter and WinAPI drawing
    By kkk777kkk in forum Newbie
    Replies: 2
    Last Post: 6th July 2011, 14:16
  4. Text drawing with QPainter
    By Rambobino in forum Qt Programming
    Replies: 2
    Last Post: 1st November 2010, 17:26
  5. use Qpainter to draw lines + problem in my painter
    By ReSu in forum Qt Programming
    Replies: 4
    Last Post: 5th March 2008, 15: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.