Problem with crack & signals on Page 2

Hello

I would like to create application consisting of two pages.

I use qml to build the user interface and C++ to build application logic.

On the first page singal control I have recive in C++ code, but on the second Page (put on NavigationPane using push) reports not woking. Connect function returns true but singnal appears not in the C++ code.

SecondPage::SecondPage() {
}

SecondPage::~SecondPage() {
}

bb::cascades::AbstractPane* SecondPage::showPage()
{
    QmlDocument *qml = QmlDocument::create("mainList.qml");
    Page* pageRoot = qml->createRootNode();
    NavigationPane* navigationPane = TestSlotsApplication::getInstance()->getNavigationPane();

    navigationPane->push(pageRoot);

    if (pageRoot == NULL)
    {
        qDebug("pageRoot == NULL");
        return NULL;
    }
    else
    {
        navigationPane->setBackButtonsVisible(false);
        qDebug("pageRoot != NULL");
    }

    QObject* buttonTest = pageRoot->findChild("buttonTest");
    bool result2 = QObject::connect(buttonTest, SIGNAL(clicked()), this,
            SLOT(buttonOkClicked()));
    if (result2 == true) {
        qDebug("buttonTest connect ok");
    } else {
        qDebug("buttonTest connect error");
    }

    return pageRoot;
}

void SecondPage::buttonOkClicked()
{
    qDebug("buttonOkClicked"); // NEVER SHOWS buttonOkClicked
}

If someone would like to put code on dropbox: https://dl.dropbox.com/u/464625/Test.zip

Hello

Actually it's not the class SecondPage but in FirstPage class.

Simply replace the function of buttonOkClicked() with this code in the class FirstPage.

void FirstPage::buttonOkClicked()
{
     SecondPage *page = new SecondPage;
     page->showPage();
}

You must allocate memory by using the new keyword.

Tags: BlackBerry Developers

