QMap in QSettings record and back to the rear

Hi again. I'm a bit of a desperate situation. I have a card flightList which is

QMap< QString, QMap > flightListMap;

Now, I need to store this card, then pull it out back when the application opens. I learned that QSettings serves for this purpose. What I've done below:

void ApplicationUI::saveSettings(QMap< QString, QMap > flightListMap) {      QSettings settings("myComp", "myApp");
      settings.setValue("flightList", flightListMap);}

But apparently, since I ask your help, it did not work (: error I got is:)

../src/applicationui.cpp:113:63: error: no matching function for call to 'QSettings::setValue(const char [19], QMap >&)'

I pray for your help.
Thank you!

Well, I have work! I am writing down, so he could help other people as well because I was about to crash my laptop...
Things I should have done were;

(1) write this on file .cpp Albums

typedef QMap< QString, QMap > templatemap;
Q_DECLARE_METATYPE(templatemap);

(2) registration during execution so

    qRegisterMetaType > >("templatemap");
    qRegisterMetaTypeStreamOperators > >("templatemap");

(3) Finally, successfully recover ():

QVariant qv = settings.value("flightList");
    QMap< QString, QMap > myMap = qv.value< QMap< QString, QMap > >();

Thanks for the information written in this link > http://developer.nokia.com/community/wiki/Saving_custom_structures_and_classes_to_QSettings

Hope that I might be able to help Canadians save time and who are stuck like me (:)

Tags: BlackBerry Developers

