Results 1 to 5 of 5

Thread: How to make QToolBox to be horizontal?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make QToolBox to be horizontal?

    try transform like this ..
    Qt Code:
    1. QTransform transform;
    2. transform.rotate( 90 , Qt::YAxis);
    3. /*your QToolBox*/ this->setTransform(transform);
    To copy to clipboard, switch view to plain text mode 
    I just want to the Page convert to be horizontal, not the Contents
    i dont have nay idea about it but u try to add the contents after rotating (it may work ... but not sure )..
    "Behind every great fortune lies a crime" - Balzac

  2. #2
    Join Date
    Dec 2009
    Posts
    18
    Thanks
    1

    Default Re: How to make QToolBox to be horizontal?

    Quote Originally Posted by wagmare View Post
    try transform like this ..
    Qt Code:
    1. QTransform transform;
    2. transform.rotate( 90 , Qt::YAxis);
    3. /*your QToolBox*/ this->setTransform(transform);
    To copy to clipboard, switch view to plain text mode 

    i dont have nay idea about it but u try to add the contents after rotating (it may work ... but not sure )..
    Hi wagmare,
    I don't think it a good way for my requirement. and The QToolBox has not member function setTransform.
    I want to rewrite the QToolBox, and let it support horizontal style.

    Not matter how, Thanks for your reply.

Similar Threads

  1. QToolBox
    By kavinsiva in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2009, 06:19
  2. How to make "west" tabs horizontal?
    By plumbum in forum Qt Programming
    Replies: 2
    Last Post: 7th June 2007, 10:32
  3. qtoolbox
    By mickey in forum Qt Programming
    Replies: 3
    Last Post: 1st June 2006, 17:27
  4. QToolBox
    By mickey in forum Newbie
    Replies: 4
    Last Post: 11th February 2006, 15:03
  5. QToolBox
    By mickey in forum Newbie
    Replies: 1
    Last Post: 9th February 2006, 21:21

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
  •  
Qt is a trademark of The Qt Company.