Results 1 to 11 of 11

Thread: [SOLVED] subclassing qlabel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default [SOLVED] subclassing qlabel

    Hi, I don't understand why this don't compile; any suggests?
    Qt Code:
    1. #include <qlabel.h> //mylabel.h
    2. class myLabel : public QLabel {
    3. public:
    4. myLabel(QWidget* parent=0, const char* name = 0);
    5. //~myLabel():
    6. };
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. //mylabel.cpp
    2. #include "mylabel.h"
    3. myLabel::myLabel(QWidget* parent, const char* name) :
    4. QLabel( parent, name){
    5. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by mickey; 28th April 2006 at 14:42.
    Regards

Similar Threads

  1. Trouble with QLabel
    By dany_MB in forum Newbie
    Replies: 3
    Last Post: 14th August 2009, 08:21
  2. Replies: 3
    Last Post: 17th July 2008, 07:43
  3. QLabel ScaledContents ignored by style sheet?
    By WinchellChung in forum Newbie
    Replies: 3
    Last Post: 27th February 2008, 14:50
  4. QLabel size policy
    By Caius Aérobus in forum Qt Programming
    Replies: 3
    Last Post: 7th December 2007, 17:57
  5. QT4 layout of complex dialog is very slow
    By cboles in forum Qt Programming
    Replies: 15
    Last Post: 28th April 2006, 19:57

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.