Results 1 to 4 of 4

Thread: question on the QComboBox

  1. #1
    Join Date
    May 2010
    Location
    China
    Posts
    66
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default question on the QComboBox

    i want to set size of the QComboBox item QIcon Size and the QIcon size of the QCombobox dosen't change.

  2. #2
    Join Date
    Sep 2013
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: question on the QComboBox

    bro...
    use this link it will show how to design the widget eg .. size , images
    http://harmattan-dev.nokia.com/docs/...zing-qcheckbox

    for my suggestion
    use
    QIcon Icon_Obj;
    Icon_Obj->setIconsize();
    Last edited by $ATHEES; 5th September 2013 at 07:05. Reason: updated contents

  3. #3
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: question on the QComboBox

    Open your ui file in designer and select combobox and in property window set icon size 32 for both width and height.
    Now right click on the combobox and from menu select "Edit items..." .
    new dialog will open, press "+" button to add item.
    select item and press properties button on this dialog and it will allow you to set icon here select your icon and it will work, I have tested this and it's working.

    This can be done programmatically also, you can try that.

  4. #4
    Join Date
    Feb 2014
    Posts
    43
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: question on the QComboBox

    Hi All,

    I have so much of curia-city to know why should i unable to select checkbox from qcombobox when the list of checkbox having only one checkbox.

    if the checkbox list has many checkboxes am able to select or unselect checkboxes, but why not in this case. please any one conclude my problem..

    your help will unforgettable .

Similar Threads

  1. QComboBox roles question
    By mentalmushroom in forum Qt Programming
    Replies: 9
    Last Post: 27th April 2012, 23:04
  2. Set value to QComboBox
    By Archa4 in forum Newbie
    Replies: 2
    Last Post: 19th May 2011, 13:46
  3. Qcombobox and model/item based question
    By yaguis in forum Newbie
    Replies: 5
    Last Post: 7th June 2010, 02:22
  4. Basic question on QComboBox
    By Raccoon29 in forum Newbie
    Replies: 2
    Last Post: 9th May 2008, 17:41
  5. Language Selector QCombobox question
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 31st January 2008, 09:03

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.