Results 1 to 5 of 5

Thread: QDockWidget splitter, cursor shape

  1. #1
    Join Date
    Jul 2006
    Posts
    20
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default QDockWidget splitter, cursor shape

    For resizing a dockwidget there is a splitter. When using that splitter to resize it will of course capture the mouse, and change the cursor shape. But, the cursor shape will change only when the cursor hovers the splitter, making it flicker when cursor moves faster than the widget resizes.
    This happens in programs written with Qt4, in Assistant 4.3.3 and in programs from KDE 4.
    I did not find a method to overcome this, and I guess it is a bug.
    Can anyone offer a solution or confirm?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QDockWidget splitter, cursor shape

    Although it is possible that it is a Qt bug, it is more probable that its a bug in your application or, that you are just not doing it right.
    If you show us the relevant code where you change the cursor, we might be able to help you.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jul 2006
    Posts
    20
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QDockWidget splitter, cursor shape

    The simplest way to see it is to run a Qt4 Assistant and resize the 'Sidebar' dock that Assistant has on the left.

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QDockWidget splitter, cursor shape

    Quote Originally Posted by alecs1 View Post
    The simplest way to see it is to run a Qt4 Assistant and resize the 'Sidebar' dock that Assistant has on the left.
    It doesn't flicker, it just relayouts really slow, and that's mostly because of the tab widget.
    I am afraid you can't do much about that, except waiting for 4.4, where things like this are said to be improved.

    And you can't actually call this a bug. More a side effect of layout flexibility.

  5. #5
    Join Date
    Jul 2006
    Posts
    20
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QDockWidget splitter, cursor shape

    That I understand, but if they improve it, it's even better.
    But what I was talking about is the cursor shape, that changes from drag cursor to pointing cursor and back.
    Anyway, I can live with it until it will be fixed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.