Results 1 to 8 of 8

Thread: why pushbutton moving??

  1. #1
    Join Date
    Dec 2006
    Posts
    103
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Question why pushbutton moving??

    i hv made a mainwindow in Qt designer.
    in this i added a dockwidget as floating window or sidebar n there is a pushbutton on central widget..
    now when i m moving the dockwidget across the central widget then the pushbutton is moving the opposite side as if giving space for the side bar..
    how can i fix the place of pushbutton irrespective of moving dockwidget?
    please suggest..
    i m working on windows xp.. qt evaluation version 4.2.2 and Microsoft visual studio 6.0C++

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: why pushbutton moving??

    Does it behave just like demos/mainwindow demo?

  3. #3
    Join Date
    Dec 2006
    Posts
    103
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: why pushbutton moving??

    Quote Originally Posted by jacek View Post
    Does it behave just like demos/mainwindow demo?
    yes its exactly behaving like demos/mainwindow demo. so can u tel me the reason and how it can b avoided..

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: why pushbutton moving??

    Quote Originally Posted by Shuchi Agrawal View Post
    yes its exactly behaving like demos/mainwindow demo. so can u tel me the reason and how it can b avoided..
    It's a feature and you can disable it by setting the animated property to false.

  5. #5
    Join Date
    Dec 2006
    Posts
    103
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: why pushbutton moving??

    i have one dock widget n one push button.. i tried setting this animated property false but its not working... i dnt know why? as still the pushbutton is moving the other way when dock widget is moved at its place. what can b the reason?
    I worked on windows Xp with Qt 4.2.2(Open Source Version) and MinGw
    now i am trying the same things on Fedora Core 5 (linux-gcc) and Qt 4.2.2 open source edition.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: why pushbutton moving??

    Quote Originally Posted by Shuchi Agrawal View Post
    as still the pushbutton is moving the other way when dock widget is moved at its place. what can b the reason?
    How is that button "moving"? Do you still see the animation or it just jumps aside to make place for the dock widget?

  7. #7
    Join Date
    Dec 2006
    Posts
    103
    Thanks
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: why pushbutton moving??

    ya its jump aside to make place for the dock widget... i think this is what animation is? is it not?
    I worked on windows Xp with Qt 4.2.2(Open Source Version) and MinGw
    now i am trying the same things on Fedora Core 5 (linux-gcc) and Qt 4.2.2 open source edition.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: why pushbutton moving??

    Quote Originally Posted by Shuchi Agrawal View Post
    ya its jump aside to make place for the dock widget...
    This is how it works in Qt 4.2. You need some empty space to drop your dock widget.

    Quote Originally Posted by Shuchi Agrawal View Post
    i think this is what animation is? is it not?
    No, the animated version is fluent.

  9. The following user says thank you to jacek for this useful post:

    Shuchi Agrawal (22nd January 2007)

Similar Threads

  1. Replies: 8
    Last Post: 1st October 2015, 07:23
  2. How to resize window with pushbutton
    By kaydknight in forum Newbie
    Replies: 2
    Last Post: 13th January 2007, 12:17
  3. Moving a QFile
    By stevey in forum Qt Programming
    Replies: 1
    Last Post: 24th August 2006, 11:56
  4. [Qt4] - Moving Widget...
    By IPFreely in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2006, 09:32
  5. moving QWidget and Mainform
    By mickey in forum Newbie
    Replies: 9
    Last Post: 6th April 2006, 17:54

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.