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. PyQt5: How to create clickable QLabel/custom button?

PyQt5: How to create clickable QLabel/custom button?

Scheduled Pinned Locked Moved Language Bindings
9 Posts 2 Posters 7.1k 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
    SuhailMahmood
    wrote on 19 Jan 2015, 14:06 last edited by
    #1

    I am new to pyqt, and I need to create custom buttons with the following features:

    • custom shapes, eg. circular, rectangular, etc
    • custom background colors or images
    • effects on hover, like changing color, raising/depressing of button etc.

    Where can I learn to do these easily? Hope the people here are not as easily offended as the guys in stackoverflow ;)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Jan 2015, 22:46 last edited by
      #2

      Hi and welcome to devnet,

      Are you tied to QWidget ? Depending on the rest of your UI you could consider the Graphics Scene framework or even QML.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SuhailMahmood
        wrote on 21 Jan 2015, 14:29 last edited by
        #3

        Thanks. Where can I get started with Qml?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Jan 2015, 21:29 last edited by
          #4

          I'd say "here":http://pyqt.sourceforge.net/Docs/PyQt5/qml.html

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SuhailMahmood
            wrote on 22 Jan 2015, 10:40 last edited by
            #5

            That there is a very short thing. I need something from where I can learn qml in full please. Thanks a lot!

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 22 Jan 2015, 23:42 last edited by
              #6

              Did you took a look at the qml chapters in Qt's documentation ?
              There's also the "qmlbook":http://qmlbook.org

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SuhailMahmood
                wrote on 24 Jan 2015, 13:54 last edited by
                #7

                Please help me find the correct framework/tools for my project.

                My project is to make a desktop application that shows using animations how various algorithms work, like common sorting, searching and graph algorithms. Much like the things done here in visualgo.net. In fact I intend to do my work much like that in the mentioned website.

                My plan is to do the project in python using PyQt5 framework. I am new to this framework as to python as a whole. So I would like a detailed guideline towards what I should learn to complete my project within the time limit (a little more than a month), where to begin, etc.

                If you think I should use a different framework, then a cite to an active community for that framework would be very helpful. Also please name a few more active communities where I can obtain help.

                Thank you for taking time reading this, and thanks in advance for any help you provide!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SuhailMahmood
                  wrote on 24 Jan 2015, 13:56 last edited by
                  #8

                  BTW, I have started learning QML and it looks like fun in there! Thanks for your help!

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 24 Jan 2015, 22:41 last edited by
                    #9

                    I'd say that with QML you're on the right track.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    7/9

                    24 Jan 2015, 13:54

                    • Login

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