Results 1 to 20 of 20

Thread: table in QLabel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Poland/Poznań
    Posts
    14
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default table in QLabel

    Qt Code:
    1. QLabel *label = new QLabel(0);
    2. label->setFrameStyle(QFrame::Plain);
    3. label->setBackgroundMode(Qt::FixedColor);
    4. label->setPaletteBackgroundColor(QColor("red"));
    5. label->setText("<table bgcolor=white border=0 cellspacing=0 cellpadding=0><tr><td>aaa<br>ccc<br>ddd</td><td>bbb</td></tr></table>");
    6. label->show();
    To copy to clipboard, switch view to plain text mode 
    and effect:


    What can I do to avoid this red border above, under and on the right of the table?
    I'd like to have a QLabel that consist ONLY the table - and nothing else (no margins).

    (I've made red and white colors only to show you this margins)
    Last edited by Pan Wojtas; 5th February 2006 at 13:20.

Similar Threads

  1. Trouble with QLabel
    By dany_MB in forum Newbie
    Replies: 3
    Last Post: 14th August 2009, 08:21
  2. Postgresql QSqlRelationalTableModel empty table
    By RolandHughes in forum Qt Programming
    Replies: 0
    Last Post: 12th November 2008, 17:18
  3. Replies: 3
    Last Post: 5th October 2008, 23:41
  4. Replies: 3
    Last Post: 17th July 2008, 07:43
  5. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50

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.