Results 1 to 11 of 11

Thread: how to change backgroup color, button color and shape?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Location
    Saint-Petersburg
    Posts
    50
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to change backgroup color, button color and shape?

    Hello!
    I don't find this parts of code but i can to prompt how to change style(for example background-color of buttons)!
    Qt Code:
    1. QString color = Qt::red;
    2. QString style = "* { background-color: ";
    3. style += color;
    4. style += " }";
    5. QButton btnColor = new QButton(this);
    6. btnColor -> setStyleSheet(style);
    To copy to clipboard, switch view to plain text mode 
    This method is used for changing other styles so as

    P.S. Sorry by my bad english! I'll be one's utmost to learn english better!

  2. #2
    Join Date
    Jun 2008
    Posts
    15
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: how to change backgroup color, button color and shape?

    Hi,
    Thank you for the reply.
    I am afraid your post does not apply to my situation.
    All i know from the previous designer is that this file controls all the interface thing.

    By the way, your english is not bad. And my English is not good either.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.