Results 1 to 3 of 3

Thread: Problem with second Ui::dialog (Visual Studio QT Add in)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanked 86 Times in 81 Posts

    Default Re: Problem with second Ui::dialog (Visual Studio QT Add in)

    You should name the dialog in the ui file different from the first one.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,348
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Problem with second Ui::dialog (Visual Studio QT Add in)

    C2027 Use of the undefined type "Ui:: Dialog" QtWidgetsApplication7 C:\Users\lauer\source\repos\QtWidgetsApplication7\ QtWidgetsApplication7\Messdialog.cpp 15
    In your seconddialog class definition, you have declared a member variable of the type Ui:: Dialog. There is no such class. Your code should read:

    Qt Code:
    1. private:
    2. Ui::seconddialog ui;
    To copy to clipboard, switch view to plain text mode 

    (Assuming that you named the Ui class "seconddialog" in your .ui file. Whatever you named it, the name in the ui file must match the name you use in your QDialog class definition.)
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 2
    Last Post: 5th March 2021, 23:57
  2. Using Qt 5.4.1 Visual Studio 2013 libs in Visual Studio 2010
    By ^NyAw^ in forum Installation and Deployment
    Replies: 0
    Last Post: 6th March 2015, 11:20
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 17:46
  4. Visual Studio conversion problem
    By skepticalgeek in forum Qt Programming
    Replies: 0
    Last Post: 4th August 2010, 10:10
  5. qt with visual studio 2005; lib problem
    By jambrek in forum Installation and Deployment
    Replies: 7
    Last Post: 30th January 2008, 23:11

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.