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. setStyleSheet Unknown property backgound-color
Forum Updated to NodeBB v4.3 + New Features

setStyleSheet Unknown property backgound-color

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 924 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.
  • S Offline
    S Offline
    Sandres92
    wrote on last edited by
    #1

    I use setStyleSheet. Received message

    widgetsRef[index].qWidget = new QWidget();
    widgetsRef[index].qWidget->setStyleSheet("QWidget { background-color: white; }");
    

    Unknown property backgound-color
    Unknown property backgound-color

    d0bfcf30-79b3-43ed-983c-eda62b455b10-изображение.png

    It work correctly. Сolor changing. But this message is littering the console .
    Is there a way to not print the message to the console ?

    jsulmJ 1 Reply Last reply
    0
    • S Sandres92

      I use setStyleSheet. Received message

      widgetsRef[index].qWidget = new QWidget();
      widgetsRef[index].qWidget->setStyleSheet("QWidget { background-color: white; }");
      

      Unknown property backgound-color
      Unknown property backgound-color

      d0bfcf30-79b3-43ed-983c-eda62b455b10-изображение.png

      It work correctly. Сolor changing. But this message is littering the console .
      Is there a way to not print the message to the console ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Sandres92 backgound-color - looks like a typo (missing r). Do you have any other stylesheets with backgound-color?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved