What do you mean with "it doesn't work"?
Are you sure you want the scrollable content to be the same size as the visible area?
Cheers,
_
What do you mean with "it doesn't work"?
Are you sure you want the scrollable content to be the same size as the visible area?
Cheers,
_
from my understanding the scrollable content need to be smaller than the visible area ? mine is same size ...
I tried changing size of content:
Qt Code:
contentHeight: tableView.height * .9 contentWidth: tableView.width *.9To copy to clipboard, switch view to plain text mode
I cant scroll-drag the table in the tableView by touch or by mouse drag....
I want to use the flickable area to make the tableView scrollable by touch (app will be running on touch screen)
I tried out putting some text to the log and don't get anything to out put
Qt Code:
onFlickStarted: { console.log("area flicked"); console.log(tableViewFlickable.dragging) }To copy to clipboard, switch view to plain text mode
I'm starting to think it might not be possible to use flickable to scroll the tableView rows
when I wrap the tableView inside the flickable area It works kind of but the hole table moves instead of the rows scrolling in the tableView it self
I tried wrapping just the tableViewColumns in the flickable area that didn't work no data from model displays
Tried moving the flickable obj inside the tableView obj didn't seem to work either
I discovered: TableView inherits ScrollView. I don't think flickable will work with tableView it will work with listView because it is inherited by listView. TableView doesn't inherit flickable..... is this correct?
Last edited by jfinn88; 23rd September 2016 at 23:57.
Usually the content is larger, otherwise you wouldn't need to scroll.
You set the visible size to be the same as the content size, so your content will always be visible fully.
Any specific reason for using a Flickable? The TableView already scrolls its content itself, why do you also need to move the view itself?
Cheers,
_
I thought I would have to use the flickable area to make the tableView scroll by touch...
A view that can't scroll by itself would be pretty useless IMHO.
Cheers,
_
I agree and it dose provide scroll bars by its self I get that, I'm not sure about the touch screen side though...
I would be equally surprised if any QtQuick component would not work with touch screen, after all that's the main use case for this UI technology.
Cheers,
_
right! that’s why I chose to use it. I have found a know bug when using ScrollView will disable a flickable area in a listView. I'm wondering if there is something messing with my tableViews flickable inheritance that is similar to the listView issue. I'm making progress on my UI thanks for the help
was able to find property for enabling flickable area with ScrollView:
soln: flickableItem.interactive: true - allows flickable are in listView with ScrollView
not sure how to get tableView flickable to work now....
Last edited by jfinn88; 27th September 2016 at 19:01.
Bookmarks