<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Docked tool browser does not visually scroll, but it does when undocked in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7599713#M10828</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've just tested it with Maya 2017 Update 4 running on Windows 10. It seems working fine, I could drag the scrollbar as expected. Are you using Maya 2017 with latest update(should be update 5)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2017 04:01:03 GMT</pubDate>
    <dc:creator>cheng_xi_li</dc:creator>
    <dc:date>2017-12-06T04:01:03Z</dc:date>
    <item>
      <title>Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7580774#M10821</link>
      <description>&lt;P&gt;I'll try to explain this clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this worked in maya 2016, I'm trying to port it to the new 2017/2018 world. It's not originally my ui code and it's a bit complex, so I need a bit of help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a toolBrowser (kind of like a vertical shelf with buttons).&amp;nbsp; There is a QTabWidget, within each tab a QStackedWidget, within that a custom scrolling ListView within which we have the custom button-like widgets.&amp;nbsp; It is all&amp;nbsp;in a&amp;nbsp;workspaceControl, so it docks nicely with the attribute editor.&amp;nbsp; The problem is that while the scrolling list works fine while the workspaceControl is floating, it appears to not scroll when docked.&amp;nbsp; It actually does scroll, but the display is not refreshed.&amp;nbsp; I can tell this because I can force a refresh by switching tabs, and then I can see the list has scrolled to where it should have.&amp;nbsp; The tool widgets in the ListView work fine.&lt;BR /&gt;&lt;BR /&gt;What am I missing?&amp;nbsp; It's like the scrollbar part of the widget gets the mouse click and drag events, but it the widget not getting refreshed when the list is scrolled.&amp;nbsp; I'm a bit new to qt, so I'm sure I'm missing something obvious...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Sumit&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 02:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7580774#M10821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T02:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7581003#M10822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you give us a sample? Maya 2017 uses Qt5 while Maya 2016 uses Qt4. There could be some differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 06:24:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7581003#M10822</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2017-11-29T06:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7582897#M10823</link>
      <description>&lt;P&gt;Thanks, I'll try to extract something manageable that demonstrates the problem.&amp;nbsp; I have already converted all the code to pyside2 and Qt5, but maybe I've missed something.&amp;nbsp; To be clear though, I was able to get it working when I did not use the new workspaceControl docking&amp;nbsp;method (it used dockControl).&amp;nbsp; It did not dock in the correct place, so I'm trying to update it.&amp;nbsp; That's when I started getting the refresh/scrolling problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 17:24:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7582897#M10823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7583893#M10824</link>
      <description>&lt;P&gt;OK,&amp;nbsp;below is&amp;nbsp;the top level of the code, hopefully the problem&amp;nbsp;can be found in this snippet.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks, Sumit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import os, sys
import maya.cmds
from Qt import QtCore, QtGui
import project.Cinematics.cgcore.qt.qt as qt

from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
form_class, base_class = qt.loadUiType("C:\\Maya2017_dev\\depot\\tools\\art_working\\python\\project\\Cinematics\\cgcore\\apps\\maya\\toolBrowser\\toolBrowserWindow.ui")

class ToolBrowserWindow(MayaQWidgetDockableMixin, base_class, form_class):
    def __init__(self, name):
        super(ToolBrowserWindow, self).__init__()
        
        self.setupUi(self)
        self._helperObj = toolBrowser.ToolBrowser()
        self.populateViewTabs()
        
        # Turn it into a workspaceControl so it will dock properly
        workspaceControlName = self.objectName() + 'WorkspaceControl'
    
        # this class is inheriting MayaQWidgetDockableMixin.show(), which will eventually call maya.cmds.workspaceControl.
        # I'm calling it again, since the MayaQWidgetDockableMixin dose not have the option to use the "tabToControl" flag,
        # which was the only way i found i can dock my window next to the channel controls, attributes editor and modelling toolkit.
        self.show(dockable=True, area='right', floating=True)
        mayaWorkspaceControl = maya.cmds.workspaceControl(workspaceControlName,
                                                          edit = True,
                                                          tabToControl=["AttributeEditor", -1],
                                                          widthProperty="preferred",
                                                          loadImmediately=True,
                                                          initialWidth=300,
                                                          minimumWidth=300)
        self.raise_()
        
    def populateViewTabs(self):
        modelObj = self.createItemModel("all")
        listViewObj = ListView(isFavoriteIn=False, parentObjIn=self)
        listViewObj.setModel(modelObj)
        self.viewTabs.addTab(listViewObj, "all")

    def createItemModel(self, category):
        toolInfosList = self._helperObj.getToolInfos(category)
        toolInfoModelObj = ItemModel(toolInfosList, self)

        proxyModelObj = ItemProxyModel(self)
        proxyModelObj.setSourceModel(toolInfoModelObj)
        proxyModelObj.setFilterRole(QtCore.Qt.UserRole)
        proxyModelObj.setFilterCaseSensitivity(QtCore.Qt.CaseInsensitive)
        proxyModelObj.setSortRole(QtCore.Qt.UserRole)
        proxyModelObj.sort(0)

        return proxyModelObj &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 22:07:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7583893#M10824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T22:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7584764#M10825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at your top level code but I don't think it is very helpful to reproduce the issue on my side. Please send me a sample could reproduce the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 08:00:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7584764#M10825</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2017-11-30T08:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7586440#M10826</link>
      <description>I was hoping something would jump at at you in the top level code. I'll&lt;BR /&gt;make a reproducible example that I can send as soon as I have time. Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Nov 2017 17:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7586440#M10826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T17:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7599620#M10827</link>
      <description>&lt;P&gt;OK, I have a nice simple case that shows the problem.&amp;nbsp; There is a zip of a directory containing a python file and a .ui file attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how to reproduce it:&lt;BR /&gt;1) Start up maya 2017&lt;/P&gt;&lt;P&gt;2) In the python script editor, import the python file:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;import toolBrowserWindow_TEST&lt;/P&gt;&lt;P&gt;3) Run the main in that module:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; toolBrowser = toolBrowserWindow_TEST.main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should now see a 150-item list (Tab name: Tools Browser) with a scroll bar docked at the right side of the screen.&amp;nbsp; The scroll bar will not respond to clicking or dragging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Drag the Tools Browser tab out so it is floating.&amp;nbsp; Now the scroll bar should work.&lt;/P&gt;&lt;P&gt;5) Re-dock it in the same place and it will not scroll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can correct whatever I'm doing wrong, I would appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 02:29:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7599620#M10827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T02:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7599713#M10828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've just tested it with Maya 2017 Update 4 running on Windows 10. It seems working fine, I could drag the scrollbar as expected. Are you using Maya 2017 with latest update(should be update 5)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 04:01:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7599713#M10828</guid>
      <dc:creator>cheng_xi_li</dc:creator>
      <dc:date>2017-12-06T04:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Docked tool browser does not visually scroll, but it does when undocked</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7602699#M10829</link>
      <description>&lt;P&gt;That was it!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;I was on vanilla no-updates 2017.&amp;nbsp; I'm on Windows 7, but applying Update 5 (which took a couple of hours) did the trick!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Sumit&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 21:01:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/docked-tool-browser-does-not-visually-scroll-but-it-does-when/m-p/7602699#M10829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T21:01:37Z</dc:date>
    </item>
  </channel>
</rss>

