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. A very big problem with Qt and css.
Forum Updated to NodeBB v4.3 + New Features

A very big problem with Qt and css.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 586 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    As you can see in the video linked below there is problem with Qt and css.
    This software has got only one form, it has got a list of buttons on the left and a widget on the right.
    When the user clicks on a button, the software destroys the already present object in the central widget if there is any.
    Everythings works fine but if the user clicks quickly, in some pc (not all) the behavior showed in the video happens.
    I'm using Qt version 5.9.1, has anyone got a suggestion for me?
    http://www.denisgottardello.it/QtCSS.flv

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    1
    • AndySA Offline
      AndySA Offline
      AndyS
      Moderators
      wrote on last edited by
      #2

      I think it would be a better idea to provide an example of what you are doing otherwise it makes it difficult to understand what could be going on here.

      Off the top of my head however, try calling deleteLater() on your central widget instead of delete, if that is what you are doing.

      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • O Offline
        O Offline
        ollarch
        wrote on last edited by
        #3

        Are you sure that the widgets are deleted?

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          Yes I am, now I'm makig a test using deleteLater.

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            Seems to be resolved by using

                    this->setEnabled(false);
                    ...
                    ...
                    ...
                    MSWCompanies->showMaximized();
                    QCoreApplication::processEvents();
                    this->setEnabled(true);
            

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved