Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Move elements from GUI with function
Forum Updated to NodeBB v4.3 + New Features

Move elements from GUI with function

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 509 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.
  • A Offline
    A Offline
    AleCasta
    wrote on 6 Jul 2017, 02:16 last edited by
    #1

    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

    J 1 Reply Last reply 6 Jul 2017, 04:12
    0
    • A AleCasta
      6 Jul 2017, 02:16

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 6 Jul 2017, 04:12 last edited by
      #2

      @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?

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

      1 Reply Last reply
      1

      1/2

      6 Jul 2017, 02:16

      • Login

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