Results 1 to 10 of 10

Thread: Draw Line :confused:

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Draw Line :confused:

    Quote Originally Posted by anafor2004 View Post
    How can we do this subclassing? Can you give me an instance and example?
    Qt Code:
    1. #ifndef MYLABEL_H
    2. #define MYLABEL_H
    3. #include <QLabel>
    4.  
    5. class MyLabel : public QLabel
    6. {
    7. Q_OBJECT
    8.  
    9. public:
    10. MyLabel(QWidget *parent = 0);
    11.  
    12.  
    13. };
    14. #endif
    To copy to clipboard, switch view to plain text mode 
    This is a prototype for your QLabel. Then you reimplement & add some functions according to your need.
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  2. The following user says thank you to ashukla for this useful post:

    anafor2004 (24th January 2008)

Similar Threads

  1. QTextStream : Remove a Line?
    By kaydknight in forum Qt Programming
    Replies: 7
    Last Post: 31st January 2011, 18:15
  2. Draw a line in a Label
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 23rd July 2007, 13:27
  3. Draw rubberband line
    By Pang in forum Qt Programming
    Replies: 4
    Last Post: 13th July 2007, 23:09
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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.