Results 1 to 6 of 6

Thread: my code compiles and executes but it does not show anything at display

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2016
    Posts
    10
    Platforms
    Windows

    Default Re: my code compiles and executes but it does not show anything at display

    ##########

    Quote Originally Posted by anda_skoa View Post
    Your main function declares a function named cuentaLuis() that returns an object of Cuenta1: https://en.wikipedia.org/wiki/Most_vexing_parse

    You probably wanted to create an instance of Cuenta1
    Qt Code:
    1. Cuenta1 cuentaLuis;
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _
    It works now silly me hehe. I am not yet into creating an instance out of a function that takes no parameters and returns a type of the constructor part of the ebook yet, so thanks very much for clarify this issue for me I guess Im just a newbie

    Quote Originally Posted by jefftee View Post
    I don't want to start a war, but I don't think you should really do any "processing" in a C++ constructor. The purpose of the constructor is to initialize the object instance to a specific known state.
    I am a newbie into programming so I shoud ask, why not to do what you just stated?
    Last edited by sauerplayer; 6th November 2016 at 02:57.

Similar Threads

  1. JS not executes in QTWebkit
    By ericzhang in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2014, 11:31
  2. Create And Display QWidget in code
    By ShapeShiftme in forum Qt Programming
    Replies: 4
    Last Post: 19th May 2012, 07:04
  3. qt I want my widget show security code from web
    By insert in forum Qt Programming
    Replies: 7
    Last Post: 1st December 2010, 18:58
  4. Dialog executes in debug build but not release
    By awhite1159 in forum Qt Programming
    Replies: 5
    Last Post: 24th June 2008, 17:51
  5. Plugin ctor executes, but not dtor ?
    By scollyer in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2008, 14:18

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.