Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • How to configure in windows?

    Solved
    11
    0 Votes
    11 Posts
    804 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
    181 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
    952 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
    231 Views
    Y
    @hskoglund I want to using Win32 API for place the tray icon in the notification area
  • 0 Votes
    4 Posts
    350 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
    137 Views
    No one has replied
  • progress bar

    Unsolved
    6
    0 Votes
    6 Posts
    345 Views
    sierdzioS
    @Rockerz you can use the chunk property for this in the stylesheet, but it won't allow you to show different size of the bar I think: https://doc.qt.io/qt-6/stylesheet-reference.html#chunk-sub
  • QNetworkAccessManager fails while curl work

    Solved
    5
    0 Votes
    5 Posts
    473 Views
    P
    Thanks for the tips and @hskoglund , the crul --lib option is a really cool trick I will never forget. And @SGaist, thanks for the checklist, I'll keep it in mind. 30 years of C++, quite some time with C-level sockets and newbie on modern networking in Qt I need all help I can get. I found the problem and it is a typo. I rearranged the code and the URL-port is set after I have used the object to initiate the network request. I shifted the lines and things are working as supposed. I figure I just needed some time away from the code to actually READ the code ;)
  • Help docunentation for QtCreator

    Unsolved
    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • QImage::fromData SEGV

    Unsolved
    17
    0 Votes
    17 Posts
    1k Views
    C
    I still didn't find a solution to this, does anyone have another idea?
  • Call to temporary is a no-op

    Solved qlineseries qchart qchartview
    4
    0 Votes
    4 Posts
    1k Views
    W
    @wasawi2 wooops sorry my newby fault!! I just had to remove the auto in the cpp file. Therefore: linewidget.cpp //![1] m_series = new QLineSeries; //![1] linewidget.h QLineSeries* m_series = nullptr; Everything under control now. Thanks again for your fast answer @kkoehne.
  • FAILED: when Qt build from source on Windows 11

    Unsolved
    3
    0 Votes
    3 Posts
    541 Views
    N
    Hello Sierdzio and All! I didn't get the source code from the package. I used the command. git clone git://code.qt.io/qt/qt5.git qt6 perl init-repository I don't need QtWebEngine by itself, but I want to try to do something on WebAssembler, and for it I need Qt WebEngine. I know about the ready-made installer, but it's more interesting to assemble it yourself. In addition, I tried to fix the source code of the Qt library itself. With best regards, Navadvipa Chandra das.
  • Reconnect to remote MySQL ODBC database when host returns online

    Unsolved
    1
    0 Votes
    1 Posts
    201 Views
    No one has replied
  • Signal handling with uninitialized receiver

    Locked Solved
    6
    0 Votes
    6 Posts
    498 Views
    D
    @jsulm said in Signal handling with uninitialized receiver: ClassFoo then emits a signal. Meaning Qt signal, are you? Only instances of classes are capable of receiving Qt signals. In order to connect the sender and receiver, there must be a ClassReceiver instance someplace and a connect(...) method. Look for this in the source code. It doesn't matter if there are no receivers connected; signals can still be sent.
  • How to build static Qt 6.4 for Windows?

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    sierdzioS
    Here is a configure line I'm using to build Qt 6.4.3 statically on Windows (and please remember to respect the license! Static builds usually mean commercial license of Qt!): ..\qt-everywhere-src-6.4.3\configure.bat -static -static-runtime -plugin-manifests -no-openssl -schannel -c++std c++20 -dbus-runtime -confirm-license -release -nomake examples -nomake tests -prefix ..\6.4.3 -no-icu -no-glib -qt-doubleconversion -qt-pcre -qt-zlib -qt-freetype -qt-harfbuzz -qt-libpng -qt-libjpeg -qt-sqlite -qt-tiff -qt-webp -skip qtcoap -skip qtopcua -skip qtscxml -skip qtwebengine -skip qt3d -skip qtconnectivity -skip qtlanguageserver -skip qtpositioning -skip qtsensors -skip qt5compat -skip qtdatavis3d -skip qtlottie -skip qtquick3d -skip qtserialbus -skip qtwebview -skip qtactiveqt -skip qtquick3dphysics -skip qtserialport -skip qtquicktimeline -skip qtwayland -skip qtcharts -skip qthttpserver -skip qtremoteobjects -skip qtspeech -skip qtwebchannel -skip qtmultimedia cmake --build . --parallel cmake --install . Mind you, I am using MSVC to build, I am not sure if the same will work for MinGW.
  • how to include QDebug to my project?

    Solved
    5
    0 Votes
    5 Posts
    392 Views
    SGaistS
    @JacobNovitsky said in how to include QDebug to my project?: CONFIG -= qt QT += qapplication Nuke these two lines.
  • Focusing away from Qt app on Mac

    Unsolved
    2
    0 Votes
    2 Posts
    173 Views
    SGaistS
    Hi, One starting point you can use is this stack overflow answer which uses NSWorkspace.