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. (PyQt) setAutoExclusive how not to affect certain buttons
Forum Updated to NodeBB v4.3 + New Features

(PyQt) setAutoExclusive how not to affect certain buttons

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 584 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.
  • V Offline
    V Offline
    VladStudent
    wrote on 15 Apr 2018, 07:57 last edited by
    #1

    Hey , guys.
    I am little by little starting to learn PyQt and trying to build very simple UI for tool in Maya.
    I have like :

    Text1 : button1 button2 button3
    Text2 : button 4 button5 button6

    and my problem that I can't understand how to make button(1-3).setAutoExclusive not to affect button(4-6).setAutoExclusive without changing parent widget. Anybody can help ?

    Thanks a lot

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Apr 2018, 08:01 last edited by
      #2

      Hi
      You can use a http://doc.qt.io/qt-5/qgroupbox.html
      or an widget place holder to separate them.
      setAutoExclusive works pr parent and i have not seen any way to trick that.
      So qgroupbox is good if ok with a caption, else just a QWidget which is invisible.

      1 Reply Last reply
      2
      • V Offline
        V Offline
        VladStudent
        wrote on 15 Apr 2018, 08:22 last edited by
        #3

        Thanks a lot , it works perfectly!

        1 Reply Last reply
        0

        1/3

        15 Apr 2018, 07:57

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved