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. Update content in windows app.
Qt 6.11 is out! See what's new in the release blog

Update content in windows app.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.3k 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.
  • S Offline
    S Offline
    stysiu18
    wrote on last edited by
    #1

    Hi ;)
    I'm making simple desktop application and I have a small problem.
    How can I update content in my window?

    Example: I have got something in my window (few label and buttons) and when I click button "next" I would like to see new contents. I have looked in QMdiArea classes but i didn't find it.

    Any sugestions?
    Thanks in advance ;)

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

      Hi and welcome to devnet,

      Sounds like you are looking for "QWizard":http://qt-project.org/doc/qt-5/qwizard.html

      Hope it helps

      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
      • D Offline
        D Offline
        DBoosalis
        wrote on last edited by
        #3

        Another way is to use QStackWidget or QStackedLayou both provide ways for you to have multiple widgets ready to show simply by telling the stackwidget(layout) which one to show.

        Example:

        @mainWindowWorkArea = QWidget();
        stackLayout = new QStackedLayout();
        mainWindowWoarkArea->setLayout(stackLayout);

        label1 = new QLabel("one");
        label2 = new QLabel("two");

        stackLayout->addWidget(label1);
        stackLayout->addWidget(label2);
        stackLayout->setCurrentWidget(label1);
        .
        .
        .
        void myPushButtonSlot()
        {
        stackLayout->setCurrentWidget(label2);
        } @

        Hope this is of some help

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stysiu18
          wrote on last edited by
          #4

          Thanks! QWizard is what I was looking for.
          @DBoosalis thanks also for your answer. It's very helpful.

          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