Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Some problems in qt compilation
Forum Updated to NodeBB v4.3 + New Features

Some problems in qt compilation

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 176 Views 2 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.
  • W Offline
    W Offline
    weisha
    wrote on last edited by
    #1

    df072220-8599-4f20-a748-491bdee22abd-image.png
    I add “ QT_CHARTS_USE_NAMESPACE” In the ui_xx.h file
    but the compiler often deletes it automatically,and report an error
    I don't know why,wish someone could help me
    e4a13b63-cc2a-4325-8ff4-8581b5c39c10-image.png

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi, welcome to the forum.

      ui_softstart.h is a file automatically generated from the softstart.ui visual editor file. You are not supposed to make any manual changes in these generated header files as they will be recreated every time the .ui file changes. Anything you edit there will be lost as you already noticed.

      That macro you're adding should rather go in your source file where you're using QtCharts

      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