Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User airwatch's Avatar
    Join Date
    Feb 2011
    Posts
    37
    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 mvuori's Avatar
    Join Date
    Jul 2008
    Posts
    90
    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 vladestCh's Avatar
    Join Date
    Mar 2012
    Posts
    144
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved