Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • This topic is deleted!

    Solved
    3
    0 Votes
    3 Posts
    4 Views
  • multithreading -> add and manage threads in Qt Creator with Qt App

    Unsolved
    2
    0 Votes
    2 Posts
    189 Views
    JonBJ
    @JacobNovitsky Qt Creator is an IDE, for editing and building from source code. There is no "add and manage threads in Qt Creator". See https://doc.qt.io/qt-6/thread-basics.html and https://doc.qt.io/qt-6/examples-threadandconcurrent.html for using threading in a Qt application. And please make sure you really need threading in your Qt application, which already works asynchronously for many things. A large proportion of beginners who think they need threads in a Qt program turn out not to need them and would be better off without.....
  • The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core"

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    S
    @sierdzio This is $PATH I set [image: a3b4c34e-8d02-4209-b93e-5153ea8dfeb0.png] I ran CMake command like this: cmake -DCMAKE_PREFIX_PATH=/home/Qt/6.5.2/gcc_64 -DQT_DIR=/home/Qt/6.5.2/gcc_64/lib/cmake/Qt6 -DCMAKE_BUILD_TYPE=Release ..
  • Play videos with QMediaPlayer on two displays with different DPI settings

    Unsolved
    2
    0 Votes
    2 Posts
    187 Views
    G
    it turns out this bug also can be reproduced in two dispalys with same DPI settings.
  • failed to install qt on windows 10

    Unsolved
    2
    0 Votes
    2 Posts
    149 Views
    jsulmJ
    @fstech_12 It looks like another instance of the installer is running. You can check in Task Manager and kill it there. If you still get this error then delete the file mentioned in the error message manually and try again. And finally (typical Windows workaround): reboot your machine :-)
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Qt 6: cannot find -lOpenGL

    Solved
    7
    1 Votes
    7 Posts
    10k Views
    jsulmJ
    @booter Do you have a question? If you get this error - did you install the packages mentioned in this thread?
  • How to configure in windows?

    Solved
    11
    0 Votes
    11 Posts
    822 Views
    B
    @dondioci You said you want to customize the stylesheet, how would you change that by stylesheet even if you can rebuild the ifw? The configure command is part of Qt source code. And this step in the documentation is only needed if you want to build Qt by yourself. If you already have Qt then simply follow "Setting up Qt Installer Framework" chapter in the documentation. Well, usually we need to build Qt before building ifw because ifw needs to be built with static Qt.
  • Opening a video by clicking a button, how to do it?

    Unsolved video windows buttons
    2
    0 Votes
    2 Posts
    1k Views
    C
    Hi, Are you looking for the Video Widget Example?
  • Running commands in CMD prompt with QProcess

    Unsolved qprocess cmd
    11
    0 Votes
    11 Posts
    6k Views
    A
    @JonB Hi, thanks for all the help, I finally figured it out, it did have to do with the env variable for structureanalysis, even if I ran it inside cmd there was trouble. I had to send the full path for where structureanalysis is located in my shell script. it worked
  • QTableView internal drag&drop: Disallow drop on other items

    Unsolved
    2
    0 Votes
    2 Posts
    183 Views
    SGaistS
    Hi, What happens with your model ?
  • Use public slots or private slots?

    Unsolved
    10
    0 Votes
    10 Posts
    15k Views
    SGaistS
    @Roobarb said in Use public slots or private slots?: @dheerendra But if you make the slot private, how can something outside of the slot class call connect() using it? When I try to use a private slot in my connect() call, the compiler says: error: 'onMessage' is a private member of 'my_slot' Hi, That's where you have to properly analyze whether having that slot public is a valid use case or not. Just making it public because it allows connection is not a good reason. Check your architecture first.
  • Build failure: Qt 5.15.5 on Ubuntu 22.04

    Solved
    3
    0 Votes
    3 Posts
    966 Views
    R
    @SGaist Thank you ... building Qt out-of-sources was successful. I found this link which was very helpful in explaining how to do it: https://gist.github.com/black13/3a55ed9afb5ba9ab5119ebd271a2aaa5 I saw another reference to this in the Qt documentation, but can't remember exactly where I saw it (EDIT: this was at the very bottom of the previous web page: https://doc.qt.io/qt-5/linux-building.html). Now I was able to easily install both a debug and a release version of Qt with this method by setting different -prefix arguments.
  • System Tray Icon problem

    Unsolved
    3
    0 Votes
    3 Posts
    234 Views
    Y
    @hskoglund I want to using Win32 API for place the tray icon in the notification area
  • 0 Votes
    4 Posts
    364 Views
    hskoglundH
    Hi, your BLOCK is "040904b0" means English Unicode but maybe first try Windows 1252: "Copyright 2023 \xA9 More text" and then perhaps UTF-8: "Copyright 2023 \xC2\xA9 More text"
  • Preferences -> Environment -> Interface -> Language - how do I add languages?

    Unsolved
    1
    0 Votes
    1 Posts
    138 Views
    No one has replied