Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. importing QtQuick.Dialogs gives many ambiguous type warnings
Forum Updated to NodeBB v4.3 + New Features

importing QtQuick.Dialogs gives many ambiguous type warnings

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 398 Views
  • 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.
  • B Offline
    B Offline
    Brannon K.
    wrote on last edited by
    #1

    When I import QtQuick.Dialogs in a project backed by cmake and Qt 6.8, I get all these warnings. Any ideas on how to avoid them? I only have one Dialogs import in one file.

    .../source/Main.qml:1: warning: Ambiguous type detected. FolderDialog 6.0 is defined multiple times. [import]
    .../source/Main.qml:1: warning: Ambiguous type detected. ColorDialog 6.0 is defined multiple times. [import]
    .../source/Main.qml:1: warning: Ambiguous type detected. MessageDialog 6.0 is defined multiple times. [import]
    .../source/Main.qml:1: warning: Ambiguous type detected. FileDialog 6.0 is defined multiple times. [import]
    .../source/Main.qml:1: warning: Ambiguous type detected. FontDialog 6.0 is defined multiple times. [import]
    .../source/Main.qml:1: warning: Ambiguous type detected. FolderDialogDelegate 6.0 is defined multiple times. [import]
    
    1 Reply Last reply
    2
    • C Offline
      C Offline
      Chester333
      wrote on last edited by
      #2

      Some additional info or more like a warning. This crashes the qml language server and if the server is not running, every ctrl+click on your own qml files opens them from the build folder instead of the source folder. And then you basically edit a temp file.

      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