Results 1 to 10 of 10

Thread: Creating a Dialog in a Slot of QMainWindow

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Creating a Dialog in a Slot of QMainWindow

    Thanks jpn, this was the problem. I always thought that

    qmake -project

    was sufficient to create a complete .pro file (I'm sure that I ran it before qmake and make). For me this was the first time that something in a .pro file created with qmake was missing. Do you know the reason for this?
    Last edited by tilm; 13th August 2008 at 17:41. Reason: spelling error

  2. #2
    Join Date
    Aug 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: Creating a Dialog in a Slot of QMainWindow

    I think I found the answer on my own: 'qmake -project' only includes dialog.cpp into the .pro file when dialog.h is included in MainWindow.h . But I first included the Dialog header file in MainWindow.cpp. That was the reason.

Similar Threads

  1. Replies: 4
    Last Post: 25th August 2014, 18:05
  2. Problem When Creating my own Slot
    By Fatla in forum Qt Programming
    Replies: 12
    Last Post: 6th June 2008, 14:44
  3. Replies: 3
    Last Post: 18th October 2007, 08:07

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