Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011

    Adding Scrolling to QListWidget Items

    Hello all,

    I have a QListWidget to which I am adding few push buttons. So the list items are set of pushbuttons ..

    If I have large number of buttons I am not able to scroll to the items that are not in the main view....

    I have added the list widget to grid layout, which is the mainlayout...

    When I added QScrollArea...... my entire view became very small and is shown just in the top left corner..

    Any help, regarding how to add the scroll is apprciated.. please note that I am not using QtCreator.., since I don't want to h/d code the sizes as my app will be used in different form factor devices

  2. #2
    Registered User
    Join Date
    Jul 2008

    Re: Adding Scrolling to QListWidget Items

    You don't need to hardcode anything, but you could, for starters, try to softcode things... just ask Qt the size of you main window or desktop and size accordingly. (QtCreator - the IDE for pure code-driven development too - will not force you to to any hard coding...)

  3. #3
    Regular Contributor
    Join Date
    Mar 2012

    Re: Adding Scrolling to QListWidget Items

    or move to QML

Similar Threads

  1. How to add more items in QListWidget
    By siddugh in forum [Archived] Qt SDKs and Tools
    Replies: 12
    Last Post: 2011-01-03, 05:23
  2. Replies: 6
    Last Post: 2010-11-25, 13:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts