Results 1 to 3 of 3

Thread: QComboBox: remove drop Down Arrow

  1. #1
    Join Date
    Mar 2006
    Location
    Argentina - CABA
    Posts
    66
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Unix/X11

    Default QComboBox: remove drop Down Arrow

    Hi folks!

    Actually i want to remove the drop Down arrow since i did it in the border-image, and seems i can't:

    Qt Code:
    1. border-image: url(:/Styles/styles/comboBox.png) 2 8 2 8 stretch stretch;
    2. border-width: 2x 8px 2px 8px;
    3. min-height: 19px;}
    4. QComboBox:hover {
    5. border-image: url(:/Styles/styles/comboBox_hover.png) 2 8 2 8 stretch stretch;
    6. border-width: 2px 8px 2px 8px;
    7. min-height: 19px;}
    8. QComboBox:on {
    9. border-image: url(:/Styles/styles/comboBox_pressed.png) 2 8 2 8 stretch stretch;
    10. border-width: 2px 8px 2px 8px;
    11. min-height: 19px;}
    12. QComboBox::down-arrow {
    13. image: none;}
    14. QComboBox::down-arrow:on {
    15. image: none;}
    16. border-image: url(:/Styles/styles/menuBg.png) 2 2 2 2;
    17. border-width: 2px 2px 2px 2px;}
    To copy to clipboard, switch view to plain text mode 
    And i have this weird result (Attached image).

    Any tip?

    Thanks
    Attached Images Attached Images
    Gustavo A. DÃ*az
    artistic.gdnet.com.ar

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

    Default Re: QComboBox: remove drop Down Arrow

    So why not cut the image and use part of it for the drop-down arrow? Just move it to the right a bit to align with the rest of the image.

  3. #3
    Join Date
    Mar 2006
    Location
    Argentina - CABA
    Posts
    66
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Unix/X11

    Default Re: QComboBox: remove drop Down Arrow

    Hi,


    I know i could do that, i am asking another thing here....

    Thanks...

    Cheers.
    Gustavo A. DÃ*az
    artistic.gdnet.com.ar

Similar Threads

  1. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 20:25

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.