Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use new Qt Designer Form in app

How to use new Qt Designer Form in app

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 265 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    isan
    wrote on last edited by
    #1

    Hi,I want to add new form to my project ,I used this way
    add new>Qt>Qt Designer Form

    And I added #include "ui_dialog.h" and Ui::Dialog *newDialog in my mainwindow.h
    I want to open a new dialog when I click on pushButton on mainwindow.ui.
    how can I do this ?

    newDialog->show();
    

    doesn't exist

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davecotter
      wrote on last edited by
      #2

      it's recommended you use "New Qt Designer Form Class" instead of just the form. Let Qt create the class that the form uses. it becomes much easier to deal with if the code is magically written for you :)

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved