Results 1 to 4 of 4

Thread: i have a problem in a very small application?

  1. #1
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question i have a problem in a very small application?

    hi, i am trying to develop an application with 2 buttons "hide" & "test" when i press on
    hide the test must disappear there is no problem until now but when i do the size of
    the hide button is increased and expanded to take the other button location, but i need
    this button with fixed size, there is a solution?
    thanks.

  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: i have a problem in a very small application?

    Quote Originally Posted by coder1985 View Post
    this button with fixed size, there is a solution?
    thanks.
    Set its size policy to fixed in both directions.

    By the way - please try to use more descriptive titles for the threads you create.

  3. #3
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: i have a problem in a very small application?

    i have already "hsizeType" and "vsizetype" under sizepolciy fixed.
    By the way - please try to use more descriptive titles for the threads you create.
    and thaks for your advises that help me much to be familiar with this forum and as you know i am a new to all tese things thank you again.

  4. #4
    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: i have a problem in a very small application?

    Quote Originally Posted by coder1985 View Post
    i have already "hsizeType" and "vsizetype" under sizepolciy fixed.
    In that case there is no way your button may be expanding. It can only move to the centre of the parent widget. If you want to avoid that, add a vertical splitter (or an equivalent stretch using hand written code) so that it pushes the widget back up.

  5. The following user says thank you to wysota for this useful post:

    coder1985 (22nd November 2007)

Similar Threads

  1. Replies: 7
    Last Post: 28th June 2007, 17:18
  2. Replies: 5
    Last Post: 15th June 2007, 22:08
  3. Application deployment problem
    By shapirlex in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 13th April 2007, 00:11
  4. GUI problem in Qt application
    By mahiapkum in forum Qt Programming
    Replies: 8
    Last Post: 26th March 2007, 17:03
  5. Problem in creating thread in GUI application
    By jyoti kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:05

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.