Results 1 to 5 of 5

Thread: Horizontal QSpinBox or QComboBox???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Qt products
    Platforms
    Unix/X11 Windows

    Default Horizontal QSpinBox or QComboBox???

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Horizontal QSpinBox or QComboBox???

    One easy way would be: QToolButton+QLineEdit+QToolButton
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    sendyou (19th August 2008)

  4. #3
    Join Date
    May 2008
    Posts
    3
    Thanks
    1
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: Horizontal QSpinBox or QComboBox???

    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?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Horizontal QSpinBox or QComboBox???

    You can change focus policies for the sub-widgets.

  6. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Horizontal QSpinBox or QComboBox???

    Or perhaps you could even use focus proxies.
    J-P Nurmi

Similar Threads

  1. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 19:25
  2. QSpinBox with checkbox
    By :db:sStrong in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2007, 13:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.