Setting background color breaks windowsvista style



  • I have a Qt application consisting of a QTreeView inside a QMainWindow. The application works fine until I try to use a stylesheet to set the QTreeView's background color:

    @QTreeView {
    background-color: gray
    }@

    The background color does indeed change. But if I try to move or resize the window with the mouse, the application blocks. It looks as though the mouse is being grabbed and not released, because if I hit Ctrl-Alt-Del to get Windows' attention, and then hit Esc, it unblocks the application.

    Has anybody out there had similar problems? I am using Qt 5.0.0 on Windows 7.

    Thanks...



  • A new element: I only have this problem with the default style, which would appear to be "windowsvista"...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.