07-23-2012 03:24 AM
I am designing one simple page in bb10 using c++,there i want to set the width of the label to the exact width of that particular lable i.e., i want to set the width of that label dynamically.
07-23-2012 06:26 AM
First you must find Label from C++ code (use name defined under objectName):
Label *plabel = root->findChild<Label*>(
07-25-2012 03:31 PM - edited 07-25-2012 03:32 PM
Your thread topic and your description don't match.
For the question you asked, you set preferred width and height, or for the exact width, the min and max width, in QML or C++. All of the samples do some form of this.
For the thread topic, check out the recent: