跳到內容

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k 主題 456.4k 貼文
  • qt.qpa.xcb: could not connect to display ?

    Unsolved
    3
    0 評價
    3 貼文
    521 瀏覽
    Ronel_qtmasterR
    @_APM_ it is simple run it directly from the target board and it will work
  • Ethernet Port Disable

    Unsolved
    3
    0 評價
    3 貼文
    271 瀏覽
    SGaistS
    Hi, In addition to @jsulm, this is an administrative task that will require higher privilege than a standard user. The most likely way to do it would be using QProcess to run the tools however, you will have to somehow get higher level access for that to work.
  • how to use zxcvbn-c library in qt5 on windows 11

    Unsolved
    2
    0 評價
    2 貼文
    226 瀏覽
    SGaistS
    Hi, If you are talking about this project, the README suggests to include the code directly in your application. Note that the CMakeLists.txt they provide serves also as an example on how to integrate it or build it as a library.
  • QTextEdit resizing

    Unsolved
    2
    0 評價
    2 貼文
    253 瀏覽
    SGaistS
    Hi and welcome to devnet, One thing you can do is get the size of the underlying QTextDocument and modify the size of your QTextEdit accordingly.
  • MySQL problem with inserting quote in my QSqlQuery prepare statement

    Solved qsqlquery qstring quotes
    20
    0 評價
    20 貼文
    2k 瀏覽
    JonBJ
    @swankster :) Like I said, just build the (correct, including whatever quoting, and if you are OK on possible SQL injection attacks!) string and pass that without using binding, for this query.
  • android/build.gradle

    Unsolved
    4
    0 評價
    4 貼文
    468 瀏覽
    JoeCFDJ
    @Jean-MARTINON Quite some discussions have been made about Android build in this forum. Try to find these topics first. Also what are your OS and Qt Version? What have you done?
  • Calling QCoreApplication::processEvents from QtTest appears not to work

    Solved
    2
    0 評價
    2 貼文
    370 瀏覽
    V
    Yes - using QTEST_GUILESS_MAIN(TestLogging) rather than QTEST_APPLESS_MAIN does help to provide an event loop :-D
  • How to change the style of tree item drop.

    Unsolved
    1
    0 評價
    1 貼文
    128 瀏覽
    尚無回覆
  • How to open 2 different window at same time on 2 different monitor?

    Unsolved
    6
    0 評價
    6 貼文
    494 瀏覽
    M
    @Qt-embedded-developer said in How to open 2 different window at same time on 2 different monitor?: will this code open first window in first monitor and second window on second monitor? That open nothing, that's your job :) Post here the print of my code above.
  • How to set different theme in the application created in QT.

    Unsolved
    5
    0 評價
    5 貼文
    4k 瀏覽
    SGaistS
    @viraj1909 since it's your style you can apply the changes you want based on the rules you set. Hence, check if the label has text and only then apply your changes. You can also create dedicate styles that you apply only to certain widgets. In your case, maybe a QProxyStyle would be enough.
  • How to add external process window to mdiArea?

    Unsolved
    1
    0 評價
    1 貼文
    132 瀏覽
    尚無回覆
  • Does anyone know of an existing, maintained Qt3D or QOpenGL scene graph?

    Unsolved
    7
    0 評價
    7 貼文
    449 瀏覽
    kshegunovK
    There's a QML designer, but I've not used it extensively to say how good it is. It is WYSIWYG, but probably some scripting/property binding will be needed as a post-step. However this all has nothing to do with 3D or Qt3D for that matter. The latter can be used directly from C++ and also in widgets-based projects. So it's completely orthogonal to the discussion about QML.
  • Edited source didnt get recognized

    Unsolved
    13
    0 評價
    13 貼文
    865 瀏覽
    SGaistS
    @Kattia that's why you don't do testing/debugging with static builds of large frameworks. Any change you make on it requires that you rebuild your application as well which is also time wasting beside requiring a large amount of space on your machine.
  • How to increase the y gap between two tree items in Abstract tree view.

    Solved
    3
    0 評價
    3 貼文
    315 瀏覽
    S
    @mpergand Thank you very much for the answer .
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    11 瀏覽
    尚無回覆
  • Problem with QThread

    Unsolved
    2
    0 評價
    2 貼文
    161 瀏覽
    Christian EhrlicherC
    @Stefanoxjx said in Problem with QThread: QMetaObject::invokeMethod(cd, "sltExecuteCopy", Qt::DirectConnection, Q_ARG(QString, srcDir), Q_ARG(QString, destDir)); What do you expect when you execute the function directly in the main thread? Where do you have this from? Please follow the official documentation and start the worker function with an appropriate signal (in the example it's a separate signal but QThread::started can be used here too).
  • Error while running HeartRate Server Example why doesn't able to figure It Out why ?

    Unsolved
    2
    0 評價
    2 貼文
    206 瀏覽
    JonBJ
    @GunaNeelamegam Might depend on your platform? At least try solution in Qt BLE advertising gives "advertising error", "HCI command disallowed". and QBluetooth BLE advertising does not work on ubuntu (BlueZ).
  • console application - no output

    Unsolved
    7
    0 評價
    7 貼文
    545 瀏覽
    Pl45m4P
    @AnneRanch So you want your Qt app to be able to handle any input like a terminal?! WHY?! it does not make any sense unless you really write your own terminal app. If you want to pass command line arguments to your program, check QCommandLineParser https://doc.qt.io/qt-6/qcommandlineparser.html
  • Trying to grab/render a pixmap from a Qt3DWindow

    Unsolved qt3dwindow pixmap
    9
    0 評價
    9 貼文
    1k 瀏覽
    D
    Has any progress been made on this problem? I'm still encountering it. If it helps at all, I'm running on a Linux system with noVNC.
  • QTextEdit set row colour based

    Unsolved
    1
    0 評價
    1 貼文
    140 瀏覽
    尚無回覆