-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] QTree enhancement #2711
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rstoenescu
First of all, thank you for such great quality in a product. World class!
I started using QTree in an Electron product and it's very similar to a file explorer structure. Directories on the left and child contents of the selected directory on the right. Above the QTree is a number of shortcuts (Home, Documents, Downloads, etc -- directories).
What I wanted is that if a user selects one of these shortcuts, or a folder on the right, that the QTree is able to open and select the proper node.
I am doing this using an "undocumented" function,
setExpanded
, in the QTree. This occurs after I collect the children information of that folder.This works pretty good, but I am concerned about it being undocumented. Is there a possibility this can be added in the documentation for
QTree Methods
?Now, the enhancement part...
If a user has a large amount of folders (or expanded folders), when a folder is programmatically expanded and the the expanded key is not visible, that there would be an option to call
<element>.scrollIntoView
?Thanks.
The text was updated successfully, but these errors were encountered: