Python Forum
(pyQt/pySide)setStyleSheet(border…) makes QPushButton not clickable in Maya
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(pyQt/pySide)setStyleSheet(border…) makes QPushButton not clickable in Maya
#1
Hey, guys.
Trying to learn PyQt inside Maya and I am facing little problem which is more of discomfort then a problem. When I set border for my button :
button.setStyleSheet('
background-color: rgb(120, 120, 100);
color:rgb(1, 255, 255);
border: none')
My button is still working , but visually it's not clickable , if you click on button it's being static. Anybody faced that problem and knows how to solve ? Any help will really appreciate.

Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PySide / PyQt] Offset two images with keyboard increments carecavoador 1 953 Sep-09-2023, 12:53 PM
Last Post: deanhystad
Question Rows and colums list. PySide 6 britesc 2 868 May-31-2023, 09:00 PM
Last Post: deanhystad
  Tkinter - How can I change the default Notebook border color? TurboC 5 14,631 May-23-2022, 03:44 PM
Last Post: bigmac
  Drawing in PySide Leo_Red 3 2,747 Jun-26-2021, 09:30 AM
Last Post: Axel_Erfurt
  [Tkinter] Clickable Rectangles Tkinter Canvas MrTim 4 8,667 May-11-2021, 10:01 PM
Last Post: MrTim
  [Tkinter] Glow text of clickable object on hover with transition andy 6 5,910 May-11-2021, 07:39 AM
Last Post: andy
  [PyQt] QPushButton and and QmenuBar issues zettai 5 2,445 Oct-28-2020, 07:55 AM
Last Post: Axel_Erfurt
  Making text clickable with binding DT2000 10 5,031 Apr-02-2020, 10:11 PM
Last Post: DT2000
  [PyQt] timer makes my qmessagebox crash darktitan 17 7,600 Feb-19-2020, 07:11 PM
Last Post: darktitan
  [PyQt] `QPushButton` without mouse click animation Atalanttore 2 5,809 Apr-22-2019, 01:00 PM
Last Post: Atalanttore

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020