Results 1 to 6 of 6

Thread: Calc example throwing errors when I try it on my own

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3

    Default Re: Calc example throwing errors when I try it on my own

    Genius!

    However, why does the example state:

    Qt Code:
    1. void CalculatorForm::on_inputSpinBox1_valueChanged(int value)
    2. {
    3. ui.outputWidget->setText(QString::number(value + ui.inputSpinBox2->value()));
    4. }
    To copy to clipboard, switch view to plain text mode 

    The example compiles and works just fine.

    Either way, thank you for your help.

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 37 Times in 36 Posts

    Default Re: Calc example throwing errors when I try it on my own

    good...

    don't know, lemme check the example...

    ok, in the CalculatorForm example, ui is not a pointer. In your case it is a pointer.
    Last edited by schnitzel; 15th March 2011 at 23:58. Reason: correction

Similar Threads

  1. Replies: 5
    Last Post: 6th September 2011, 23:19
  2. Replies: 3
    Last Post: 12th May 2010, 22:42
  3. errors
    By manu in forum Newbie
    Replies: 4
    Last Post: 16th June 2008, 11:29
  4. Errors
    By hgedek in forum Newbie
    Replies: 7
    Last Post: 25th November 2007, 23:21
  5. Example with errors
    By fahmi in forum Qt Programming
    Replies: 1
    Last Post: 29th July 2007, 01:37

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.