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

QTableView - QPalette::Base



  • Hello.

    I have next system confuguration: Qt 4.7.3, Windows XP SP3.

    Please, advice.

    How I can make transparent QTableView.

    I make next steps:

    QPalette palette = view->palette();
    palette .setBrush(QPalette::Base, Qt::transparent);
    view->setPalette(palette);

    Allright - widget became transparent. But, when I begin edit cell, background don't updated and new text put in over old text.

    This effect is observed on Windows XP, but on Windows 7 it is good works.

    Thank you.



  • I don't have Windows XP so I can't verify it, but you could try to call update() on the QTableView and/or its parent widget(s).


Log in to reply