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. Transforming an app into dialog

Transforming an app into dialog

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

    I'm trying to have the ability to take still images from my app but need more directions to get it to work. The simplest example I was able to find online is

    http://doc.qt.io/qt-5/qtmultimediawidgets-camera-example.html

    While I don't need all the video features, I don't mind them being part of the app. All I need is instead of the Camera app being stand alone, I want it to start in a QDialog, as part of my app. If it's complex, how can I integrate it into my app to be displayed in the last page of a stackedwidget?

    I'm kind of used to creating everything in Qt Designer with some basic knowledge of Qt and would appreciate just a list of what is required to get the camera to capture still images in my app.

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

      Hi
      Its a QMainwindow and uses a QmenuBar
      for some menus so making it QDialog is not
      super easy.

      However, you could just cheat a bit and make it modal with
      setWindowModality(Qt::ApplicationModal);
      and use it as a dialog even if its not.
      There is nothing bad about having 2 mainwindows even if not often used.
      But cant do this in Designer.
      You must new a Camera window yourself.

      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