Is there any way to set the orientation of the QSPinBox Vertical??
-
-
@Meera-Hadid The last post in the thread you linked provided a solution. Did you try it?
-
@Meera-Hadid
Hi and welcome,What is your question? If it's exactly the same as the link you reference, then the last post there claims to give a working solution. If your question is different then what is it?
-
I just want the spinBox to be vertical, with out changing ant arrow Position.
like in slider there is a method to chage orientation which is setOrientation(Qt::Vertical), in the same way does QSpinBox have any?? -
I just want the spinBox to be vertical, with out changing ant arrow Position.
like in slider there is a method to chage orientation which is setOrientation(Qt::Vertical), in the same way does QSpinBox have any??@Meera-Hadid said in Is there any way to set the orientation of the QSPinBox Vertical??:
I just want the spinBox to be vertical, with out changing ant arrow Position.
But it already is vertical! Do you by any chance mean you want it horizontal instead??
Hang on: you want the box where you type in (the
QLineEdit
), forget about the arrows, to be vertical?? That makes sense for aQSlider
, but how does it make sense for aQSpinBox
which contains characters? So it won't have an "orientation", you would have to do your own painting. -
yes!
Screenshot (279).pngI am actually new to Qt, can you give me any reference how to do that.
-
yes!
Screenshot (279).pngI am actually new to Qt, can you give me any reference how to do that.
@Meera-Hadid
I can only imagine you would need to draw all of this yourself. And then I have no idea how you could make theQLineEdit
it uses be vertical and still work, as I just don't think there is any support for this. Unless someone knows better, like how to rotate if that is really possible....