Qt Creator, no entry icon on QGroupBox and QFrame ?
-
I am editing a UI in Qt Creator 2.8.1, Based on Qt 4.8.4 (GCC 4.6.3, 64 bit). The version of Qt and Qt Creator are beyond my control, I'm trying to resolve some issues in the form.
Unfortunately the development system is so locked down I am unable to get any screenshots and photographs are not permitted.
The first widget on the form is a QFrame, inside this there is a QGroupBox, no issues with the first. At the same level there is another QGroupBox, this one has a red no entry icon overlaid, the QFrame that is a child of this group box also has the same icon.
What does this mean, what is it not telling me?
-
@SPlatten
The "red no entry" sign is shown when a container widget does not have any layout on it. It's warning you that it really need a layout. You have to place a child widget onto it and then set the layout (on the parent) to make it go away. Not sure how that relates to your situation but there you are. -
@JonB , thank you, however this doesn't make sense, the order of the UI:
QFrame |- QGroupBox | |-QFrame | | QHBoxLayout |- QGroupBox (this has a red no entry icon) | |-QFrame (this also has a red no entry icon) | | QHBoxLayout
Only those two items indicated above have red icons. Also the QFrame geometry in the first group box has greyed out geometry, the second is not greyed, what does this indicate?
-
@SPlatten
I tested yours and get "red no entries" where indeed I have not set a layout. Geometries are greyed out where a widget does have a layout, you can only set it manually where one does not. I think you have first set of widgets with layouts assigned but second set with no layouts.Don't forget the layouts I am talking about are set via right-click on widget and the bottom item, Lay out >, not by adding Layouts from the toolbar at the left. Note also that once you have a layout assigned, if you right click on it and go into Lay out > you see item Break Layout whose icon has that red no entry sign, indicating that removing a layout causes that sign to appear.