Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Cannot create a QWidget when no GUI is being used. Then How should I create it?

    General and Desktop
    3
    4
    4924
    Loading More Posts
    • 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.
    • F
      feedmeqt last edited by

      Hi,

      cannot create a QWidget when no GUI is being used, is the error throwing up when I try to use the COM object inside my QtCore application. Its, understandable that I dont want the UI component to be part of it, but when I do try to remove the QWidget from the COM object class the compiler just compalins?

      So, is there any way I can create it, non -GUI?

      Thanks,

      1 Reply Last reply Reply Quote 0
      • R
        RazrFalcon last edited by

        Did you use QT += gui in yours .pro file?

        You want to create exactly QWidget or program window, like QMainWindow/QDialog?

        1 Reply Last reply Reply Quote 0
        • Z
          zither last edited by

          Trying to make QWidget without use of GUI class in Qt is impossible.

          If you don't want GUI use console. But If you want QWidget, you must use QtGui class.

          1 Reply Last reply Reply Quote 0
          • F
            feedmeqt last edited by

            Hi,

            Thanks for the reply.

            Well, I'm using VS2010 and I've not included the GUI part. Now I've got some workable solution by deriving from the QObject which I need to test further.

            Yes, its correct that I can't use QWidget if not using GUI.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post