Skip to content

Can not create a valid qt widget #55

Description

@fnpngn

Describe the bug
Creating a basic qt widget through vstools integration generates invalid files because the ui_ header does not exist.

To Reproduce
New Qt Widgets Application, generated for VS2022 & MSBuild

  • Solution Explorer -> Add -> New Item
  • Select Qt/Qt Widgets Class, name MyWidget, Add
  • In integration -> next, set base class to QWidget
  • -> Finish
  • Attempt to build project
Cannot open include file: 'ui_MyWidget.h': No such file or directory

Expected behavior
Integration generates a valid ui_ header

Desktop (please complete the following information):

  • Qt VS Tools 3.4.1
  • VS2022 17.14.16

Additional context
I attempted to look in documentation, but it assumes you already know Qt workflows and does not state anything about where to get or how to write ui_ headers. There is no option to export the .ui file from the designer.


The closest to a mention I got:
Qt Widgets Application
The textfinder.h file already has the necessary #includes, a constructor, a destructor, and the Ui object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions