Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Setting background color breaks windowsvista style
Forum Updated to NodeBB v4.3 + New Features

Setting background color breaks windowsvista style

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    glevner
    wrote on last edited by
    #1

    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...

    1 Reply Last reply
    0
    • G Offline
      G Offline
      glevner
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved