PDA

View Full Version : vertical pushbutton text



eric
29th January 2008, 18:36
Could someone tell me how to make QPushButton text vertical? What function, what syntax? Thanks!

jpn
29th January 2008, 23:30
Try QxtPushButton (http://www.libqxt.org/docs/classQxtPushButton.html).

eric
29th January 2008, 23:51
Thanks, this is a good way of rotating text. However, I need letters on the pushbutton to be rightside up and underneath each other, like so:

H
I

J
P
N
!

wysota
29th January 2008, 23:59
Isn't it the same issue as with the label?

eric
30th January 2008, 00:09
The best that I understand the documentation, it allows me to rotate text (put text on its side) but not put letters one under the other rightside up. Do you know if the latter is also possible?

wysota
30th January 2008, 02:10
Search the forum, there is a recent thread about drawing vertical text in a label. Some solutions are suggested there.

dyams
31st January 2008, 07:36
eric, I guess you haven't looked at this yet

http://wiki.qtcentre.org/index.php?title=OrientationButton

-Dyams

sanjuchopracool
20th May 2013, 21:01
eric, I guess you haven't looked at this yet

http://wiki.qtcentre.org/index.php?title=OrientationButton

-Dyams


this example is not working anymore the vertical buttons are too wide.

wysota
20th May 2013, 21:51
Too wide for what?

sanjuchopracool
29th May 2013, 20:14
The width of vertical button is much more than required, you can try this example.Its outdated.

wysota
29th May 2013, 21:09
Comment out the implementation of minimumSizeHint().

GaryMonheit
18th April 2019, 20:17
Is there a more recent solution in Qt5 for rotated QPushButton?