PDA

View Full Version : Horizontal QSpinBox or QComboBox???



sendyou
18th August 2008, 13:25
I want "Horizontal QSpinBox or QComboBox..."

For example...

<| Arial Font |>

When I click Left arrow key or Right arrow key.. the string values can be changed..
How do I implement it?
Is there some reference codes?

Thank you

jpn
18th August 2008, 13:41
One easy way would be: QToolButton+QLineEdit+QToolButton

sendyou
19th August 2008, 02:38
Thank you for your response...

When I implement custom QSpinBox2 that consists of three above widgets,
Each widgets in the QSpinbox2 are focused independently.

How can I focus the QSpinbox2?

wysota
19th August 2008, 07:10
You can change focus policies for the sub-widgets.

jpn
19th August 2008, 07:30
Or perhaps you could even use focus proxies.