Results 1 to 19 of 19

Thread: create a new widget dynamically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: create a new widget dynamically

    Camera:
    I would keep only one camera, so in each viewport class I would keep current viewport camera position. In repaint function, for each viewport, simply move camera around, no need for multiple cameras.

    VBO:
    I don't know, maybe Ogre by default uses VBO (I saw on Ogre wiki that there is some sort of asset manager but didn't find any info regarding internal VBO usage, search Ogre wiki/forum) so then there is no problem, as I said before I didn't use Ogre. But this is just for performance and if you scene is simple then there won't be any performance impact (but this is not the "right" way to do this because currently immediate mode is treated as depreciate).
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  2. #2
    Join Date
    Apr 2012
    Posts
    101
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: create a new widget dynamically

    No, i can't i must use many camera
    because the aim of my project is to use many camera and render what see each frame


    i think i must change all the idea

    because i see this software "vicon" it similar as what i want


    now when i run my project my scene is rendred in all the window(central window)

    to make it like the photi i have two idea and their problem if you can advice to me what is the appropriate idea
    1- the first idea i can devise y window with ogre like the photo BUT when i separate i can't make the lines that mean i cant defrent betewwen the veiw AND i can't write the name of the viewport is there methode in qt to draw lines like that(like the picture)(line in blue and lines in white , the lines that represent the edge of each viewport ?

    2-i less the central widget as it , and i add otheres scorelarea to render the scene with the camera in it , BUT her the problem is how i said in my program to render the scen inside the scroller area

Similar Threads

  1. Create Row dynamically in QListWidget
    By sijithjames in forum Qt Programming
    Replies: 1
    Last Post: 18th July 2011, 01:02
  2. dynamically create QLabels
    By jeffmetal in forum Newbie
    Replies: 5
    Last Post: 19th June 2011, 18:24
  3. Dynamically create SVG with QWebElement
    By yawar in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2010, 03:53
  4. finding dynamically create object
    By abrou in forum Newbie
    Replies: 2
    Last Post: 5th March 2008, 21:17
  5. dynamically create folders with QT
    By eleanor in forum Newbie
    Replies: 3
    Last Post: 13th March 2007, 11:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.