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. Double QTDialog
QtWS25 Last Chance

Double QTDialog

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 393 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.
  • M Offline
    M Offline
    MarioFromAlassio
    wrote on last edited by
    #1

    Good evening everyone.
    I don't know if it is also required to say goodbye here before the first post, however out of politeness
    I also greet and thank you for all the posts that I have read over the years and that have helped me
    in the moments that "I did not know how to do".
    I write my first topic because I have a little problem that I can't get out of and that maybe someone has already solved.
    I explain:
    I wrote an application that drives the home heating system. Check the various temperatures
    fireplace, puffer, house areas, etc and decides what to do based on the settings.
    Everything runs on a Raspberry.
    A 7 "LCD is attached to the Raspberry.
    Now to not leave it on all the time, the prg opens a black QTdialog (fullscreen) and every minute the QTDialog is
    replaced by another QTDialog which displays the various temperatures and the status of the zones (open / closed) in rotation.
    Once the display is finished, the second QtDialog is closed and the first black screen is reopened.
    Now everything works perfectly on the Raspberry using system LXDE.
    If instead I use XFCE, the second QTDialog (the one that displays the values) is not displayed but neither is the program stopped.
    The same happens to me if I compile under Windows 10 or under Linux (MXLinux in my case).
    Obviously I use Windows and Mxlinux to develop and compile it and then I transfer the
    sources on Raspberry and rebuild there.
    I have searched for seas and for mountains but I cannot understand what it is that generates this behavior.
    I thank anyone who has a tip for me.
    Soon !!

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

      Hi and welcome to devnet,

      Not a direct answer but why not use a QStackedWidget ?

      You would just have to switch between your two widgets rather than open and close dialogs.

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

        Hello SGainst
        Thank you so much for the very fast response.
        I have recently been using QT so I don't know all the details.
        Now I study QTStackedWidget a bit.
        Thanks so much!!!

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MarioFromAlassio
          wrote on last edited by
          #4

          Thank a lot it works!!!
          BYE!!!

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

            You're welcome !

            Since you have it working now, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

            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