August 21, 2010

Evan-XG Evan-XG
Lab Rat
23 posts

How to add a side toolbar with a vertical text in the toobar button

 

I want to have a tool bar layout verticaly which I can by susing

  1. setOrrientation(Qt:vertical)

but the text in the button does not layout vertcation this only affect the layout of the button .

and I want the text to be vertical like :

P
r
o
j
e
c
t
s

please any clou would be helpfull and thanks in advance for reading.

 Signature 

Evan-XG

5 replies

August 21, 2010

Tobias Hunger Tobias Hunger
Mad Scientist
3135 posts

Maybe

  1. setText(QLatin1String("P<br>r<br>o..."));
works?

That is adding br-tags between each letter. Unfortunately they are resulting in linebreaks in the code example above:-(

August 21, 2010

Evan-XG Evan-XG
Lab Rat
23 posts

thanks, but it does not for me . I have look the src code of monkey studio , they created a dock widget inheriting from toolbar. I think I am goin to try that .

 Signature 

Evan-XG

August 23, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

there was also a FAQ [developer.qt.nokia.com] on this

August 23, 2010

Evan-XG Evan-XG
Lab Rat
23 posts

Thanks for the reply . I finaly checked out monkey studio source code . the use drawing and rotating as specified in the answer .

 Signature 

Evan-XG

September 3, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

moved this to desktop forum

 
  ‹‹ real read-only file Windows      WMV Playback using Phonon::VideoWidget and Flip4Mac fails in 32-Bit builds ››

You must log in to post a reply. Not a member yet? Register here!