Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Specifying Attributes of widgets
Forum Updated to NodeBB v4.3 + New Features

Specifying Attributes of widgets

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.4k 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.
  • A Offline
    A Offline
    alfah
    wrote on last edited by
    #1

    hey all,

    I was trying to specify attributes for the widgets using Qt::WA_NoSystemBackground so that the widgets do not take the background image of the form.

    It worked well for the labels and scroll area text browser. Some how it does not give the desired effect for the radio buttons and the text box. I see a separate background for the radio buttons and the the text box.

    This is how i have used
    @
    ui->passwordRadiobutton->setAttribute(Qt::WA_NoSystemBackground);
    @

    any suggestion?

    alfah

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

      I have tried the following code to make the QLineEdit but it does not work wither :(
      @
      QPalette palette = ui->passwordSetLineEdit->palette();
      palette.setColor(ui->backBut->backgroundRole(), Qt::transparent);
      ui->passwordSetLineEdit->setPalette(palette);
      @

      pls help

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

        I tried putting a transparent image as background too. . It din work. .Could anyone help me out?

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fuzzbender
          wrote on last edited by
          #4

          What platform you are working on?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alfah
            wrote on last edited by
            #5

            Windows 7. .

            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