Similar Questions

  • Problem with the WIndows Update page

    I am running Windows XP with Service pack 3. Microsoft Security essentials is the security system. When trying to run Windows Update using Internet Explorer 8, at the point of the page is to check that if my system is the correct update software, the page fails, finally displaying the message "Internet Explorer has stopped to try to restore this Web site. It seems that the Web site continues to be a problem. "This is repeated each time I have repeat the initial attempt, or click 'Back to the microsoft.com site' on the error page. Is the problem with the Microsoft web page (the address is www.update.microsoft.com/microsoftupdate/v6/default.aspx ) or on my computer?

    When I try to run Windows Update... to the point that the page is to check If my system is correct, update software the page can't...  Is the problem with the web page of Microsoft ( www.update.microsoft.com/microsoftupdate/v6/default.aspx ) or on my computer?

    You are correct George: whenever you access the site Windows or Microsoft Update, Windows Update will take care of updating itself. that is, it looks for updates available from the Windows Update Agent or the customer allows you to update your system.

    Since June 21, 2012 a WUA new version 7. 6. 7600. 256 aired by WU to automatically update itself its version now aged 7. 4. 7600. 226 .

    The problem you see may occur when there is a version mismatch of the file with the Windows Update Agent files, which is a mixture of old files with the new files. This is due to an installation "or damaged."

    You can take a look at your windowsupdate.log file located in your WINDOWS directory, to check the error codes - missing files or failling updated files (especially c:\windows\system32\wuapi.dll, wups2.dll, c:\windows\system32\wups.dll or wuweb.dll).

    You must re-register or re - install files WU in order to obtain the Service Windows Update works again. Try here:

    http://support.Microsoft.com/kb/958053

    And

    http://support.Microsoft.com/kb/949104

    Trust that this assistance.

  • Major problems with multiple items of page on the web viewer since the last update

    In the last days, we had problems with all our multiple page items that are newly updated or added on the web viewer.

    Scrolling of pages just to repeat content again and again and true articles page see first pages content overlaid on all subsequent pages. It seems that something important broke in the way that the dps push articles to the webviewer, as is happening through fact sheets and articles. This means that we cannot publish anything until it's resolved.

    Someone knows something similar? Any suggestions?

    Hi Lucie,.

    Please contact support for assistance with this enterprise. They can investigate and open a support issue with if necessary engineering team. Contact information is available by logging into http://digitalpublishing.acrobat.com/ and looking at the Middle bottom of the screen.

    Neil

  • Problems with the applications dashboard pages

    I have a problem with how I see pages under dash, I think I need to apply a patch to get a solution, could give you some advice how to improve what it's like?

    All the texts are on the right side of the fields, it's weard but I don't know how to fix this.  I'll give you a link with a snapshoot.

    See the image: dashboard

    Thank you

    I got solutions Note: 1556590.1

    Thank you

  • Problem with flash based Web pages and re - install windows

    Hello!
    I bought the Toshiba NB100 and use the netbook for a few weeks. At first, it worked all fine and exceeded my expectation.
    However, since one some time he experiences trouble with performance based on flash Web pages such as youtube and etc, which makes it not not possible to stream any video smoothly. Basically, it's a fast-paced photo slideshow :(
    The problem here is certainly not the performance mode, which is set at the maximum.
    I tried to get through this problem with re - install the operating system, which is windows XP, but after transfer of the content produced the DVD on a flash drive recovery, the system does not have a configuration menu. It gives me an error report instead.
    * I put the following qustions you: *.
    * 1. What can be the reason for slow running applications? *
    * 2. I'm doing something wrong when you reinstall windows? * Ts here a simple manual for the resettlement of the op?
    Comments, suggestions and advice will be much appreciated and I thank you in advance.

    So you have installed a generic version of Windows XP?

    You may have forgotten to install the drivers graphics and other critical drivers such as the Intel Chipset driver.

    You see problems in Device Manager?

  • Problem with bookmarks to incorrect page

    Hi all

    I have problems with bookmarks - I think that, because of the way I put the statutes in the folio.

    Current Article configuration:

    Starting with a bunch of single page PDF, I used the following InDesign to PDF script to create a folio:

    http://www.Adobe.com/devnet/digitalpublishingsuite/articles/DPS-PDF-to-InDesign.html

    -Folio

    -Article record

    -example_h.indd <-displays a double page spread (2 side by side - view of landscape PDF files)

    -example_v.indd <-display two single page PDF (see portrait)

    -Article record

    -example_h.indd

    -example_v.indd

    .. and so on...

    Problem:

    Because the example_v.indd file contains two pages - if when using the iPad, score you one of these pages, it will always return you to the first page of this file.

    Has anyone discovered a way to specify that the second page is the only one to display to the user - if it was the page they bookmarked?

    Another Solution:

    I imagine that a workaround may be to store every single page in its own section, each with a copy of his page double respective that spread as well.

    Any comments/suggestions appreciated.

    Best regards

    Tim

    Favorites at the article level. So, if your article has 2, 5, 11 pages, the user would be redirected to the first page of the article any page they favorite.

    This is what is described in the release notes, and I checked that the behavior:

    http://help.Adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60-21ba9a4512e5e5e0b8d-8 000. HTML

  • have a real problem with linking buttons to pages

    Hello

    Right, I'm pretty new to Flash CS5 and doing a simple website in Action Script 3.0.

    I have set out four pages I want, and that you have created a button for each page on each page.

    I was told that a script simple stop stop pages acting as a movie.

    I entered:

    14:00


    Stop();

    function button1_clicked(e:MouseEvent): void {}
    gotoAndStop ("home");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");

    }
    function button3_clicked(e:MouseEvent): void {}
    gotoAndStop ("galleries");
    }

    function button2_clicked(e:MouseEvent): void {}
    gotoAndStop ("about");
    }

    Button1.addEventListener (MouseEvent.CLICK, button1_clicked);
    Button2.addEventListener (MouseEvent.CLICK, button2_clicked);
    Button3.addEventListener (MouseEvent.CLICK, button3_clicked);
    Button4.addEventListener (MouseEvent.CLICK, button4_clicked);

    He said cela and buttons to link to relevant pages.

    When I test the movie buttons start flickering and pictures...

    Please help it is frustrating!

    Thank you

    Chances are you have a problem with the code in your file.  Do you get any error messages?  You should because of the double function in code that show you.  You can't have two functions named button2_clicked.  The last should be button4_clicked and should probably go elsewhere...

  • Problem with swf on 1 page of my Web site?

    I created a simple flash swf that I added to all the pages of my site. For some reason any when I insert a particular page a blank screen appears. When I delete the swf file, you'll see the page! This doesn't happen on other pages and am wondering if anyone could offer any suggestions?


    Thank you

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > our < /title > clerks

    < link rel = "shortcut icon" href = "' / favicon.ico" type = "image/x-icon" / > "

    < style type = "text/css" >

    <!--

    {#apDiv1}

    position: absolute;

    width: 264px;

    height: 115px;

    z-index: 1;

    }

    {#apDiv2}

    position: absolute;

    width: 159px;

    height: 66px;

    z-index: 1;

    left: 48px;

    top: 8px;

    }

    {#apDiv3}

    position: absolute;

    width: 794px;

    height: 115px;

    z-index: 2;

    left: 34px;

    top: 85px;

    }

    {#apDiv4}

    position: absolute;

    width: 311px;

    height: 37px;

    z-index: 3;

    left: 664px;

    top: 29px;

    }

    {.new_bold}

    are-family: Arial, Helvetica, without serif.

    are-size: 10px;

    make-style: normal;

    make-weight: bold;

    are-variant: normal;

    color: #666;

    }

    ->

    < / style >

    < link href = "longcross_css.css" rel = "stylesheet" type = "text/css" / > "

    < style type = "text/css" >

    <!--

    {#apDiv5}

    position: absolute;

    width: 961px;

    height: 30px;

    z-index: 4.

    left: 34px;

    top: 85px;

    }

    {#apDiv6}

    position: absolute;

    width: 350px;

    height: 30px;

    z-index: 5;

    left: 622px;

    top: 90px;

    }

    {#apDiv7}

    position: absolute;

    width: 300px;

    height: 270px;

    z-index: 6.

    left: 34px;

    top: 285px;

    background-image: url(images/block_quote.png);

    }

    {#apDiv8}

    position: absolute;

    width: 200px;

    height: 177px;

    z-index: 7.

    left: 83px;

    top: 332px;

    background-color: #FFFFFF;

    }

    {#apDiv9}

    position: absolute;

    width: 160px;

    height: 294px.

    z-index: 8.

    left: 834px;

    top: 285px;

    background-image: url(images/new_quote.png);

    }

    {#apDiv10}

    position: absolute;

    width: 569px;

    height: 165px;

    z-index: 9;

    left: 381px;

    top: 119px;

    overflow: visible;

    }

    {#apDiv11}

    position: absolute;

    width: 442px;

    height: 541px;

    z-index: 9;

    left: 364px;

    top: 292px;

    }

    #apDiv { position: absolute;}

    width: 961px;

    height: 30px;

    z-index: 4.

    left: 34px;

    top: 85px;

    }

    #apDiv12 { position: absolute;}

    width: 961px;

    height: 30px;

    z-index: 4.

    left: 34px;

    top: 85px;

    }

    {#apDiv13}

    position: absolute;

    width: 200px;

    height: 36px;

    z-index: 10;

    left: 34px;

    top: 837px;

    }

    {#apDiv14}

    position: absolute;

    width: 960px;

    height: 25px;

    z-index: 11;

    left: 34px;

    top: 866px;

    }

    a: link {}

    color: #666;

    text-decoration: none;

    }

    a: visited {}

    text-decoration: none;

    }

    a: hover {}

    text-decoration: underline;

    color: #333;

    }

    a: active {}

    text-decoration: none;

    }

    {#apDiv15}

    position: absolute;

    width: 246px;

    height: 68px;

    z-index: 12;

    left: 747px;

    top: 1591px;

    }

    {#apDiv16}

    position: absolute;

    width: 85px;

    height: 49px;

    z-index: 12;

    left: 34px;

    top: 900px;

    }

    {#apDiv17}

    position: absolute;

    width: 140px;

    height: 36px;

    z-index: 13;

    left: 855px;

    top: 901px;

    }

    #apDiv11 .body_text .button_title .button_title {}

    color: #48B 849;

    }

    #apDiv11 .body_text .button_title a {}

    color: #48B 849;

    }

    #apDiv11 .body_text .button_title {}

    color: #000;

    }

    #apDiv20 {position: absolute;}

    width: 660px;

    height: 170px;

    z-index: 14;

    left: 334px;

    top: 115px;

    }

    {#apDiv19}

    position: absolute;

    width: 569px;

    height: 180px;

    left: 381px;

    top: 119px;

    }

    #apDiv18 { position: absolute;}

    width: 569px;

    height: 180px;

    z-index: 0;

    left: 381px;

    top: 119px;

    }

    #apDiv21 { position: absolute;}

    width: 569px;

    height: 165px;

    z-index: 15;

    left: 381px;

    top: 119px;

    }

    #apDiv22 { position: absolute;}

    width: 569px;

    height: 165px;

    z-index: 15;

    left: 381px;

    top: 119px;

    }

    {#apDiv23}

    position: absolute;

    width: 569px;

    height: 165px;

    z-index: 15;

    left: 119px;

    top: 381px;

    }

    {#apDiv24}

    position: absolute;

    width: 200px;

    height: 115px;

    z-index: 1;

    left: 39px;

    top: 37px;

    }

    {#apDiv25}

    position: absolute;

    width: 200px;

    height: 115px;

    z-index: 15;

    left: 381px;

    top: 124px;

    }

    {#apDiv26}

    position: absolute;

    width: 200px;

    height: 115px;

    z-index: 15;

    left: 381;

    }

    {#apDiv27}

    position: absolute;

    width: 569px;

    height: 165px;

    z-index: 15;

    left: 381px;

    top: 119px;

    }

    < / style >

    < script src = "Scripts/swfobject_modified.js" type = "text/javascript" > < / script > "

    < / head >

    < body >

    < a name = 'top' = 'top' id > < / a >

    "< div id ="Divap2"> < img src =" images/logo_150_66.png"alt =" "width = '159' height = '66' border = '0' well ="#Map4"/ >

    < name of map = "Map4" id = "Map42" >

    < area shape = "rect" coords = "4,3,156,64" href = "index.html" / > "

    < / map >

    < / div >

    < div id = "apDiv3" > < img src = "images/home_banner_clerks.png" width = "960" height = "200" / > < / div > "

    < div id = "apDiv4" >

    < table width = "332" border = "0" >

    < b >

    "< td width ="26"> < img src =" images/telephone.png"alt =" "width ="25"height ="16"/ > < table >

    < td width = "109" class = "title 1" > 01932 562321 < table >

    "< td width ="30"> < img src =" images/email.png"alt =" "width ="25"height ="18"border = '0' well ="#Map3"/ > < table >

    < td width = "149" class = "title 1" > < a href = "mailto: " [email protected] "target ="_blank"> [email protected] < /a > < table > "

    < /tr >

    < /table >

    < / div >

    < name of map = "Map3" id = "Map32" >

    < area shape = "rect" coords = "4,2,22,16" href = "mailto: " [email protected] "target ="_blank"/ > "

    < / map >

    < name of map = "Map3' id ="Map3">

    < area shape = "rect" coords = "4,2,22,16" href = "mailto: " [email protected] "target ="_blank"/ > "

    < / map >

    < div id = "apDiv5" > < img src = "images/home_banner_fade.png" width = "960" height = "30" / > < / div > "

    < div class = 'main' id = 'apDiv6' >

    < table width = "356" border = "0" >

    < class tr = "title 1" >

    < width th = "63" class = "nav" scope = "col" > < a href = "index.html" class is "menu_bar' style is" text-decoration: none; class =; color: #FFF; "menu_bar_reverse ="menu_bar_reverse"" > home < /a > < /th > "

    < width = "88" th class = "menu_bar" scope = "col" > < a href = "services.html' class is"menu_bar' style is"text-decoration: none; class =; color: #FFF; "menu_bar ="menu_bar"" > Services < /a > < /th > "

    < width = '99' th class = "menu_bar" scope = "col" > < a href = "clerks.html" class is "menu_bar' style is" text-decoration: none; class =; color: #FFF; "menu_bar ="menu_bar"" > our clerks < /a > < /th > "

    < th class = "72" width = "menu_bar" scope = "col" > < a href = "contact.html" class is "menu_bar' style is" text-decoration: none; class =; color: #FFF; "menu_bar ="menu_bar"" > Contact < /a > < /th > "

    < /tr >

    < /table >

    < / div >

    < div class = "news" id = "apDiv9" >

    < table width = "145" border = "0" align = "center" >

    < b >

    < width th = "139" height = "30" align = "left" class = "news_heading" scope = "col" > News < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "top" class = "new" scope = "col" > < p > < a href = "whats-in-a - inventory.html" > why have a professional inventory. < /a > < /p > < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "top" class = "new" scope = "col" > < a href = "dispute.html" > Dispute resolution in any simplicity. "" < /a > < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "middle" class = "new" scope = "col" > < a href = "fair - wear.html" > Fair wear - a quick overview. < /a > < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "middle" class = "new" scope = "col" > < a href = "introduction - to-epcs.html" > Energy Performance certificates explained. < /a > < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "middle" class = "new" scope = "col" > < a href = ' pat - testing.html "> why owners need PAT (Portable appliance stable). < /a > < /th >

    < /tr >

    < b >

    < e height = "35" align = "left" valign = "middle" class = "new_bold" scope = "col" > < a href = "news.html" > see all news & gt; < /a > < /th >

    < /tr >

    < /table >

    < / div >

    < div class = "body" id = "apDiv11" >

    < class p = "sub_text_heading" > Longcross uses only professional committed to the inventory < /p >

    < p align = "justify" class = "body_text" > Longcross when send a clerk with the inventory in your work, we guarantee that the Clerk: < /p >

    < ul >

    < class li 'body_text' = > is fully insured for professional liability and civil liability coverage < br / >

    < /li >

    < class li 'body_text' = > is a member of the CNA < br / >

    < /li >

    < class li 'body_text' = > underwent extensive training < /li >

    < /ul >

    < class p = "sub_text_heading" > Longcross uses only qualified energy assessors < /p >

    < p align = "justify" class = "body_text" > Longcross when to send an energy assessor to perform your job, we guarantee that the evaluator: < /p >

    < ul >

    < class li 'body_text' = > is fully insured for professional liability and civil liability coverage < br / >

    < /li >

    < class li 'body_text' = > is certified (domestic energy assessor) DEA or Commercial energy assessor of buildings < br / >

    < /li >

    < class li 'body_text' = > underwent extensive training < /li >

    < /ul >

    < class p = "sub_text_heading" > Longcross quality service every time < /p >

    < p align = "justify" class = "body_text" > stressing a coherent approach to the use of standardized templates and a quick turnaround time, we keep our uniformly high quality of service. As long as a clerk Chase performs the work, you are sure of the quality of services < /p >

    < p align = "justify" class = "body_text" > This also means that we can cover your work in the short term, as well as ensure continuity during peak periods when your usual Chase clerk is not available. < /p >

    < class p 'body_text' = > call us now on 01932 562321 to find out how we can help you. < /p >

    < p align = "justify" class = "sub_text_heading" > < a href = "clerks.html #top' class = 'opportunity' > top & gt;" < /a > < /p >

    < / div >

    < div id = "apDiv13" > < img src = "images/home_banner_fade_footer.png" width = "960" height = "15" / > < / div > "

    < div id = "apDiv14" >

    < table width = "960" border = "0" >

    < b >

    < width = "325" th class = "new" scope = "col" > < div align = "left" > < a href = "mailto:mailto: " [email protected] "> designed by psion © < /a > < / div > < /th > .

    < width = '442' th class = "new" scope = "col" > property inventories and assessments of energy throughout South-East < /th >

    < width th = "179" class = "new" scope = "col" > < div align = "right" > Longcross inventories & #8482; < / div > < /th >

    < /tr >

    < /table >

    < / div >

    < div id = "apDiv16" > < img src = "images/aiic.png" width = '80' height = '43' border = '0' well = "#Map" / > "

    < name of the map 'Map' id = 'Card' = >

    " < area shape ="rect"coords ="3,3,78,41"href =" http://www.theaiic.co.uk/index.php "target ="_blank"/ > "

    < / map >

    < / div >

    < div id = "apDiv17" > < img src = "images/idea.png" width = "138" height = "32" border = '0' well = "#Map2" / > "

    < map "Map2" id = name = "Map2" >

    " < area shape ="rect"coords ="3,3,137,32"href =" http://www.whatstheidea.org.UK/ "target ="_blank"/ > "

    < / map >

    < / div >

    < div id = "apDiv19" >

    < h1 align = "justify" class = "welcome_menu_text" > < / h1 >

    < / div >

    < div id = "apDiv20" > < img src = "images/welcome_banner_fade.png" width = "660" height = "170" / > < / div > "

    < div id = "apDiv27" >

    < class p = "welcome_menu_text" > < span class = "welcome_menu_title" > our inventory clerks and energy assessors </span > < / p >

    < p align = "justify" class = "welcome_menu_text" > preparation of the inventory and assessment of energy are job tasks. At Longcross, we only use qualified consultants and from assessors of property management. All of our work of the inventory follows the CNA and PMRA guidelines and our energy assessors are certified in accordance with the recent legislation. < /p >

    < p align = "justify" > < / p >

    < / div >

    < div id = "apDiv8" >

    < object id = 'FlashID' classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width = "200" height = "177" > "

    < param name = "movie" value = "flash/longcross_flash.swf" / > "

    < param name = "quality" value = "high" / >

    < param name = "wmode" value = "opaque" / >

    < param name = "swfversion' value ="6.0.65.0"/ >

    <!-this param tag prompts users with Flash Player 6.0 r65 or later to download the latest version of Flash Player. Delete it if you do not want users to display the prompt. ->

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "

    <!-next object tag is for non - IE browsers. Then he hide from IE using IECC. ->

    <!-[if! IE] >->

    < object type = "application/x-shockwave-flash" data = "flash/longcross_flash.swf" width = "200" height = "177" > "

    <!-<! [endif]-->

    < param name = "quality" value = "high" / >

    < param name = "wmode" value = "opaque" / >

    < param name = "swfversion' value ="6.0.65.0"/ >

    < param name = "expressinstall" value = "Scripts/expressInstall.swf" / > "

    <!-the browser displays the following alternative content for users of Flash Player 6.0 and higher. ->

    < div >

    < h4 > the content of this page requires a newer version of Adobe Flash Player. < / h4 >

    " < p > < a href =" http://www.Adobe.com/go/getflashplayer_fr "> < img src = ' http://www.Adobe.com/images/shared/download_buttons/get_flash_player.gif "alt = 'Get Adobe Flash player' width = '112' height ="33"/ > < /a > < /p > "

    < / div >

    <!-[if! IE] >->

    < / object >

    <!-<! [endif]-->

    < / object >

    < / div >

    < script type = "text/javascript" >

    <!--

    swfobject.registerObject ("FlashID");

    ->

    < /script >

    < / body >

    < / html >

    In Internet Explorer, it shows as a blank page (white), in Firefox, it's all there.  I suspect a problem with CSS.

  • Problems with GPS signal/slot

    Hello

    I try to get GPS information for my application. I did a class to do so.

    #ifndef GPSHANDLER_H_
    #define GPSHANDLER_H_
    
    #include 
    
    #include 
    
    #include 
    #include 
    #include 
    
    using namespace QtMobilitySubset;
    
    class GPShandler : public QObject{
        Q_OBJECT
    public:
        GPShandler(QObject* parent);
        virtual ~GPShandler();
    private Q_SLOTS:
        void positionUpdatedSlot(const QGeoPositionInfo &geoInfo);
    
    public:
        void start();
    
        void stop();
    
        double Latitude();
    
        double Longitude();
    
    private:
        double mGeoInfoLat;
        double mGeoInfoLong;
        QGeoPositionInfoSource *mGeo;
    };
    #endif /* GPSHANDLER_H_ */
    
    #include "GPShandler.h"
    
    GPShandler::GPShandler(QObject* parent)
    : QObject(parent) {
        mGeoInfoLat = 0;
        mGeoInfoLong = 0;
        mGeo = QGeoPositionInfoSource::createDefaultSource(this);
        if (mGeo) {
            bool checkval = connect(mGeo, SIGNAL(positionUpdated(const QGeoPositionInfo &)), this,
                    SLOT(positionUpdatedSlot(const QGeoPositionInfo &)));
    
            mGeo->setPreferredPositioningMethods(QGeoPositionInfoSource::SatellitePositioningMethods);
            mGeo->setUpdateInterval(1000);
    
            //checkval = mGeo->setProperty("backgroundMode", true);
            //int i = 3;
        }
    }
    
    GPShandler::~GPShandler() {
        // TODO Auto-generated destructor stub
    }
    
    void GPShandler::positionUpdatedSlot(const QGeoPositionInfo &geoInfo) {
        // Here's where you can do something with the device's position
        mGeoInfoLat = geoInfo.coordinate().latitude();
        mGeoInfoLong = geoInfo.coordinate().longitude();
    }
    
    void GPShandler::start()
    {
        mGeo->startUpdates();
    }
    
    void GPShandler::stop()
    {
        mGeo->stopUpdates();
    }
    
    double GPShandler::Latitude()
    {
        return mGeoInfoLat;
    }
    
    double GPShandler::Longitude()
    {
        return mGeoInfoLong;
    }
    

    As you can see I have connected the signal postionUpdate() of QGeo class that I use for the positionUpdatedSlot() of the slot. I use the class as follows:

    Pop = new GPShandler (this);

    void::startTimer() {} App

    Pop-> start();

    }
    void::stopTimer() {} App

    Pop-> stop();

    }

    which are called when a key is pressed. However, the positionUpdatedSlot() of slot function is never called. I have debugged in my code and cannot find the problem. I can confirm the work of connection (function returns true), and that presented startup and shutdown functions are called as expected. Is there a reason why my slot machine function is not called?

    Note: I have another implementation of signal/slot in this app:

    Connect (mTimer, SIGNAL (timeout ()), this, SLOT (update ()));

    and it works very well.

    Thank you

    Gerry

    I do not know which of the following has solved my problem, but in any case, it's working now after doing these things:

    1. give permission to app to device identification information. (I had already given GPS, but examples also being device identifying information I thought I'd try that)

    2. remove the line:

           mGeo>setPreferredPositioningMethods(QGeoPositionInfoSource::SatellitePositioningMethods);
    

    as an example, I created using this example: http://blackberry.github.com/Cascades-Samples/geo-locationdiagnostics.html did not have this line

  • problem with javascript in the page jspx

    Hello

    using the last jdev from RTO 11 g.

    I'll have more javascript which works fine if I try out jdev using a html file but fails when I run the page with the error:
    OracleJSP error: oracle.jsp.parse.JspParseException:
    Error: oracle.xml.parser.v2.XMLParseException (/ adflib/myapp/setup/ui/page/CloseBrowser.jspx):
    [Line no.: column 37 #: 28: name expected instead of].


    JavaScript:

    < af:resource type = "javascript" >
    function getCompId (name) {}
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); "
    regexS var = ' [------? &] ' + name + ' = ([^ & #] *)';
    var regex = new RegExp (regexS);
    results var = regex.exec (window.location.href);
    If (results == null) return "";
    otherwise return results [1];
    }
    < / af:resource >

    Hello

    JSPX is a strict xml page... the problem is that your function has a few characters that are interpreted as part of the xml...
    As far as I know using & in xml are not valid... you use & amp; instead...
    so, you should try including your script inside cdata like this

    
    
  • Problem with branch to the Page identified by the element when I delete

    I have a form on page 107.
    When I delete an item with the form I automatically go to page 101.
    But I have a branch (branch of Page identified by element). Normally, after the deletion of the article, it should go to page 104 (the number of a page, it came out a field on my form on page 107).

    Obviously that is possible with a branch to the page?

    It's a little difficult to understand, your post, what is exactly the problem, but here is a proposal: when you create a form page, ApEx creates by default a "reset page" process to clear the cache for all elements on the page when you remove and in this case, it also erases the page identifier at the junction.

  • Problem with the Plugin follow Page Linkedin

    I'm quite new in this biz... Sorry if I my stupid question or...

    Moreover, I got the script by the developer of Linkedin Page, but I can't find the way to get the plugin working on my website (HTML5)... (I don't see even the plugin appering on the screen).

    Developer page, I have another script get two lines, how to manage doI?

    Thanks for the help

    Matteo

    What is the URL of your page online?

    With widgets by script, it is often necessary to put them online.  On-site testing may not show anything.

    Nancy O.

  • Problem with double direction scrolling pages

    I am trying to load two pieces of identification as an article for a DPS Folio.

    A single document 'xx_h.indd' which is 1024W x 1060 H, the other 'xx_v.indd' which is 768W x 1200 H.

    When I try to download the two orientation by Folio Builder > add article, then select 'Import the multiple items' and the folder that contains the two files, I get a warning:

    Error generating content.

    Cannot find the files to be imported as an article.

    If I import items open the _it is imported as an article of portrait.

    I managed with that for the other items of the folio where article landscape has less than 1024 px height.

    I thought about it, I have a Smooth Scrolling put vertically, not both Directions. I thought that the page will scroll vertically, a poor understanding of the menu setting. Thanks anyway.

  • Problem with dynamic change a page element value

    Hello

    I just calculated dynamically the value of an article based on a simple formula which involves the multiplication of two elements of the same page.

    To do this, create a dynamic action as follows:

    Event: Change
    Selection type: Article (s)
    Product (s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Type of value: SQL statement
    SQL statement: SELECT: P19_DURATION *: DOUBLE P19_RATE
    Items to submit page: P19_DURATION
    Selection type: Article (s)
    Product (s): P19_AMOUNT

    When changing the P19_DURATION GET no change in P19_AMOUNT

    As my knowledge of javascript is almost zero, I'm doing it with pl / sql or sql. Try dynamic action with a function or a PL / SQL statement and nothing works.

    Must use javascript for this?

    Searching the forum I think that it is something simple, but I can't find a similar example to what I need.

    Concerning

    Event: change
    Selection type: item (s)
    Product (s): P19_DURATION
    Action: Set
    Fire on the page loading: TRUE
    Set Type: javascript
    JavaScript Code:

    amount = $v('P19_DURATION') *  $v('P19_RATE');
    $s('P19_AMOUNT',amount);
    
  • Problem with the insertion of Pages

    I have a large PDF (1800 pages) which is a mixture of created acrobat pdf and pdf provided by other companies who can use othe products.

    Everything was ok until Friday when I try to insert 10 pages in the location of the page 1265, when I ask him to insert the document he put the 10 pages futher in the document, which, once I attempt to move this translates their move further down the document.

    No matter what risks what this might be or how fix it

    Thank you

    Mark,

    It sounds as if there is a corruption in the document. If you cannot recreate the document, you can try to refry the document by printing to PDF. Which will result in a lower quality paper, but it doesn't have the error that you have a problem.

Maybe you are looking for