Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Progressbar for loading a heavy *.OBJ file
QtWS25 Last Chance

Progressbar for loading a heavy *.OBJ file

Scheduled Pinned Locked Moved Unsolved Game Development
3 Posts 3 Posters 598 Views
  • 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.
  • O Offline
    O Offline
    Orad
    wrote on last edited by Orad
    #1

    Hi,

    I want to know how can I implement a progress bar dialog for loading a heavy obj file via Qt3DRender::QMesh(), because during the load I want to inform the user that the file loading is still under progress.

        my3Dobject = new Qt3DRender::QMesh();
        QUrl url;
        url.setScheme("file");
        url.setPath("/home/item.obj");
        my3Dobject->setSource( url );
        my3Dobject->setEnabled(true);
    

    Any suggestions will be appreciated.

    M 1 Reply Last reply
    0
    • O Orad

      Hi,

      I want to know how can I implement a progress bar dialog for loading a heavy obj file via Qt3DRender::QMesh(), because during the load I want to inform the user that the file loading is still under progress.

          my3Dobject = new Qt3DRender::QMesh();
          QUrl url;
          url.setScheme("file");
          url.setPath("/home/item.obj");
          my3Dobject->setSource( url );
          my3Dobject->setEnabled(true);
      

      Any suggestions will be appreciated.

      M Offline
      M Offline
      Magodra
      wrote on last edited by
      #2

      @Orad with current interface the void statusChanged(Qt3DRender::QMesh::Status status) signal seams the only feedback possible.

      1 Reply Last reply
      1
      • Rcc21R Offline
        Rcc21R Offline
        Rcc21
        wrote on last edited by
        #3

        @Orad
        You could place a progress bar with indefinite status. You can use the QProgressDialog and setting

        progressBarDialog->setMaximum(0);
        progressBarDialog->setMinimum(0);
        

        will show an infinite progress bar.

        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