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 show dialague form to mainwindow form in Qt
Forum Updated to NodeBB v4.3 + New Features

How to show dialague form to mainwindow form in Qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 648 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.
  • T Offline
    T Offline
    Tannyveer
    wrote on last edited by
    #1

    Ha
    I am struck to develop my app in qt.
    I want to show from dailague form to mainwindow form. i used mainwindow obj and type the obj.show() cannot work for me.

    code :
    void wecome::on_pushButton_clicked()
    {
    MainWindow w;
    w.show();
    }

    1 Reply Last reply
    0
    • B Offline
      B Offline
      butterface
      wrote on last edited by
      #2

      For the code please use the code tags.

      What do you want to do? What does work, what does not?

      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        Try this.

        MainWindow *w = new MainWindow;
        w->show();

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        0

        • Login

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