[Qt-interest] How to add a superscript text for any QAction item in QMenu

Santhosh Y santhosh at softjin.com
Mon Apr 6 14:48:52 CEST 2009


Arnold Krille wrote:
> On Monday 06 April 2009 12:26:09 Santhosh Y wrote:
>   
>> I would like to add superscript text to a QMenu action's text.
>>     
>
> If hypertext is supported inside QAction/QMenu (check by trying) you can make 
> your action-string "Action <sup>TM</sup>" or "<qt>Action <sup>TM</sup></qt>". 
> Or you can even search for the html-entity for the raised TM...
>
> Arnold
>   
>   
Hi Arnold,

Thanks for your suggestion.

But when I tried this, the complete string being coming out including 
<sup> & </sup>.

But I successfully printed out a message with QMessageBox in the 
following way:
QMessageBox::critical(this,
                tr("Hardware report access failed"),
                tr("Hardware report cannot be viewed by <b>NORMAL</b> 
users"),               
                QMessageBox::Ok);

I am not able to understand why it is not working in Action's case.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   


-- 
----------------------------------------------------
Y Santhosh Kumar
Senior Software Engineer
SoftJin Technologies Private Limited
Unit No. 102, Mobius Tower,
I Floor, SJR I - Park,
EPIP, White Field,
Bangalore - 560066, India
U : www.softjin.com
E : santhosh at softjin.com
T : +91-80-41779999
M : +91-9740535265
----------------------------------------------------



Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________





More information about the Qt-interest-old mailing list