Results 1 to 3 of 3

Thread: Rotate push button by 90 degrees

  1. #1
    Join Date
    Jun 2009
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Rotate push button by 90 degrees

    I use a push button inside a vertical toolbar. I wish to have the text and the push button in vertical alignment. How do i rotate the button by 90 degrees? Should i paint it again or is there a property or method to do that?

  2. #2
    Join Date
    Jul 2009
    Location
    São Paulo - Brasil
    Posts
    20
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Rotate push button by 90 degrees

    Hi, man.

    I have an idea, in the name of button, type with "\n" like that: "B\nu\nt\nt\no\nn" and enter, then its label will be "button" in vertical alignment After that, y can chance its width to 30.

    Bye bye.

    HAND

  3. #3
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Rotate push button by 90 degrees

    take a look at this example.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Button grid with label rotate 90 degree
    By whitefurrows in forum Qt Programming
    Replies: 14
    Last Post: 24th June 2009, 17:17
  2. Designing the display content of a push button
    By cookie1909 in forum Newbie
    Replies: 4
    Last Post: 16th April 2009, 22:24
  3. Line edit and push button
    By dela in forum Newbie
    Replies: 1
    Last Post: 10th December 2008, 16:10
  4. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

Tags for this Thread

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.