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. Creating a border on QOpenGLWidget
Forum Updated to NodeBB v4.3 + New Features

Creating a border on QOpenGLWidget

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

    Hello all,

    I am new to QT and I am currently learning the library.

    I have an openGL widget on my application and I was wondering if there is any way to place a boarder around my canvas?

    The background of the canvas is white, the same background as my main window. I just need something to go around the canvas to have it stand out from the main window.

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

      Hi
      QFrame provides frames. Just set its property.
      Are you using UI files?
      If yes, place QFrame on form.
      Place OpenGl widget in side QFrame
      Right click QFrame (in free area), choose a layout.
      Then the openGL widget has a frame.

      1 Reply Last reply
      1

      • Login

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