Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QDockWidget issue #8

Closed
amirshavit opened this issue Feb 24, 2014 · 5 comments
Closed

QDockWidget issue #8

amirshavit opened this issue Feb 24, 2014 · 5 comments
Assignees
Labels

Comments

@amirshavit
Copy link

When the docking widget's caption text is too long, the control buttons cover the text (see below - with and without the stylesheet)

image

image

Code to reproduce:

import sys
from PyQt4 import QtGui, QtCore
import qdarkstyle


def main():
    app = QtGui.QApplication(sys.argv)
    m = QtGui.QMainWindow()
    d = QtGui.QDockWidget('Lorem ipsum dolor sit amet, consectetur bla bla')
    m.addDockWidget(QtCore.Qt.LeftDockWidgetArea, d)
    m.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))
    m.show()
    app.exec_()


if __name__ == '__main__':
    main()
@ColinDuquesnoy
Copy link
Owner

Hi,

This bug has been reported on the QT project here. The temporary fix is to remove QDockWidget:tile customisation. This means that the title bar's gradient will be removed.

@ColinDuquesnoy ColinDuquesnoy self-assigned this Feb 24, 2014
ColinDuquesnoy added a commit that referenced this issue Feb 24, 2014
Fix text elidation that disappear.

See bug QTBUG-14496
@ColinDuquesnoy
Copy link
Owner

Should be fixed.

@ColinDuquesnoy
Copy link
Owner

Can you try again?

@amirshavit
Copy link
Author

Yes, looking good now, thanks!

image

@ColinDuquesnoy
Copy link
Owner

You're welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants