Results 1 to 7 of 7

Thread: Problem in size of window.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Re: Problem in size of window.

    They are not button they are painted shape so how i can add them in a layout.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Problem in size of window.

    Quote Originally Posted by Niamita
    I am facing a big problem i am developing a application in which i draw buttons through paint on the fixed cordinate according to the desktop screen size, now the problem is that if screen size decreased then my all drawing should adjust according to the screen but it is not happening,
    If you are fixing the coordinates, then they will remain their as long you don't change them, if you want then coordinates to be updated as per the window size and shape automatically, you should be using one the layout managers (QHBoxLayout / QGridLayout etc). As indicated in earlier posts read about Layout Management

    Quote Originally Posted by Niamita View Post
    They are not button they are painted shape so how i can add them in a layout.
    How did you paint them? did you use QWidget?

  3. #3
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Re: Problem in size of window.

    i paint them on a frame, and they are in hexagon shape and join to each other.

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Problem in size of window.

    Looks like from your description of the app, you should be using QGraphicsScene and QGraphcisView, not QFrame to paint. Review your requirements.

Similar Threads

  1. Get window size prior to showing window?
    By mortoray in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2011, 16:52
  2. Main Window size problem
    By frenk_castle in forum Newbie
    Replies: 2
    Last Post: 20th December 2009, 10:49
  3. Replies: 4
    Last Post: 20th November 2009, 12:25
  4. Window Size
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2009, 13:02
  5. update window size
    By eric in forum Newbie
    Replies: 3
    Last Post: 14th January 2008, 10:21

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.