Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 73
Registered: ‎12-30-2011
My Device: All devices

Page Title

Hi every one,

 

I want to design a Page Title in QML with background image , how can i do it please help me its too urgent in my project.

Thanks

Mohd Farhan
Developer
Posts: 16,575
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Page Title

the title bar seems to be limited in what is allowed:
https://developer.blackberry.com/cascades/reference/bb__cascades__titlebar.html

you could just add a container at the very top and not use the title bar.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 887
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: Page Title

The following should work

 

Container
{
        background: back.imagePaint
        Label
        {
                text:"Page Title"
        }

        attachedObjects:
        [
		ImagePaintDefinition
		{
			id: back
	                repeatPattern: RepeatPattern.XY
	                imageSource: "asset:///images/background.png"
		}
        ]
}

 


Read my thoughts on BlackBerry Development at news.ebscer.com