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. New window open from a click of a button (Cmake)
Forum Update on Monday, May 27th 2025

New window open from a click of a button (Cmake)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 248 Views
  • 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.
  • R Offline
    R Offline
    Rashed
    wrote on last edited by
    #1

    Hi all.

    I'm very new to this. I'm making a GUI using Cmake.
    I need to open one window with click of a button. Very silly but my apologies as a beginner.

    Kindly help me how to open a new window (which is again editable) from a click of a button.

    Thanks for your kindness.

    Kind regards,
    Rashed.

    JonBJ 1 Reply Last reply
    0
    • R Rashed

      Hi all.

      I'm very new to this. I'm making a GUI using Cmake.
      I need to open one window with click of a button. Very silly but my apologies as a beginner.

      Kindly help me how to open a new window (which is again editable) from a click of a button.

      Thanks for your kindness.

      Kind regards,
      Rashed.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Rashed
      cmake is not relevant. That is just for building your project.

      Start by reading Signals & Slots, you need to understand this concept before you can achieve anything in Qt.

      Then connect() your QPushButton::clicked signal to a slot you write, or an inbuilt slot on a Qt widget, which opens a new window, e.g. some kind of QWidget::show().

      a new window (which is again editable)

      "Windows" are not "editable". Depends what you really mean here.

      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