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. QMessageBox on console/background application
Forum Updated to NodeBB v4.3 + New Features

QMessageBox on console/background application

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

    Hi all,

    I'm developing a mobile application which runs in background, so without any UI or dialog/window. But I would like to show a QMessage when an error occurs. It is possible?

    I don't know how because the QMessage constructor has a "QWidget* parent" parameter and I haven't anyone QWidget.

    Thanks a lot,
    XerXi

    SergiBC - Developer

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lycis
      wrote on last edited by
      #2

      I suppose you are talkin about QMessageBox. Actually this class has a constructor with @QWidget *parent=0@ which means that you do not need to pass a QWidget as parent.

      If you do not it will take the default value 0 (as defnied above) so it has no parent.

      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