Similar Questions

  • I have problems keeping records and files of the administrator and the user separate in my laptop (HP Pavilion dv6700) under Windows Vista Home Premium.

    I have problems separating records and files of the administrator and the user. My computer is a laptop (HP Pavilion dv6700), used as a home computer only by myself, I like to keep the two distinct roles, but am unable to as Vista seems to be considered as one and the same. This scenario has arisen as follows:

    Initially, when I bought the laptop - approx. 18 months back - Windows Vista Home Premium was preinstalled, with the name 'Administrator' as an administrator. To customize the operating system and to use safely, I installed a user 'Renault', as a Standard account user.

    After awhile, I changed the name of the Director of "Renault", for reasons I have can not remember now. This caused Vista to combine folders and files of the two "users" in one, I found difficult to deal with, that I could not operate my laptop as just a Standard user, but is still considered the "administrator." On the one hand, this greatly increased spam in my email accounts. So I tried to reset the name of the administrator as 'Administrator' itself and keep my user name as "Renault", as originally the case.  But Vista me has failed to create a new user under the name "Administrator". So I created a new user under the name "System administrator", with administrative privileges. This has been accepted by Vista.

    But I forgot to change the user account for 'Renault', on the Standard account, so there was BOTH administrator accounts at the same time on my laptop! I realized that now only. The net result was that all the files that I created under the system administrator user were still being displayed under the user account of Renault. A few days back, I realized this and tried to separate the files correctly, but it has not been possible. No matter what I copied the account of the user in the files under the system administrator account, the files have been copied on account of the user himself.

    I tried to fix this by changing the name of the user account in something very different, AND as a Standard user. but this also does not work, as all folders and files under the administrator account system shows it as being under the user account of "Renault" only!

    Then, I deleted the user 'Renault' from the list of the user, but he was not yet of any help. Whenever I tried to create a new file under the system administrator, Vista responds with the message, "C:\user\Rajaram folder is not present. Will I create a new? ", which defeat the same purpose of my tent to isolate the administrator account and the user account.

    SOMEONE HELP ME PLEASE WITH A SOLUTION, - OTHER THAN REFORMATTING MY C:\ DISK AND REINSTALL VISTA AGAIN - TO GET OUT OF THIS MESS, IT SEEMS TO ME YOU HAVE CREATED AND HELP ME TO HAVE AN ADMINISTRATOR ACCOUNT AND OTHER UNIQUE STANDARD USER ACCOUNTS PROPERLY ISOLATED.

    I would be always grateful for a quick and helpful response.
    Thanks in advance.

    -RAJARAM77
     
    Thanks for your reply. It was very helpful / sorry your proposed solution has not solved my problem. Kind regards. -Rajaram77

    Better to delete the user account except the one that was built in the administrator account that you renamed. Before this backup all your data files of these user accounts.
    Then rename the buil into account administrator as 'administrator '. Then you create another administrator account and use it and never the user built in Administrator account and leave it alone.

  • by aligning the front and back of the cards to collect

    I designed a model of 2.5x3.5 9 cards to Exchange, but when I take it the printer front and back are not aligned. Can someone help me to align the front and back. When I print on my printer, they seem well but when I take them to printing, the alignment is off. Need help!

    It's weird.

    What is the difference?

    Viewing at 100% in Photoshop?

    You provide the printer with a PDF file?  (I had some strange things happen with PDF on more than one occasion.)

    Did you use guides to align layers/objects?

    You flatten the output file?

  • Detailed form Master in Apex - creating main records and details at the same time

    I m trying to create a master form / retail.
    The master is a simple standard form and below on the same page there is a tabular presentation containing the details.

    I am facing a problem when you try to save a new record from the master at the same time with new details.
    If I create a new record of the master and at the same time create detail records for this master (on the same page), when I submit that the foreign key of the details field is not filled in. So only one master record gets inserted into the table and record line is not inserted.

    When I have everything first create a master without a detail and edit this master and then add details so everything's allright (since the primary key field is filled out at the time).

    I just need to confirm that whether in the APEX form master detail, can save master and line record at the same time or is it as master must be registered the 1 and then line must be enterd and saved?

    Please let me know, if this functionality can be achieved in the APEX.

    Hello

    There was an error in the process of pl/sql, you referenced f01 (F01. COUNT) in the loop condition and which should have been f03, also you have assigned the wrong field to what should have been P3_DEPARTMENT_ID

    I fixed that. Also, I'm not 100% sure but I think in order to use the table in the column must be of type text or something (and not hidden), but I can't check now because of lack of time.

    A few mistakes during the presentation, but they are still due to constraints on the other fields.

    FOR I IN 1.APEX_APPLICATION. G_F03. COUNTY

    LOOP

    APEX_APPLICATION. G_F03 (I): =: P3_DEPARTMENT_ID;

    END LOOP;

    Concerning

    Bottom

  • How can I change my printer hp deskjet all-in-one of printing in the a6 format and back to the marker a4 2542

    Hi my hp deskjet printer seems to always print when I print anything on the web for my son even if it should print in A4 format a6 (a4, this is what is stated in the paper size) then how can I change it so it will display again a4 and a6 not when I print anything on the web

    Thanks stan

    Hello again!

    I understand that you have a problem where you set the printer to a specific setting and it is switching to a wrong default setting.

    Did you ensure that when you leave the game advanced settings of the software that you are by clicking on 'apply', then 'Save'.

    Can't wait to hear back on your part.

  • By comparing the two records and return only the differences

    Hi all!

    Assume the records as follows:
    USERID     USERNAME   STREET   CITY   PHONE        
    ---------- ---------- -------- ------ -------------
             1 John Smith Street 1 City 1              
             1 John Smith Street 1 City 1 (31) 234-1234
    UserID is PK on this table. Imagine that this application represents two versions of the same record on a table. This recording was 'day' and the phone field changed from null to "(31) 234-1234'.»

    What I´d like to do is to retrieve only (or fields) that changed between these 2 versions of the same record. The idea is to call this query (or process PLSQL) a trigger and save these data on a table. The data returned by the query (or process), on the example above, should be something like:
           USERID     USERNAME STREET CITY PHONE        
    ---------- -------- ------ ---- -------------
             1                      (31) 234-1234
    1 row selected.
    If two columns have been modified, (Eg., City column also changed "City 1' to 'city 12'), the return value should be:
    USERID     USERNAME STREET CITY   PHONE        
    ---------- -------- ------ ------ -------------
             1                 City12 (31) 234-1234
    1 row selected.
    Any idea?
    Thank you very much for your attention.

    Hello

    What I´d like to do is to retrieve only (or fields) that changed between these 2 versions of the same record. The idea is to call this query (or process PLSQL) a trigger and save these data on a table.

    Looks like you're simply wanting a trigger?

    Something like:

    CREATE OR REPLACE TRIGGER audit_trg
      AFTER UPDATE ON your_table
      FOR EACH ROW
    BEGIN
    
     INSERT INTO audit_table(userid, username, street, city, phone)
     VALUES(
       :new.userid,
       nullif(:new.username, :old.username),
       nullif(:new.street, :old.street),
       nullif(:new.city, :old.city),
       nullif(:new.phone, :old.phone)
     );
    
    END;
    /
    
  • Search Yahoo opens a new tab in the search, but now it will update tab current how to return to before where I could go forward and back during the search

    I don't know what happened, but now I seem to only have one active tab
    changes if I do a search. It is used to open each page in a different tab. I tried to open by using the right click, but it does not work when serching in Yahoo

    Hello, this is a setting in the Yahoo search preferences. go to options > Preferences > display and layout > edit > and 'Open results in a new tab or window' value to yes.

    otherwise you can always use middleclick or ctrl + left click in firefox to open a link in a new tab

  • OfficeJet Pro 8610e model A7F: unable to make a copy of the front and back of the ADF on my OfficeJet Pro 8610e model A7F64A

    I can't make a duplicate with one copy double-sided Control Panel of the printer using the COPY function. It does not show an option for 2 original face 2 face copy. The printer has a duplexor unit installed, the latest firmware, but the option described above does not appear on the printer Panel option "double-faced." I prefer not to repeat the flat glass scan - Tower and the tests to get a copy of face 2. The printer has no problem filling a two-sided printing function. What can I do?

    Sarge-5

    It's one of the limitations of the 8610 compared to 8620/8630.

  • "" My internet connection is constantly down and back on the error "negotiating IPsec year failure prevents the connection.

    Original title: The IPsec negotiation failure prevents the connection

    My internet connection is constantly visitor drop-off and restarted, and when I troubleshoot I get this message "the IPsec negotiation failure prevents the connection." I don't use VPN or anything so I have no idea what it means. I restarted the router several times. Any other ideas?

    Hello

    1. you are using a wired or a wireless connection?

    2. If it works well before?

    3 did you changes to the computer before the show?

    Method 1: Reset the router and see if that helps.

    Note: To help you reset the router, you can consult the manual that came with the router or the router contact manufacturer.

    Method 2: Uninstall and reinstall the NIC drivers and see if that helps.

    See the following steps:

    (a) click Start, right click on computer.

    (b) click on properties, click on Device Manager

    (c) expand the network card, right-click the wireless adapter option

    (d) click on uninstall

    (e) now go to your computer/wireless device manufacturer's website, download the updated drivers and install them.

    Reference:

    Updated a hardware driver that is not working properly:

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

  • Recording and closing of the controls lost on photos app.

    OT: photos app.

    After starting to use the PHOTOS app, orders at the foot of the screen to save and close etc disappear; so although I can use the application, nothing can be saved!

    How can I recover these controls?

    All toolbars in the apps 'modern' (the apps that come from the app store) are hiding: they show only when you want.  When you do not use the controls, they disappear so you can see your real (like photos) content in full screen.

    To redisplay the controls, just right click.  Or if you have a touchscreen, slide from the bottom to display the toolbar.

  • programmer does not work the next day if the clock is moved forward and back to the current day

    Hello

    Maybe a strange question, but I got the following problem:

    1. I have a scheduled task (DB_BACKUP_JOB) that will cover every night @ 2u15

    2. by accident, I've set the clock of the OS (windows) until December 2015

    3. one day after I saw my mistake I turn back the clock to the present day (July 2015)

    4. but now when I see the next_run_date I see it is arranged in December 2015 instead of July 2015.

    -> So now my work will cease to be triggered until December 2015

    The following query illustrates my problem

    Select sysdate, NEXT_RUN_DATE from dba_scheduler_jobs where job_name = "DB_BACKUP_JOB";    

    29/07/1512/02/15 02:15:51, 700000000 + 01:00

    Now my question... How can I fix my regular job to the correct time?

    1 / disable job

    start_date 2 / together on the requested date

    3 / enable job

  • Adobe Reader DC - how to hide the Tools pane on the right side and back up the configuration

    I have just been upgraded to CD using W7 64 bit.

    I can hide the tools Panel, but cannot find how to save the setting, so it does not display the next time I load it.

    Hey wane.74979523,

    You can hide the tool constantly pane in the player by choosing "Edit > Preferences > Documents ' and uncheck"pane Open tools for each document"option and click OK.

    I hope this helps.

    Kind regards

    Ana Maria

  • a symbol in the Middle AND back of the stage

    Hello

    Maybe it's a simple question, I hope...

    I need to place a symbol in the Middle AND the bottom of a sensitive site (stage height/width = 100%). the size of the symbol is fixed and does NOT change when resizing the browser window.

    for a better understanding, I created this fantastic visual:

    example.jpg

    Thanks for your help!

    OK, I found how to do, it's pretty simple... so anyone who needs a sticky footer may need this...

    project files:

    https://www.dropbox.com/s/f53kpr808ofmsr6/footer.zip

    best wishes to you all

  • sending items forward and back through the code

    I have several symbols - together with interactive elements - that must appear on the same place on the stage. Currently, they are manually stacked on top of each other on the stage and I am controlling their opacity with buttons. For example, symbolA and mouseover Button Gets an opacity of 1 so that the opacity of stay other symbols to 0. It works great as well control what symbol the viewer sees, but as symbolA is manually stacked above the other symbols, only interactive elements of symbolA work. Mousing over buttonB gives symbolB an opacity of 1, but none of the buttons in symbolB works as symbolA is still stacked above it, although symbolA has an opacity of 0.

    Is there anyway that I can control what symbol is on the stacking order using code? For example, I would like to the passage of the mouse buttonB, symbolB gives an opacity of 1, give the other symbols an opacity of 0 AND move symbolB to the top of the stacking order so work the interactive elements within the symbolB. I would like to be able to do this with all the symbols. I'm new to this so any help would be highly appreciated. Thank you very much.

    Hi there, you can set the z-index property of a symbol within edge like this css:

    Code Stage.compositionReady:

    This puts "yourSymbol" to the layer of 100

    SYM. $("yourSymbol") .css ("z-index", "100");

  • Value null sent Siebel to OPA and back of the OPA of Siebel

    Hello world

    Is it possible to have a field with a null value mapped in the Siebel takeover and have value for this field OPA or return the value zero of origin?

    In our project, we have some fields in Siebel that will be mapped to the OPA. This field can have a null value when OPA is called. My intention is to map this field with OPA - and given a set of circumstances, the value of this attribute with a value OR returns the original value of Siebel (which may be zero).

    For example:
    In Siebel under the ignition, there is a text field: mood of the person
    The field is not required, so he has an LOV from: happy, sad, or null.

    It is an example of rule table.
    http://i.imgur.com/YqdGi.jpg

    For mapping, I plan to have-
    [Siebel: mood of the person]-> [OPA: entry in the mood of the person]
    and
    [OPA: output in the mood of the person]-> [Siebel: mood of the person]


    Thanks for your help!
    Isamu Minami

    Published by: Isamu August 8, 2011 15:18

    You can deduct rules based on the unknown function [currently]. Siebel connector will not pass nulls for modules so they will be unknown at the session. You can then set the mood of output OPA based on the question of whether or not the attribute is unknown.

    Hope this helps

Maybe you are looking for

  • 31 FX for Mac suddenly stopped loading images does anyone have a solution to this.

    Mid day Fx stopped loading images for buttons, images on Web sites, etc. Can I use other browsers on my Mac and they work fine. I have reset Fx and tried with no Add - installed add-ons. I even deleted and reinstalled. No change.

  • How can I get rid of the Sweetpacks on the tabs?

    Sweetpacks installed itself without asking, and I don't like it so how do I change in Firefox on the tab pages?

  • Question of Stor.E Canvio 3.5 2 TB

    I'm new to this forum and I would ask to help me solve a problem that has arisen. I have an external drive starts plu, but it detects when connected to USB.It also makes noise when it is plugged in, several times in a row and then more nothing.The HA

  • FILE: \BOOT \BCD - status 0xc000000f

    OK, Vista running and get the error on the startup file: \boot \BCD with status 0xc000000f I know not how to solve this problem using the diskette provided by dell and I see a lot of people have the same problem. Microsoft gave instructions on how to

  • Reg: Menu items...

    Hello I want to create menu items... like save, display, close,... etc. I extend my screen to screen... So please suggest me how to create menuItems.