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. QTableView - QPalette::Base
Forum Updated to NodeBB v4.3 + New Features

QTableView - QPalette::Base

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

    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.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      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).

      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