Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

caffe aplicaion



  • Hello i trying to code app for caffe.
    i could not know start with graphics scene of caffe
    dynamicaly add desks in caffe on clikc on desk new window with order of that desk

    Exactly i want to create widget application, on screen display caffe bar and dynamicaly add desks in caffe when use click on desak i will fire some action. Can i use QGraphicsScene and graphicsView ?

    like this on picture
    02a93d3d-2bfb-44f0-8b9c-87950033c7c5-image.png


  • Lifetime Qt Champion

    @slavisac What is your question?



  • how to create this in qt designer
    background is static and rectagles click enabled (connect and signal)



  • @slavisac

    Paint the background and use QGraphicsItems as your "buttons". You can check their mousePressEvents to trigger some action and do whatever you like.

    Edit:
    It's not possible with QtDesigner only. You'll need to subclass QGraphicsObject or QGraphicsItem.


Log in to reply