How to make QToolBox to be horizontal?
Hi there,
How to make QToolBoxfrom vertical to horizontal?
I want to make the page from left to right.
Thanks.
Re: How to make QToolBox to be horizontal?
QTransform & QTransform::rotate ( qreal angle, Qt::Axis axis = Qt::XAxis )
this will do the trick ....
Re: How to make QToolBox to be horizontal?
Quote:
Originally Posted by
wagmare
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.
Re: How to make QToolBox to be horizontal?
try transform like this ..
Code:
QTransform transform;
transform.rotate( 90 , Qt::YAxis);
/*your QToolBox*/ this->setTransform(transform);
Quote:
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 )..
Re: How to make QToolBox to be horizontal?
Quote:
Originally Posted by
wagmare
try transform like this ..
Code:
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. :)