Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Advanced design techniques
Qt 6.11 is out! See what's new in the release blog

Advanced design techniques

Scheduled Pinned Locked Moved Language Bindings
3 Posts 2 Posters 1.1k 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.
  • I Offline
    I Offline
    iamlion12
    wrote on last edited by iamlion12
    #1

    HI, I'm newbie in Qt and GUI development, and I'm interested in design(self.pleasure(u know)) and custom widget creation. For example, I want to make a round button that will be highlighted when you move the cursor over it. So I want to ask, in this universe there are articles or something that will help me understand how to do this stuff? I want know it on the fundamental level, not on "copy-paste"-level. Also, I doesn't need this, but I want it :) And I'm using PyQt, so that's why this question is here))

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi and welcome to the forums.
      While you could make such button using stylesheets its also possible via custom widget and paint it yourself.
      There are many videos
      https://www.youtube.com/watch?v=m4NIeakn1Xw

      Also, i found this
      http://zetcode.com/gui/pyqt4/customwidgets/
      Which show how to subclass QWidget and add paint method to it.

      Also for the "highlight when mouse over" you are after the hover events
      http://doc.qt.io/qt-5/qhoverevent.html#details

      Maybe others know more python samples. Im on the c++ side :)

      1 Reply Last reply
      3
      • I Offline
        I Offline
        iamlion12
        wrote on last edited by
        #3

        Thank you! Second example is really what I wanted!

        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