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. QT6 : "Attempted to call isFormatSupported() without a window set"
Forum Updated to NodeBB v4.3 + New Features

QT6 : "Attempted to call isFormatSupported() without a window set"

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 452 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.
  • N Offline
    N Offline
    NightShadeI
    wrote on last edited by
    #1

    I'm trying to setup a very basic QVideoWidget in QT6 (6.4.0 to be precise), and i've managed to get it working but I keep getting this annoying warning message and i'm not sure why or what's causing it. I cannot find anything about this online

    You can refer to my example code here I use on Windows 10:

    int main(int aArgc, char *aArgv[]) {
        QApplication myApplication{aArgc, aArgv};
    
        QMainWindow myMainWindow;
    
        QVideoWidget myVideoWidget{&myMainWindow};
        myVideoWidget.setGeometry(200, 200, 300, 300);
        
        myMainWindow.show();
    
        return myApplication.exec();
    }
    

    Something critical to note is I only get this error message when I expand the window to see the video widget, there is no warning message before that!

    I want to understand what I am doing wrong to try eliminate any un-needed console output. Any help or pointers in the right direction is infinitely appreciated, thanks!

    N 1 Reply Last reply
    0
    • N NightShadeI

      I'm trying to setup a very basic QVideoWidget in QT6 (6.4.0 to be precise), and i've managed to get it working but I keep getting this annoying warning message and i'm not sure why or what's causing it. I cannot find anything about this online

      You can refer to my example code here I use on Windows 10:

      int main(int aArgc, char *aArgv[]) {
          QApplication myApplication{aArgc, aArgv};
      
          QMainWindow myMainWindow;
      
          QVideoWidget myVideoWidget{&myMainWindow};
          myVideoWidget.setGeometry(200, 200, 300, 300);
          
          myMainWindow.show();
      
          return myApplication.exec();
      }
      

      Something critical to note is I only get this error message when I expand the window to see the video widget, there is no warning message before that!

      I want to understand what I am doing wrong to try eliminate any un-needed console output. Any help or pointers in the right direction is infinitely appreciated, thanks!

      N Offline
      N Offline
      NightShadeI
      wrote on last edited by NightShadeI
      #2

      I've found this commit which seems to suggest it might have been a bug fixed in 6.5.x?

      SGaistS 1 Reply Last reply
      0
      • N NightShadeI

        I've found this commit which seems to suggest it might have been a bug fixed in 6.5.x?

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        From the looks of it, that's indeed the fix you are looking for.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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