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. QProgressDialog not showing in the center of the screen.
Forum Updated to NodeBB v4.3 + New Features

QProgressDialog not showing in the center of the screen.

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.0k 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.
  • A Offline
    A Offline
    adutzu89
    wrote on last edited by
    #1

    I have a QProgressDialog which start when getting data from a webserver to insert in local sqlite database, the issue is that it shows in the top left screen, though the mainwindow is set as parent and is modal(started with exec()).

    Here is how I start it

    @QProgressDialog *dialProgres;
    dialProgres=new QProgressDialog(this);
    dialProgres->setAttribute(Qt::WA_DeleteOnClose);
    dialProgres->setCancelButton(0);
    dialProgres->setLabelText("Se asteapta server-ul.");
    dialProgres->setRange(0,0); //to show busy until a signal is emitted which changes the range, etc@

    This is the signal->slot connection to exec() the dialog

    @connect(fir,SIGNAL(started()),dialProgres,SLOT(exec())); //QThread *fir = new QThread@

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

      Hi,

      You should also add which Qt/OS combo you are currently using

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adutzu89
        wrote on last edited by
        #3

        Oh, I am sorry I forgot, I am using Qt 5.2.1, developing on Ubuntu 14.04, targetting Android.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then it might be a bug on android, you should check the "bug report system":http://bugreports.qt-project.org

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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