Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PyQt5 / Python 3.7 / Designer

PyQt5 / Python 3.7 / Designer

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 3 Posters 900 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.
  • L Offline
    L Offline
    Lelorrain
    wrote on last edited by
    #1

    Hello everyone,

    I have a chessboard and I would like to display an arrow between squares after clicking 2 points. Any idea on how to do that ? (I am a beginner...).
    Do I do that in an additional layer like in a frame ?
    Thanks for your help!

    jsulmJ 1 Reply Last reply
    0
    • L Lelorrain

      Hello everyone,

      I have a chessboard and I would like to display an arrow between squares after clicking 2 points. Any idea on how to do that ? (I am a beginner...).
      Do I do that in an additional layer like in a frame ?
      Thanks for your help!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Lelorrain I don't know how you're implementing the board. If you use QWidgets you could put a QLabel on the board with the arrow, just make other parts of the image (except the arrow) transparent.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • DenniD Offline
        DenniD Offline
        Denni
        wrote on last edited by Denni
        #3

        If you supply the code or at least a working snippet of the code I am sure I or someone can help you figure that out, however, if you are locked into using the Designer then I wish you luck. ;)

        However as a software designer, I would strongly suggest that you learn how to code what you are doing without using that designer-tool. I have looked at the code that thing spits out and while functionally correct its very ugly stuff to look at which makes it harder to understand how to make modifications to it to get it do things you would like it to do. Now using it as a tool to get you started is fairly viable but once you get into it you will see just how easy it is to do.

        Personally, I am fairly new to pyqt5 myself, I found the code creation process to be extremely easy and straight forward and my biggest problem thus far has been figuring out how to do the simpler things -- like changing header fonts and styles and other things that I thought ought to be simple to do based on other GUI languages I have dealt with in the past.

        So again I would suggest tearing into the designer code and fully understanding what you currently have -- clean it up -- and then rely on the normal code to adjust what you need adjusted. You just might surprise yourself and see just how to do that.

        madness... is like gravity, all takes is a little... push -- like from an unsolvable bug

        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