Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Transparent background in TableView
Forum Updated to NodeBB v4.3 + New Features

Transparent background in TableView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 2.1k 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by
    #1

    Hi!

    Is it possible to have a transparent background in a table?
    I only want to have white font, but no background color.

    I am using TableView with TableViewStyle.
    But if I set backgroundColor: "transparent" in the TableViewStyle the table is white, not transparent.

    Any ideas?

    Kind regards,
    MHermann

    M 1 Reply Last reply
    0
    • M MHermann

      Hi!

      Is it possible to have a transparent background in a table?
      I only want to have white font, but no background color.

      I am using TableView with TableViewStyle.
      But if I set backgroundColor: "transparent" in the TableViewStyle the table is white, not transparent.

      Any ideas?

      Kind regards,
      MHermann

      M Offline
      M Offline
      MHermann
      wrote on last edited by
      #2

      @MHermann : Really no suggestions?

      Gojir4G 1 Reply Last reply
      0
      • M MHermann

        @MHermann : Really no suggestions?

        Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #3

        @MHermann Hi,

        Did you try TableView.backgroundVisible property ?

        TableView{
            backgroundVisible: false
            ...
        }
        
        Gojir4G 1 Reply Last reply
        0
        • Gojir4G Gojir4

          @MHermann Hi,

          Did you try TableView.backgroundVisible property ?

          TableView{
              backgroundVisible: false
              ...
          }
          
          Gojir4G Offline
          Gojir4G Offline
          Gojir4
          wrote on last edited by
          #4

          @MHermann After some tests, it seems you need either set TableViewStyle.alternateBackgroundColor to transparent and TableView.backgroundVisible to false.

          This is working for me on Windows 7 with Qt 5.10:

          TableView{      
              backgroundVisible: false
          
              style: TableViewStyle{
                  textColor: "white"
                  alternateBackgroundColor: "transparent"
              }
              ....
          }
          
          M 1 Reply Last reply
          4
          • Gojir4G Gojir4

            @MHermann After some tests, it seems you need either set TableViewStyle.alternateBackgroundColor to transparent and TableView.backgroundVisible to false.

            This is working for me on Windows 7 with Qt 5.10:

            TableView{      
                backgroundVisible: false
            
                style: TableViewStyle{
                    textColor: "white"
                    alternateBackgroundColor: "transparent"
                }
                ....
            }
            
            M Offline
            M Offline
            MHermann
            wrote on last edited by
            #5

            @Gojir4 :

            I just tried it.
            It worked!

            Thank you very much! :)

            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