Results 1 to 3 of 3

Thread: Problem in accessing groupbox controls.

  1. #1
    Join Date
    Aug 2012
    Posts
    33
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Problem in accessing groupbox controls.

    Hi.........
    i am using qtcreator 2.1....
    I have an application in which i place a group box which contains labels and line edit controls.
    i can access labels directly as
    ui-> label->text();

    but while i am trying to use line edit it not accepting that controls and an error occurred while building.
    Error is:
    "there is no refernce to lineedit in mainform.cpp".

    i can access all other controls except line edit.
    is there any property setting to do it?
    what is exclusive property of a group box in qt3.
    why such kind of property not available in recent versions?
    and my group box have no frame.is there any way to create groupbox with frame?
    i have seen flat() and is flat() functions also.
    But nothing helps me to come out of it........

    help me out ...........

    thanku..........

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem in accessing groupbox controls.

    show your code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    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: Problem in accessing groupbox controls.

    what is exclusive property of a group box in qt3.
    When you read the manual for this ancient version of Qt you will find there is no "exclusive" property on a QGroupBox.
    why such kind of property not available in recent versions?
    It didn't exist in previous versions of QGroupBox and continues to not exist.

    QButtonGroup had/has an exclusive property that does exactly what the docs say it does. QButtonGroup is not a visible GUI group box though.
    and my group box have no frame.is there any way to create groupbox with frame?
    QGroupBox has a frame by default for styles that draw group boxes with frames. See the Widget Gallery. You can probably force a frame with a style sheet.
    i have seen flat() and is flat() functions also.
    Congratulations

Similar Threads

  1. problem in accessing qt header files
    By namus in forum Newbie
    Replies: 1
    Last Post: 4th June 2010, 11:35
  2. QCachece accessing problem
    By rajini333 in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2009, 19:15
  3. Groupbox has no borders ?
    By vieraci in forum Qt Programming
    Replies: 12
    Last Post: 30th April 2009, 12:46
  4. A Shadow of my groupBox
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 28th June 2008, 21:41
  5. Hiding controls changes spacing of other controls
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2007, 20:47

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.