Results 1 to 2 of 2

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

  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.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

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

    The following line does not change the style of the tab string(just some part of the string);
    Why would expect any different; you've only tried to apply a style to part of the string?

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.