Results 1 to 3 of 3

Thread: Enable QWidget child while parent disabled

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Enable QWidget child while parent disabled

    Hi,

    I have a QGroupBox that is disabled and one of their childs have to be enabled.

    Qt Code:
    1. pqGB->setDisabled(true);
    2. pqMyWidget->setEnabled(true); //Child of "pqGB"
    To copy to clipboard, switch view to plain text mode 


    But the widget is disabled.

    Thanks,
    Òscar Llarch i Galán

  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: Enable QWidget child while parent disabled

    You can't enable a child whose parent is disabled. What is the point of doing that?

  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Enable QWidget child while parent disabled

    Hi,

    I have a 3 steps program that is represented on 3 QGroupBoxes that the user can do some things on every setp.
    In the second step, one widget shows images, but in the third step I want to use the same wiget that is on the second group box to show images again. The problem is that the second group box is disabled to not let the user do somethings.

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Move child widget along with the parent widget
    By sreedhar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:00
  2. Referencing Parent Widget from Child
    By taylor34 in forum Qt Programming
    Replies: 8
    Last Post: 11th April 2006, 15:13

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.