Results 1 to 3 of 3

Thread: Problems launching a window when I press a button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problems launching a window when I press a button

    change this
    Qt Code:
    1. onnect( boton_haceralgo, SIGNAL(clicked()), this, SLOT ( doSomething(argc, argv)));
    To copy to clipboard, switch view to plain text mode 

    to

    Qt Code:
    1. onnect( boton_haceralgo, SIGNAL(clicked()), this, SLOT ( doSomething()));
    To copy to clipboard, switch view to plain text mode 

    and

    Qt Code:
    1. nt miApVentana::doSomething()
    2. {
    3. //QApplication app(argc, argv);
    4. ventanina *dialog = new ventanina;
    5. dialog->show();
    6. //return app.exec();
    7. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problems launching a window when I press a button

    Thanks!!!!!!!!!!!!!!!!

    That worked perfectly.

    Thanks again MrDeath

Similar Threads

  1. Problems launching a windows exe from Qt (using QProcess)
    By smacchia in forum Qt Programming
    Replies: 8
    Last Post: 21st March 2012, 10:05
  2. Replies: 0
    Last Post: 10th September 2010, 13:23
  3. Replies: 6
    Last Post: 21st August 2010, 21:09
  4. Replies: 1
    Last Post: 17th May 2010, 16:15
  5. Replies: 2
    Last Post: 10th November 2009, 06:17

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.