Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Adding QCameraViewfinder in .ui file
Forum Updated to NodeBB v4.3 + New Features

Adding QCameraViewfinder in .ui file

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 2.5k 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.
  • VineelaV Offline
    VineelaV Offline
    Vineela
    wrote on last edited by
    #1

    I have recently asked a question regarding accessing the Camera in Qt for Android Device , later I've got a zip file in Github of Camera where I have a question now that how did they add QCameraViewfinder in .ui file I'll mention the image below.
    (https://postimg.cc/image/bgdt2h8af/) .

    Please check out this image where you can find on the right-hand side they have used QCameraViewfinder. Where this is my problem where i cant use it. So any suggestions please????

    And my Qt version is 5.10

    jsulmJ Pablo J. RoginaP 2 Replies Last reply
    0
    • VineelaV Vineela

      I have recently asked a question regarding accessing the Camera in Qt for Android Device , later I've got a zip file in Github of Camera where I have a question now that how did they add QCameraViewfinder in .ui file I'll mention the image below.
      (https://postimg.cc/image/bgdt2h8af/) .

      Please check out this image where you can find on the right-hand side they have used QCameraViewfinder. Where this is my problem where i cant use it. So any suggestions please????

      And my Qt version is 5.10

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Vineela said in Adding QCameraViewfinder in .ui file:

      Where this is my problem where i cant use it

      What do you mean? Why can't you use it?
      Maybe they added it manually editing the ui file which is simply XML.

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

      VineelaV 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Vineela said in Adding QCameraViewfinder in .ui file:

        Where this is my problem where i cant use it

        What do you mean? Why can't you use it?
        Maybe they added it manually editing the ui file which is simply XML.

        VineelaV Offline
        VineelaV Offline
        Vineela
        wrote on last edited by
        #3

        @jsulm good point as adding it manually but i dont think so ui file is editable??

        jsulmJ 1 Reply Last reply
        0
        • VineelaV Vineela

          @jsulm good point as adding it manually but i dont think so ui file is editable??

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Vineela Why shouldn't it be editable this way? I'm only not sure what will happen if you load it in QtDesigner.

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

          1 Reply Last reply
          0
          • VineelaV Vineela

            I have recently asked a question regarding accessing the Camera in Qt for Android Device , later I've got a zip file in Github of Camera where I have a question now that how did they add QCameraViewfinder in .ui file I'll mention the image below.
            (https://postimg.cc/image/bgdt2h8af/) .

            Please check out this image where you can find on the right-hand side they have used QCameraViewfinder. Where this is my problem where i cant use it. So any suggestions please????

            And my Qt version is 5.10

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by Pablo J. Rogina
            #5

            @Vineela from the screenshot you posted, I assume it's the Camera example from Qt's examples.

            how did they add QCameraViewfinder in .ui file

            They've used the Promote Widgets feature from Qt Designer.

            You can read more from the documentation, but essentially you add a Widget from the list (section Containers), right click and select Promote to... and then type the name of the class (custom widget) you want to use, see here .

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            VineelaV 1 Reply Last reply
            3
            • Pablo J. RoginaP Pablo J. Rogina

              @Vineela from the screenshot you posted, I assume it's the Camera example from Qt's examples.

              how did they add QCameraViewfinder in .ui file

              They've used the Promote Widgets feature from Qt Designer.

              You can read more from the documentation, but essentially you add a Widget from the list (section Containers), right click and select Promote to... and then type the name of the class (custom widget) you want to use, see here .

              VineelaV Offline
              VineelaV Offline
              Vineela
              wrote on last edited by
              #6

              @Pablo-J.-Rogina Thank you so much that worked

              Pablo J. RoginaP 1 Reply Last reply
              0
              • VineelaV Vineela

                @Pablo-J.-Rogina Thank you so much that worked

                Pablo J. RoginaP Offline
                Pablo J. RoginaP Offline
                Pablo J. Rogina
                wrote on last edited by
                #7

                @Vineela Great. Please don't forget to mark your post as solved.

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                VineelaV 1 Reply Last reply
                1
                • Pablo J. RoginaP Pablo J. Rogina

                  @Vineela Great. Please don't forget to mark your post as solved.

                  VineelaV Offline
                  VineelaV Offline
                  Vineela
                  wrote on last edited by
                  #8

                  @Pablo-J.-Rogina Yes i did it thank you much once again.

                  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