Page 2 of 2 FirstFirst 12
Results 21 to 21 of 21

Thread: Doubts related with QPainter & QVector

  1. #21
    Join Date
    Nov 2008
    Location
    Caracas - Venezuela
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3

    Default Re: Doubts related with QPainter & QVector

    I did it... And finally WORKS...


    Now I got a "QVector<QPoints> puntos" that I create fill with the "generar()" function in the "main" .h and .cpp called "aread.h" and "aread.cpp".

    Now I want to pass this QVector to the QPainter to draw. But QPainter is implemented in the promoted file, And It doesn't recognize any label or widget in the "main files (.h) and (.cpp).

    Should I define in the promoted file a class called Mlog? and try to use the "QVector of this one" in the promoted file?

    I defined the QVector as global I guess that was it.
    But I'm still confused between the 2 files.
    and How I could call a slots or widget in the main files in the promoted file...
    Last edited by j0rt4g4; 9th December 2008 at 22:02.

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.