Results 1 to 5 of 5

Thread: How to draw in a QScrollArea?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Location
    Aachen
    Posts
    20
    Thanks
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Question How to draw in a QScrollArea?

    Hi,

    I have a classed that inherits QWidget. Inside of it, I have a QScrollArea with some QLabel items wrapped in a QGridLayout. Since I want to connect my labels through lines, I reimplemented the method paintEvent(QPaintEvent *). I unfortunately have the problem that the drawing occurs outside the scroll area as you can see in the attached image. Any hints?

    Thanks.
    Attached Images Attached Images

Similar Threads

  1. Draw a bar chart inisde the QScrollArea
    By ultrasonic in forum Qt Programming
    Replies: 6
    Last Post: 9th August 2012, 20:06
  2. Replies: 10
    Last Post: 10th February 2011, 23:31
  3. QScrollArea
    By franco.amato in forum Qt Programming
    Replies: 10
    Last Post: 6th January 2010, 20:19
  4. Replies: 2
    Last Post: 10th March 2008, 20:16
  5. QScrollArea
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 13th December 2007, 17:20

Tags for this Thread

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.