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 the widget in the dialog
Qt 6.11 is out! See what's new in the release blog

How to show the widget in the dialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 764 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by
    #1

    Hi All,
    I'm using qt5.5 on my computer and Linux+QT for my OS system.

    I wanna show the small window that can shows some options for user to choose.

    And I'm doing with QDialog.
    This is how I designed.

    connect(ui->scan,SIGNAL(clicked()),this,SLOT(openscanwindow()));
    .
    .
    .
    .
    void MainWindow::openscanwindow()
    {
        QDialog *scan = new QDialog(this);
        scan->exec();
    }
    

    My question is how can I show the widget in QDialog scan?

    Any advise or document for me to read?

    Thanks in Advanced!

    YashpalY 1 Reply Last reply
    0
    • V victor wang

      Hi All,
      I'm using qt5.5 on my computer and Linux+QT for my OS system.

      I wanna show the small window that can shows some options for user to choose.

      And I'm doing with QDialog.
      This is how I designed.

      connect(ui->scan,SIGNAL(clicked()),this,SLOT(openscanwindow()));
      .
      .
      .
      .
      void MainWindow::openscanwindow()
      {
          QDialog *scan = new QDialog(this);
          scan->exec();
      }
      

      My question is how can I show the widget in QDialog scan?

      Any advise or document for me to read?

      Thanks in Advanced!

      YashpalY Offline
      YashpalY Offline
      Yashpal
      wrote on last edited by
      #2

      @victor-wang said in How to show the widget in the dialog:

      My question is how can I show the widget in QDialog scan?

      What I understood is you want to add few number of widgets to QDialog(scan), which is nothing but setting those widgets as children of QDialog(scan).

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What to read ? Start with the QDialog documentation which provides several links to examples.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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