Results 1 to 17 of 17

Thread: About QScroll Area

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: About QScroll Area

    Quote Originally Posted by franco.amato View Post
    Why wrong way? Seems work well.
    Many things seem well but you shouldn't use them as at some point the combination of things that seem to work fell will blow up into your face.

    I don't have to set to zero the scroll bar,
    Honestly, you don't have to do anything...

    I would keep visible the timeline
    Did you run my example? Did you see the gradient vanishing after reaching the end? Maybe things are already exploding in your face...
    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.


  2. #2
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: About QScroll Area

    Sorry but nothing is exploding in my face and yes I run your example.
    I think you should speak in a different way as administrator without ridicole the work of other developers.
    Maybe I'm not a Qt expert, my field is another and if I ask for help here is to learn and improve my Qt.

    Best Regards
    Franco Amato

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

    Default Re: About QScroll Area

    Quote Originally Posted by franco.amato View Post
    Sorry but nothing is exploding in my face
    If things that are working for me are not working for you then the only thing to blame is the code already in your application.
    and yes I run your example.
    Did it work? Did you adapt it to your application? Did it work there?

    I think you should speak in a different way as administrator without ridicole the work of other developers.
    This forum is here mainly to help others and not to praise their work, be it good or bad.

    Maybe I'm not a Qt expert, my field is another and if I ask for help here is to learn and improve my Qt.
    So learn and improve instead of going forward the wrong path even if someone is constrantly trying to pull you away from it.

    You can abuse some mechanisms in Qt and they will work. But at some point you reach a situation when the side effects of all the abuses get stacked and accumulate effectively preventing you from finishing your task successfully. The rules of Software Engineering say that the latter you spot the problem, withdraw from it and do things the proper way, the more expensive it is.
    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.


  4. #4
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: About QScroll Area

    Quote Originally Posted by wysota View Post
    If things that are working for me are not working for you then the only thing to blame is the code already in your application.
    I didn't say that it doesn't work, I said that I don't need it also if your example is very good. Maybe my english sometime is not perfect.

    Did it work? Did you adapt it to your application? Did it work there?
    Yes it works. In the attached widget I already have a timer that move a timeline so the routine used by me seems perfect for my purpose.
    Johan Thelin suggested it to me.


    This forum is here mainly to help others and not to praise their work, be it good or bad.


    So learn and improve instead of going forward the wrong path even if someone is constrantly trying to pull you away from it.

    You can abuse some mechanisms in Qt and they will work. But at some point you reach a situation when the side effects of all the abuses get stacked and accumulate effectively preventing you from finishing your task successfully. The rules of Software Engineering say that the latter you spot the problem, withdraw from it and do things the proper way, the more expensive it is.
    If this routine is so bad, why it exists? Seems done for my purpose
    Franco Amato

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

    Default Re: About QScroll Area

    Quote Originally Posted by franco.amato View Post
    Yes it works. In the attached widget I already have a timer that move a timeline so the routine used by me seems perfect for my purpose.
    I don't see how using ensureVisible() is more "perfect" than setting the value of the scroll bar to 0 but have it your way...

    If this routine is so bad, why it exists? Seems done for my purpose
    "If division by 0 is a bad thing then why does division exist at all?"

    In other words, I didn't say the routine is bad, I said it's bad in your case (actually it's not that bad in this situation but once you start adding more functionality it might become bad).
    Last edited by wysota; 26th January 2010 at 17:06.
    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.


  6. #6
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: About QScroll Area

    Quote Originally Posted by wysota View Post
    I don't see how using ensureVisible() is more "perfect" than setting the value of the scroll bar to 0 but have it your way....
    Why should I set the value to zero? I have to keep visible the timeline ( in my case a moving line from left to right ) that disappear in the right size of the widget when I resize it ( while playing a sound )


    "If division by 0 is a bad thing then why does division exist at all?"

    In other words, I didn't say the routine is bad, I said it's bad in your case (actually it's not that bad in this situation but once you start adding more functionality it might become bad)
    I think you didn't understand my scenario, sure for my bad english sorry.

    Best Regards
    Franco Amato

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

    Default Re: About QScroll Area

    Quote Originally Posted by franco.amato View Post
    Why should I set the value to zero? I have to keep visible the timeline ( in my case a moving line from left to right ) that disappear in the right size of the widget when I resize it ( while playing a sound )
    Well, you said "shifted to the left". I understood you want to go back to the beginning when the timeline ends.
    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.


  8. #8
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    694
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    59
    Thanked 1 Time in 1 Post

    Default Re: About QScroll Area

    Quote Originally Posted by wysota View Post
    Well, you said "shifted to the left". I understood you want to go back to the beginning when the timeline ends.
    Sorry my bad english plays against me
    Franco Amato

Similar Threads

  1. About visual area
    By calmspeaker in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2009, 13:14
  2. Replies: 19
    Last Post: 26th November 2008, 19:54
  3. Qt From Without Title area
    By nleverin in forum Newbie
    Replies: 3
    Last Post: 7th March 2008, 06:45
  4. scroll area like QGraphicsItem
    By Gopala Krishna in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2008, 11:28
  5. select a particular area
    By vishesh in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2007, 21:44

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
  •  
Qt is a trademark of The Qt Company.