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
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10
Accepted Solution

Panes not working

Hello again, I have run into a problem. The app that I am making requires either a NavigationPane or a TabbedPane, but when I impliment any one of these panes into my project and I go to run it on my brothers phone it won't do anything. I just get a black screen with a faint BB10 logo. 

 

Please can someone help me with this thanks.

Please use plain text.
Developer
simon_hain
Posts: 16,216
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Panes not working

check the debug output, most likely a QML error
----------------------------------------------------------
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
Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Panes not working

We'd have to see the code it could be any number of things, however it could also be something external.

 

Are you building to an API level less than your brother's phone OS version?

 

I would recommend building one of the sample apps or even a blank Cascades project (Standard Empty Project) and seeing if that works.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Panes not working

I take it it works on your phone is your brother's a Q10 or Q5 or something different?


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10

Re: Panes not working

I got this when I ran my app:

 

14:01:59 **** Incremental Build of configuration Device-Debug for project PocketPod-10 ****
make -j4 Device-Debug 
make -C .//translations -f Makefile update
make[1]: Entering directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/translations'
C:/bbndk/host_10_2_0_15/win32/x86/usr/bin/lupdate PocketPod_10.pro
Updating 'PocketPod_10.ts'...
    Found 12 source text(s) (0 new and 12 already existing)
make[1]: Leaving directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/translations'
C:/bbndk/host_10_2_0_15/win32/x86/usr/bin/lrelease PocketPod_10.pro
Updating 'C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/translations/PocketPod_10.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 12 untranslated source text(s)
make[1]: Leaving directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/translations'
make -C ./arm -f Makefile debug
make[1]: Entering directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/arm'
make -f Makefile.Debug
make[2]: Entering directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/arm'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/arm'
make[1]: Leaving directory `C:/Users/robgp_000/Desktop/Workspace/PocketPod-10/arm'

14:02:00 Build Finished (took 1s.275ms)

 I can't really see an error in there.

Please use plain text.
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10

Re: Panes not working

Here is my code: 

import bb.cascades 1.0

TabbedPane{
    showTabsOnActionBar: true
    Tab{
            title: "Feeds"
            Page {
                Container {
                    layout: DockLayout {}

                background: Color.White
                Container {
                        id: root
                        
                        horizontalAlignment: HorizontalAlignment.Fill
                        verticalAlignment: VerticalAlignment.Fill
                        
                        // Container grouping application Button controls
                        Container {
                            id: menuContainer
                            
                            horizontalAlignment: HorizontalAlignment.Fill
                            verticalAlignment: VerticalAlignment.Top
                            
                            leftPadding: 10
                            topPadding: 10
                            rightPadding: 10
                            bottomPadding: 10
                            
                            layout: StackLayout {
                                orientation: LayoutOrientation.LeftToRight
                            }
                            
                            //! [0]
                            // A standard Button
                            Button {
                                id: feeds
                                layoutProperties: StackLayoutProperties {
                                    spaceQuota: 1
                                }
                                
                                text: qsTr ("Feeds")
                                
                                // Load the selected xbel file on click
                                onClicked: {
                                    save.opacity = 0.5;
                                    feeds.opacity = 1.0;
                                    _app.load ("feeds.xbel");
                                }
                            }
                            //! [0]
                            
                            // A standard Button
                            
                            
                            //! [1]
                            // A standard Button
                            Button {
                                id: save
                                layoutProperties: StackLayoutProperties {
                                    spaceQuota: 1
                                }
                                
                                text: qsTr ("Save")
                                
                                // Save the changes to a temporary xbel file in the
                                // application tmp/ directory
                                onClicked: {
                                    feeds.opacity = 0.5;
                                    save.opacity = 1.0;
                                    _app.save ();
                                }
                            }
                        }
                    
                    
                    }
                    Container {
                        horizontalAlignment: HorizontalAlignment.Fill
                        verticalAlignment: VerticalAlignment.Top
                        
                        leftPadding: 10
                        rightPadding: 10
                        bottomPadding: 10
                        
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        
                        background: Color.DarkGray
                        
                        // A standard Label for displaying the action status
                        Label {
                            verticalAlignment: VerticalAlignment.Center
                            
                            layoutProperties: StackLayoutProperties {
                                spaceQuota: 1
                            }
                            
                            text: qsTr ("Status: %1").arg(_app.status)
                            textStyle {
                                base: SystemDefaults.TextStyles.SmallText
                                color: Color.Black
                            }
                        }
                    }
                    
                    //! [2]
                    // Container for displaying the loaded XBEL output
                    ScrollView {
                        id: feedView
                        topMargin: 10
                        
                        scrollViewProperties {
                            scrollMode: ScrollMode.Vertical
                        }
                        
                        layoutProperties: StackLayoutProperties {
                            spaceQuota: 1
                        }
                        
                        scrollViewProperties.initialScalingMethod: ScalingMethod.AspectFit
                        Container {
                            objectName: "treeContainer"
                            
                            leftPadding: 10
                            rightPadding: 10
                            bottomPadding: 10
                        }
                    }
                    //! [2]
                }
            }
        }
        Tab{
            title: "Add Feeds"
        }
    }

 

Please use plain text.
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10

Re: Panes not working

My brother's phone is a Q5 and it also doesn't work on mine
Please use plain text.
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10

Re: Panes not working

i have run a new CascadesProject and it worked, it seems that just my NavigationPanes or TabbedPanes are not working at all.

Please use plain text.
Developer
robertopne123
Posts: 27
Registered: ‎06-23-2014
My Device: Blackberry Z10

Re: Panes not working

I have just run it for the second time and I got this error:

MsgNak received - resending
Remote target is little-endian
warning: Could not load shared library symbols for /proc/boot/libforensics.so.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: can't find linker symbol for virtual table for `App' value

 I got this when I debugged it.

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: Panes not working

Okay so it works for me, I obviously had to comment out the _app calls.
I wonder if this is something I mentioned in one of your previous threads and the calls you are making are blocking the thread.

Try commenting out the _app lines as I have and see if it comes up and then you'll know.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.