Results 1 to 2 of 2

Thread: What's the difference between QwtTextLabel and QLabel

  1. #1
    Join Date
    Sep 2014
    Location
    San Francisco
    Posts
    11
    Thanks
    6
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default What's the difference between QwtTextLabel and QLabel

    Is(Are) there any interesting feature(s) provided by QwtTextLabel?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: What's the difference between QwtTextLabel and QLabel

    The important difference is between QString and QwtText - QwtText has extra attributes ( pen, background, frame, text format ).

    QwtText objects are used at many places in Qwt code, but QwtTextLabel - a standalone widget showing a QwtText - is more for completeness ( internally used for title/footer of the plot ) than being of major importance.
    When comparing QLabel with QwtTextLabel most of these extra attributes can be set using the QLabel API in a similar way, but one important difference remains: QLabel can display Qt::PlainText and Qt::RichText only, while QwtTextLabel can also display MathML.

    Uwe

    PS1: the quality of the Qwt 6,1 MathML renderer is pretty low ( taken from the former Qt solutions package ) - for Qwt 6.2 it will be improved a lot.
    PS2: at the time, when QwtText has been designed I also had TeX in mind - maybe there is a usable renderer available today ?

  3. The following user says thank you to Uwe for this useful post:

    theofthe (23rd October 2014)

Similar Threads

  1. geting QLabel text ontop of other QLabel displaying image
    By krystosan in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2013, 17:35
  2. Replies: 3
    Last Post: 22nd August 2013, 12:57
  3. Printing Problem in QwtTextLabel
    By umulingu in forum Qwt
    Replies: 1
    Last Post: 26th March 2010, 10:34
  4. Replies: 1
    Last Post: 29th September 2009, 19:44
  5. Replies: 1
    Last Post: 2nd August 2008, 15:46

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.