View Full Version : How to make QToolBox to be horizontal?
Kode.Cooper
20th January 2010, 05:20
Hi there,
How to make QToolBox from vertical to horizontal?
I want to make the page from left to right.
Thanks.
wagmare
20th January 2010, 06:06
QTransform & QTransform::rotate ( qreal angle, Qt::Axis axis = Qt::XAxis )
this will do the trick ....
Kode.Cooper
20th January 2010, 06:25
QTransform & QTransform::rotate ( qreal angle, Qt::Axis axis = Qt::XAxis )
this will do the trick ....
Hi wagmare, I'm sorry that I am new guy in Qt, Could you give me a short sample ?
and another import thing, I just want to the Page convert to be horizontal, not the Contents .
Thanks.
wagmare
20th January 2010, 08:29
try transform like this ..
QTransform transform;
transform.rotate( 90 , Qt::YAxis);
/*your QToolBox*/ this->setTransform(transform);
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 )..
Kode.Cooper
20th January 2010, 09:00
try transform like this ..
QTransform transform;
transform.rotate( 90 , Qt::YAxis);
/*your QToolBox*/ this->setTransform(transform);
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. :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.