[Interest] [EXTERNAL] Re: How to make a 2D scrollable GridView

Lynetta Rajkovich lynetta.rajkovich at esterline.com
Tue Mar 28 01:00:14 CEST 2017


I can't seem to create a GridLayout that has elements off the screen.  The whole notion of a GridLayout is the ability to resize.  In my case the window and elements will be a fixed size like a grid of similar buttons. How do I create elements that are a fixed size such that some rows and columns are not inside the window?


Regards,

Lynetta
________________________________
From: Interest <interest-bounces+lynetta.rajkovich=esterline.com at qt-project.org> on behalf of Majid Kamali <majidkamali1370 at gmail.com>
Sent: Monday, March 27, 2017 2:18 PM
Cc: interest at qt-project.org
Subject: [EXTERNAL] Re: [Interest] How to make a 2D scrollable GridView

See Example Usage http://doc.qt.io/qt-5/qml-qtquick-flickable.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__doc.qt.io_qt-2D5_qml-2Dqtquick-2Dflickable.html&d=DwMFaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=IknPqPXmSYVDFY1jvoyN4taBF4gtL3Ly5WM5g6rq9ec&m=AwEE8sk-js2m80W5o71pC5jeyVViLcdT80t0N3p59NA&s=RFAGk8CYku2k_kCLge0lUt9f3HsVP1ilJ66WWRuQW7Q&e=>
Nesting a GridLayout inside the Flickable may be useful

On Mon, Mar 27, 2017 at 10:13 PM, Lynetta Rajkovich <lynetta.rajkovich at esterline.com<mailto:lynetta.rajkovich at esterline.com>> wrote:

Hi!


I need to make a Grid that is, lets say, 15 x 15 where only a 4 x 4 subset is shown in the application window at a time.  Scrolling is done using the mouse scroll wheel or arrow keyboard keys. The grid size and subset size will be fixed and known.


Can you please suggest an approach for this using Qt Quick / Qml framework or point me to an example?


Regards,

Lynetta

_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest&d=DwMFaQ&c=0hKVUfnuoBozYN8UvxPA-w&r=IknPqPXmSYVDFY1jvoyN4taBF4gtL3Ly5WM5g6rq9ec&m=AwEE8sk-js2m80W5o71pC5jeyVViLcdT80t0N3p59NA&s=d3C3AG-i190HGWXmRupGQoWpO-8iCemy60anUR2hgoI&e=>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170327/36499a93/attachment.html>


More information about the Interest mailing list