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: <no such value>
Forum Updated to NodeBB v4.3 + New Features

setStyleSheet: <no such value>

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 130 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.
  • J Offline
    J Offline
    Jakob Clausen
    wrote on last edited by
    #1

    Hi all.

    I have a strange error. I have an application where some of the widgets will change border-color if some kind of property changes. It seems to run fine, but every once in a while the program crashes. Now I have the program crashing with the debugger running.
    It reports setStyleSheet: <no such value>. What does that mean?
    The affected code seems to be

    void InputWidget::status()
    {
        if (!database.connected(index))
        {
            setStyleSheet("border: 3px solid gray;");
            return;
        }
    
        //if (database.allConnected(index))
        {
            if (!alive)
            {
                setStyleSheet("border: 3px solid yellow;");
            }
            else
            if (!database.signalValid(index))
            {
                setStyleSheet("border: 3px solid red;");
            }
            else
            if (database.updated(index))
            {
                setStyleSheet("border: 3px solid green;");
            }
            else
            {
                setStyleSheet("border: 3px solid blue;");
            }
        }
        //else
        {
        //    setStyleSheet("border: 3px solid black;");
        }
    }
    

    The debug output is
    Untitled.png
    And this is where the program stops.
    Untitled2.png
    Any idea, how I should proceed?

    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