PDA

View Full Version : Horizontal QSpinBox or QComboBox???



sendyou
18th August 2008, 14: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, 14:41
One easy way would be: QToolButton+QLineEdit+QToolButton

sendyou
19th August 2008, 03: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, 08:10
You can change focus policies for the sub-widgets.

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