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. Hiding the QDialog appearing in the windows taskbar
Forum Updated to NodeBB v4.3 + New Features

Hiding the QDialog appearing in the windows taskbar

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 2.4k 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
    SiddharthRC
    wrote on last edited by
    #1

    I have an application which basically shows two dialog boxes,a dialog with black background this acts as a backdrop, and the other with a normal form for the user to use and do his activities and move on to other dialogs.
    Now the problem is since there are two dialogs, there are two different tabs shown on the taskbar, can we hide the tab for the black background dialog.
    The reason the black background dialog is there is because my application consists of many dialogs and when a user goes from one dialog to another the the desktop screen was visibile momentarily my client doesnt want the desktop screen to be shown at all, hence I had to put in the black background dialog which acts like a cover screen or a modal screen when the application is between any two dialogs, the black background dialogs acts like a cover.
    But now, since the cover problem is solved I need a way to make this black background dialog invisible to the end user but still be there when the application is between dialogs.
    Any suggestions?

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

      Hi,

      Do you really need dialogs ? You could also implement your logic using e.g. a QStackedWidget + some buttons and keep everything in your "main widget".

      On a side note, sounds a bit like a QWizard, no ?

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you really need dialogs ? You could also implement your logic using e.g. a QStackedWidget + some buttons and keep everything in your "main widget".

        On a side note, sounds a bit like a QWizard, no ?

        S Offline
        S Offline
        SiddharthRC
        wrote on last edited by
        #3

        @SGaist but if I use StackWidget wont I have to put all my application code in one file or rather add the entire functionality of all the stacked widgets in one file, wont that make the code a bit unmanageable, I am fairly new to Qt please do correct me if I am wrong :)

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

          No you don't (and you shouldn't at all). Each widget is an independent entity that you can have in its own set of files.

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

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            No you don't (and you shouldn't at all). Each widget is an independent entity that you can have in its own set of files.

            S Offline
            S Offline
            SiddharthRC
            wrote on last edited by
            #5

            @SGaist is there any book or article which demonstrates what would be an ideal pattern of coding in Qt, it would be of great help.Thank you

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

              There are several good books that you can read. A list of them can be found here

              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