Results 1 to 12 of 12

Thread: Scroll Bar Problem

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Scroll Bar Problem

    Hi,

    I have a scroll vertical scroll bar by my list widget. When I use mouse wheel it moves both upward and downward which is fine. But when I try to this via mouse left button(more precisely mouse click) it doesn't move upward, moves only downward.


    By the way my list widget stays in another widget(frame). Whwn I get it of this frame, list widget moves both upward and downward with both wheel and button.
    Last edited by zgulser; 3rd December 2009 at 08:28.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Scroll Bar Problem

    Could you provide an example code reproducing the problem?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Scroll Bar Problem

    Well, I don't know how to provide since I didn't implement the scroll bar. I just used the designer to the scroll bar. Hence, although I provide it won't be useful I guess. I can give a screen shot if you think it will illimunate my problem more?

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Scroll Bar Problem

    Quote Originally Posted by zgulser View Post
    Hi,I have a scroll vertical scroll bar by my list widget. When I use mouse wheel it moves both upward and downward which is fine. But when I try to this via mouse left button(more precisely mouse click) it doesn't move upward, moves only downward.By the way my list widget stays in another widget(frame). Whwn I get it of this frame, list widget moves both upward and downward with both wheel and button.
    It seems that your list widget is stoping you to select multiple rows. So please try to change the following flags:
    1. SelectionBehavior
    2. SelectionMode
    3. ScrollHint
    4. ScrollMode

  5. #5
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Scroll Bar Problem

    Hi,

    I don't want to select multiple rows already. I just want it to go upward with mouse click which is working for lonely list widget but not for a list widget inside a frame.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Scroll Bar Problem

    Please provide a minimal compilable example reproducing the problem. Currently we're just talking about theories.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Scroll Bar Problem

    I love to if I could.

    Anyway, the problem was not because of being inside another widget. I'm dealing with two projects. In one of them it works fine. However, in the other one it doesn't work as I expected. It has a motif style. May be that's why it doesn't seem normal.image.JPG
    Last edited by zgulser; 3rd December 2009 at 13:37.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Scroll Bar Problem

    Quote Originally Posted by zgulser View Post
    I love to if I could.
    Can't you write a simple application demonstrating what you want to obtain and what the problem is? How do you intend to implement the thing you want to do if you don't even want to try?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Scroll Bar Problem

    I just edited my previous message and posted an image what I'm doing. In this picture the upper list widget copied and pasted from the lower list widget and that's it. It seems totally different.

    Sorry again, I can't help more. If you can't, forget about it. Thanks.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Scroll Bar Problem

    Can you at least post the .ui file?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: Scroll Bar Problem

    Ok, I'm posting it. Please check your message box. It'd be a private message.

    Sorry for rules if any.

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Scroll Bar Problem

    Geez.... please attach the file to your post! You can't use attachments in private messages.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 19th November 2009, 18:19
  2. Scroll Area problem
    By Lodhart in forum Qt Programming
    Replies: 0
    Last Post: 10th October 2009, 13:03
  3. Unicode Font Display Problem
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd September 2009, 06:11
  4. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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.