accessing promoted widgets programmatically?
-
Working through another problem, I created a promoted widget in a dialog. I was expecting I could access this widget just like any other in my source code, but its name isn't recognized in the editor. Any idea what I did wrong?
And I try to access it like this:
Thanks...
-
Try to compile it. My guess this is a typical problem when you have just introduced in designer somthing. clang modeller requires some time respectively a compilation on my machine.
Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.
-
@koahnig said in accessing promoted widgets programmatically?:
Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.
isn‘t that just the symbol for a missing layout?
@mzimmers
that happens, compiling, hitting qmake, or at the very last a clean rebuild usually fixes thatjust like @koahnig said.
that said, make sure your capitals were set correctly, during the promting process,
usually a source of error -
@J.Hilk said in accessing promoted widgets programmatically?:
@koahnig said in accessing promoted widgets programmatically?:
Correction/addition: possibly there seems to be something wrong with the promotion, just see the symbol left of ipSourceGroupBox.
isn‘t that just the symbol for a missing layout?
Not sure, but I had at first the same impression.