Results 1 to 5 of 5

Thread: pointer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default pointer

    him I've a prob.
    I have;
    Qt Code:
    1. QProgressDIalog* ppp //this in class Object
    2. ppp = 0; //in costructor of Object
    3. void object::setProgr(QProgressDialog* p){
    4. ppp=p;
    5. }
    6. //mainForm.cpp
    7. QProgressDIalog* prog = new QProgressDIalog();
    8. this->setProgr (prog);
    To copy to clipboard, switch view to plain text mode 
    It compile but on give me runtime error...why?Ho can I do?
    are there other way to pass pointer? it seems that ppp remain null...
    thanks
    Last edited by mickey; 27th July 2006 at 01:20.
    Regards

Similar Threads

  1. simple pointer question
    By mickey in forum General Programming
    Replies: 6
    Last Post: 16th June 2006, 09:19
  2. Is there a Pointer Based QMap or Similar
    By vasudhamirji in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 14:34
  3. Signals destroys my pointer
    By Jojo in forum Qt Programming
    Replies: 12
    Last Post: 7th March 2006, 21:05
  4. get Parent Pointer
    By raphaelf in forum Qt Programming
    Replies: 8
    Last Post: 3rd March 2006, 13:09
  5. Replies: 2
    Last Post: 16th February 2006, 19:09

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
  •  
Qt is a trademark of The Qt Company.