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. Problem resizing a QDockWidget when QMainWindow has WA_TranslucentBackground attribute
QtWS25 Last Chance

Problem resizing a QDockWidget when QMainWindow has WA_TranslucentBackground attribute

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.7k 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.
  • A Offline
    A Offline
    aidaqt
    wrote on last edited by
    #1

    Hi,

    When I use this two properties:

    setWindowFlags(Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);

    then, in my QMainWindow, if I want to resize with the mouse a QDockWidget, the QDockWidgets stays bad painted, and then if I focus off of the QMainWindow, the QDockWidget gets painted well. What do I need to repaint fine the window and where?

    Thanks in advance!

    QT 4.8.0, Windows 7

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aidaqt
      wrote on last edited by
      #2

      I've found some related bug reports. Is there any workaround for this bug? Or it isnt a bug?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aidaqt
        wrote on last edited by
        #3

        EDIT

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

          Hi,

          You should link the bug reports you have found so other users might help you.

          You should also consider trying with Qt 4.8.5

          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
          • A Offline
            A Offline
            aidaqt
            wrote on last edited by
            #5

            Some links I think theyre related to my problem:
            https://bugreports.qt-project.org/browse/QTBUG-17548
            http://qt-project.org/forums/viewthread/24344

            And the pic of the resize fail:

            [url=http://postimage.org/][img]http://s7.postimg.org/m8tl1wa7f/resizefail.png[/img][/url]

            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