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

How to create this particular interface with QWidget and Qt5?



  • In my application I've to create an interface similar to "this":http://www.baronerosso.it/forum/attachments/cnc/79193d1223031343-nuovo-schermo-per-mach3-touch-screen-mach-3003.jpg
    Is it possible using Qt5 and QWidget?
    I'm asking for this because I've tried putting images to QPushButton as background, but for the main Window screen? how can i put a background there?
    Is there in QWidget a particular component ("a clicable area") where I can recognise the click and change opportunetly the background?



  • bq. Is it possible using Qt5 and QWidget?

    Yes it is possible in Qt5

    bq. I’m asking for this because I’ve tried putting images to QPushButton as background, but for the main Window screen? how can i put a background there?

    Set the background of QMainWindow the same way you set the background of QPushButton

    bq. Is there in QWidget a particular component (“a clicable area”) where I can recognise the click and change opportunetly the background?

    Entire QWidget is a clickable area


Log in to reply