Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Programmatically building up window with widgets...



  • I have an application that has the Windows and Widgets defined in XML files, originally I was reading in the XML completely, then another process would create the windows and widgets. This all worked and I could visually see everything that was in the XML.

    Now, Ive been revisiting this code and changing it so that it now creates the windows and widgets as its reading the XML file. The windows are created and appear the correct size and position, however none of the widgets are appearing.

    I've stepped through using debugger and the relationships all look as they should be but I don't see the widgets. Why could this be?


  • Lifetime Qt Champion

    Hi
    and you did call show() on the parent widget ?


  • Lifetime Qt Champion

    Hi
    and you did call show() on the parent widget ?



  • I must have done in the first version, having just added a call to show, much better, thank you!


Log in to reply