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. Clickable property of QToolButtons get lost when adding border
Forum Updated to NodeBB v4.3 + New Features

Clickable property of QToolButtons get lost when adding border

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 440 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.
  • G Offline
    G Offline
    GAURAV PANT
    wrote on last edited by
    #1

    Hi, I have created a toolbar and added some toolbuttons to it.
    Then using style sheet i have added a border to toobar.
    This is code for style sheet
    @
    m_QToolBar->setStyleSheet("background:qlineargradient(x1:0.5,y1:0,x2:0.5,y2:1,stop: 0.2 White, stop:1 #C7D8FF);border-width:1px;border-color:#9AB8FF;border-style:solid");
    @
    Now after adding border to toolbar , border is automatically added to QtoolButtons and clickable property of tool buttons get lost.

    Kindly help

    [edit: add @ tags around code please, Eddy]

    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