Results 1 to 2 of 2

Thread: Problem with the scrollbar

  1. #1
    Join Date
    Jun 2009
    Posts
    1
    Platforms
    Unix/X11

    Post Problem with the scrollbar

    Hi, I am using QT 4.4 to develop ui for my embedded system. I am facing a problem in the scrollbars(in both QListwidget and QScrollbar). If I try to move the scroll bar by clicking on the arrow keys provided at both ends of the scrollbar end, the slider moves properly in the required direction. But if I drag the slider and release it, the scrollbar immediately returns to the initial position instead of remaining in the place where I released it.
    When I observed the signals, I found that when I release the slider after dragging, it is emitting the signal valuchanged(int a) with the value of a set to 0(zero). This is causing the slider to go back to its initial position. I am not sure why it is happening.

    Can somebody help me in solving this issue? Is there any property that I need to set specifically to avoid this behavior in the scrollbar?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with the scrollbar

    Are you sure that you release it within the slider area? If you drag and release outside it might pop back to where it started (not sure though, probably depending on the style).

Similar Threads

  1. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

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.