Results 1 to 1 of 1

Thread: Html tags in QComboBox items

  1. #1
    Join Date
    Dec 2013
    Posts
    15
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Html tags in QComboBox items

    Is it possible to use html tags in combobox items? Actually i dont understand why it doesn't display tagged text properly when the type of input argument is QString.

    Qt Code:
    1. QStringList itemsList=(QStringList()<<"<b>time</b>"<<"M"<<"H"<<"P1"<<"T1"<<"N1OTN"<<"N2OTN"<<"GT"<<"РУД"<<"R"<<"DKY");
    2. comboBox.addItems(itemsList);
    To copy to clipboard, switch view to plain text mode 

    so there is <b>time</b> instead of time
    Last edited by ROCKSTAR; 24th January 2014 at 10:01.

Similar Threads

  1. html tags + arabic + Qt
    By BlueIceCream in forum Qt Programming
    Replies: 1
    Last Post: 25th December 2012, 00:11
  2. QTextDocument and HTML tags
    By naga in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2011, 11:22
  3. Matching HTML tags
    By pucara_faa in forum Qt Programming
    Replies: 4
    Last Post: 22nd January 2010, 13:19
  4. Html tags in QTreeView
    By 1111 in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2009, 01:41
  5. QFontMetrics and HTML tags
    By vonCZ in forum Newbie
    Replies: 1
    Last Post: 14th August 2008, 12:13

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.