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. QGridLayout on GraphicStage
Forum Updated to NodeBB v4.3 + New Features

QGridLayout on GraphicStage

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgridlayoutqgraphicsscene
2 Posts 2 Posters 966 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.
  • GrizG Offline
    GrizG Offline
    Griz
    wrote on last edited by
    #1

    How to determine that the two graphical objects are side by side on the graphic scene? For example, I want to move items on the graphics scene with the mouse, but do not put them in any position, and in particular a GridLayout cell, how to determine that they were side by side in neighboring cells?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      you could maybe use
      http://doc.qt.io/qt-5/qgraphicsitem.html#sceneBoundingRect
      and see if they are next to each other?

      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