Important: Please read the Qt Code of Conduct -

Move elements from GUI with function

  • Hi! i'm starting to use QT because i've made a programm that solves the "16-puzzle" problem with breadth first search on c++, it works just fine in the console, i tried to implement an GUI represenation like this0_1499306505553_gui.jpg
    i have programmed an algorithm and functions that do the work to solve the puzzle, i want to know if there is a way to move the buttons on real time once the window has been loaded

  • Lifetime Qt Champion

    @AleCasta Sorry, but it is unclear what you want to do and when. Are those buttons the rectangles with numbers in the picture? Why do you want to move them? You can just exchange the numbers. If you want to move them: do you use layout to position the buttons?

Log in to reply