Results 1 to 8 of 8

Thread: QFrame

  1. #1
    Join Date
    Jul 2012
    Posts
    11
    Thanks
    6

    Default QFrame


    so i have been makeing an alarm clock as you can see (Finishing the GUI Before Codeing...) and iv hit a few snags

    1)the window you see in the picture is not the main window.... and for some reason i cant check the boxes...
    2)iv tried to put in some frames in the gui but there not showing up is there some code to make the black or something i have tried to look at the help file but couldnt figure it out ;(

    Thanks in advance

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QFrame

    little hint... if you see red boxes in designer, you're probably doing it wrong

    QFrame is pretty obvious, it even has some example for frameStyle...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jul 2012
    Posts
    11
    Thanks
    6

    Default Re: QFrame

    redboxes == layouts and there working fine

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

    Default Re: QFrame

    Are you sure they are working fine? It seems you don't have a layout set on the top-level window and you have a large number of completely unnecessary layouts that (if they worked) should slow down layouting of your dialog considerably.

    What happens if you resize the window up? Do all the widgets inside start moving around according to what you defined with the layouts or does some extra space appear on the right and bottom of the window?
    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.


  5. #5
    Join Date
    Jul 2012
    Posts
    11
    Thanks
    6

    Default Re: QFrame

    Quote Originally Posted by wysota View Post
    Are you sure they are working fine? It seems you don't have a layout set on the top-level window and you have a large number of completely unnecessary layouts that (if they worked) should slow down layouting of your dialog considerably.

    What happens if you resize the window up? Do all the widgets inside start moving around according to what you defined with the layouts or does some extra space appear on the right and bottom of the window?
    extra space apears also can u answer the question about not being able to interact with the window?/
    thanks in advance

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QFrame

    extra space apears
    So the top-level widget does not have a layout, which is everyone else's point.

    can u answer the question about not being able to interact with the window?
    You will have to explain what you mean by "i cant check the boxes" and "not being able to interact" because there's nothing we can tell from a static screen shot.

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

    Default Re: QFrame

    I suspect there might be some extra widget covering your check boxes or something like that which prevents mouse events from reaching their proper target. I suggest you first fix layouting and maybe your problem will go away.
    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
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QFrame

    Here is something similar to your widget. All the items are in layouts, yet there are no red boxes.
    Attached Images Attached Images
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Using css for all QFrame's except one.
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 10th July 2008, 08:05
  2. Rotation on Qframe
    By Pharell in forum Qt Programming
    Replies: 11
    Last Post: 2nd April 2008, 16:31
  3. QFrame problem
    By impeteperry in forum Qt Programming
    Replies: 4
    Last Post: 23rd February 2008, 20:34
  4. scrollbar in a qframe
    By davea402 in forum Qt Programming
    Replies: 2
    Last Post: 21st February 2008, 18:26
  5. Reg - QFrame
    By suresh in forum Qt Programming
    Replies: 1
    Last Post: 1st November 2006, 04:34

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.