Results 1 to 2 of 2

Thread: Problem with QTabWidget::setTabText(...) function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Problem with QTabWidget::setTabText(...) function

    Hi,

    The following line does not change the style of the tab string(just some part of the string);

    Qt Code:
    1. _ui.tabWidgetLeftBottom->setTabText(1, getTabHistoryString() + "<span style=\"color:#B0171F; font-size:9px \">" + p_string_to_append +"</span>" );
    To copy to clipboard, switch view to plain text mode 

    Any ideas?
    Last edited by zgulser; 25th April 2013 at 09:58.

Similar Threads

  1. QTabWidget problem
    By alan lenton in forum Qt Programming
    Replies: 5
    Last Post: 25th July 2016, 16:16
  2. Problem using QTabWidget
    By UchihaMk in forum Qt Programming
    Replies: 8
    Last Post: 7th September 2012, 20:58
  3. Problem with QTabWidget
    By alizadeh91 in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2012, 11:12
  4. QTabWidget problem
    By hnfmr in forum Qt Programming
    Replies: 4
    Last Post: 25th February 2011, 15:10
  5. QTabWidget problem
    By Strongoloid in forum Newbie
    Replies: 2
    Last Post: 10th September 2009, 20:38

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.