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. How to implement border-image effect, in QWidget .

How to implement border-image effect, in QWidget .

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 5.3k 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
    summerheart
    wrote on last edited by
    #1

    @
    QPushButton {
    border-image: url(:/images/button.png) 16;
    border-width: 16px;
    padding: -16px 0px;
    }
    @
    When I use the above code to implemented border-image effect, it can work properly in QPushButton. When I want it to work in QWidget,
    the failed.
    how to implement border-image effect, in QWidget .
    Qstyle ?
    or other ?
    how?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3chNo
      wrote on last edited by
      #2

      QWidget does not have border. Try QFrame

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        A custom paint method will of course get you the required effect:-)

        I doubt that QFrame is the way to go.

        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