Results 1 to 2 of 2

Thread: checkbox position on resize

  1. #1

    Default checkbox position on resize

    Hello,
    I am pretty new to QT but not new to C++.

    I have a custom widget that displays a graph that's updated in real time. I also have a checkbox on that graph off to the side so a user can check it and something happens to the graph. When the screen starts, the checkbox is in the correct position (because I placed it there ) but when I go to full screen its not where I want it. Its not in proportion to its original position and my graph. Its actually over some of my data.

    I am sure there is an easy way to fix this (I hope).

    Also is there a way to not have the checkbox highlighted after you checked it? It has like a shaded orange colour around it. Its pretty annoying.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: checkbox position on resize

    Where in the widget tree did you position the checkbox?
    Is it a sibling or a child of the graph?
    Did you use coordinates for positioning or layouts?

    The problem with the highlighting can probably be solved by setting the focus policy to "no focus".

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 27th October 2015, 12:50
  2. Replies: 1
    Last Post: 5th July 2014, 11:38
  3. view position of mouse position in GraphicsScene
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2012, 04:46
  4. Replies: 4
    Last Post: 1st June 2011, 14:54
  5. To resize CheckBox in QTreeWidget using QStyle?
    By merry in forum Qt Programming
    Replies: 0
    Last Post: 25th May 2011, 07:26

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.