Results 1 to 20 of 29

Thread: How to transfer data entered in a QWizard to other classes?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Join Date
    Feb 2010
    Posts
    24
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: How to transfer data entered in a QWizard to other classes?

    "For instance each page has a pointer to the wizard object it is part of. "

    you mean wizard() ?

    Qt Code:
    1. class myWizard : public QWizard
    2. {
    3. Q_OBJECT
    4.  
    5. public:
    6. whatever* m_member;
    7. }
    8.  
    9.  
    10. in the myWizard constructor i do :
    11. addPage( new myPage1( ) );
    12.  
    13.  
    14.  
    15.  
    16.  
    17. myPage1::mypage1(QWidget *parent) : QWizardPage(parent) {
    18.  
    19. wizard()->m_member ? (is this supposed to work?) (apparently it doesnt) (thats basically what i want :D )
    20.  
    21. }
    To copy to clipboard, switch view to plain text mode 


    Can I reimplement ::next ? http://doc.trolltech.com/4.5/qwizard.html#next [slot] (doesnt say virtual, but I'm no c++ expert)

    I do realise your time is more precious than mine, so I *am* thankful.
    Last edited by BillGates; 6th May 2010 at 18:07.

Similar Threads

  1. Default Item View classes and returning data from model
    By xerionn in forum Qt Programming
    Replies: 8
    Last Post: 23rd April 2009, 19:50
  2. Item View classes and returning data !
    By xerionn in forum Newbie
    Replies: 3
    Last Post: 16th January 2009, 08:52
  3. Qcj Data classes initial release
    By croftj in forum Qt-based Software
    Replies: 0
    Last Post: 1st May 2007, 02:51
  4. Replies: 1
    Last Post: 9th March 2007, 21:07
  5. Record update windowd entered data saving
    By MarkoSan in forum Qt Programming
    Replies: 56
    Last Post: 18th January 2006, 18:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.