Results 1 to 20 of 20

Thread: suitable class for plotting pixels

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: suitable class for plotting pixels

    If you want to use graphics view, you don't need to reimplement the paint event. Instead you have to add items to the scene. If you wish to use my approach, you can use the above code, just transform it so that it uses integer values.

  2. #2
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: suitable class for plotting pixels

    yes wysota , i am following u r method ,i made the chage u said(changing to int values)

    inspite ,of the change i am not getting any output .

    my problem is simple , i change the points for the painter.drawPolygon(points, 4); function which is inside the paintEvent()function.

    but the points are changed in the other function and whenever it is changed the update function is called to update() the diagram.

  3. #3
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: suitable class for plotting pixels

    is there any way to draw a polygon without using paintEvent() on QWidget.

Similar Threads

  1. Connecting to a base class signal?
    By AaronMK in forum Qt Programming
    Replies: 4
    Last Post: 26th October 2007, 22:37
  2. Creating object of other class in Run() method
    By santosh.kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 15:05
  3. Replies: 2
    Last Post: 16th March 2007, 09:04
  4. Replies: 2
    Last Post: 4th May 2006, 19:17
  5. How to propagate from one class to another
    By mahe2310 in forum Qt Programming
    Replies: 15
    Last Post: 20th March 2006, 01:27

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.