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

Z-order Assignment: is not a valid widget.



  • Hello Everyone,

    I'm making modifications in a code I've made some changes in ComboBox.
    After building the code, I am getting some issues (Snapshot Given). I;ve copied the code from another folder which was successfully building.

    I'm using Qt creator 5.6.1. Below are the changes that have been done and the issues snapshots.

    Previous Code:

    cbcae4da-c8de-4ab8-a1f3-d96170412456-image.png

    Modified Code:
    e5313666-6e1b-43b7-a474-3e44c55521f8-image.png

    Issues:

    39de5113-7112-4363-86bf-b68bd2a2592e-image.png

    Kindly provide a concrete solution to eliminate these issues.

    Regards,
    Arun



  • @Keechu
    I don't see any relationship between the warnings you show and the content in the screenshots. They're not even referring to the same file.


  • Lifetime Qt Champion

    Hi
    It seems you manually edited the UI file and removed the
    <widget class = "QCombo" and left the file in
    an invalid state/format. broken.

    Please just use Design Mode to edit UI files.



  • Yes, I had manually edited the .ui file . This time I made changes in the Design mode but was still getting the same warning.

    Warning:
    **warning: Z-order assignment: 'buttonBox_serial_parameters' is not a valid widget.

    I'm using this button Box as one of the widgets so it is a valid widget.

    I'm adding values in the ComboBox, after changing I'm getting this warnings.

    Before changing it was compiling normally, but after the changes were made I was getting the warnings.

    Please provide a solution for the same.

    Regards,
    Arun


  • Lifetime Qt Champion

    @Keechu
    Hi
    Did that UI come from some old project or how did it start life ?

    I think its still a bit broken then. Maybe you did edit it before you tried in designer ?


Log in to reply