跳到內容

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k 主題 456.4k 貼文
  • Troubles with 3 icons becoming one

    Unsolved
    14
    0 評價
    14 貼文
    842 瀏覽
    S
    If you are using a QToolButton directly it has an option to turn on a dropdown menu: https://doc.qt.io/qt-6/qtoolbutton.html#ToolButtonPopupMode-enum
  • QLineSeries ordering on UI

    Unsolved qlineseries qchart opengl chartview order
    1
    0 評價
    1 貼文
    285 瀏覽
    尚無回覆
  • Ethernet communication to solar converter, IP PTZ camera, HPGL plotter

    Unsolved
    2
    0 評價
    2 貼文
    185 瀏覽
    jsulmJ
    @belette19 said in Ethernet communication to solar converter, IP PTZ camera, HPGL plotter: ethernet communication So, you mean TCP/IP or UDP? For that take a look at https://doc.qt.io/qt-6/qtnetwork-index.html How exactly to communicate with that device (protocol) is out of scope of Qt, check the documentation of these devices.
  • QTableView Editor closes after losing focus

    6
    0 評價
    6 貼文
    2k 瀏覽
    Pl45m4P
    @jspanchu No the code @raven-worx shows, is correct.
  • Waiting for QNetworkManager in a test

    Solved
    5
    0 評價
    5 貼文
    349 瀏覽
    Uncle_MastaU
    @Christian-Ehrlicher Ah! That's what I needed. Thanks!!
  • Error 2 when use QFileDialog::getOpenFileName

    Unsolved
    4
    0 評價
    4 貼文
    311 瀏覽
    JonBJ
    @Andrew23 said in Error 2 when use QFileDialog::getOpenFileName: QDir::homePath return true It's not a boolean. We want to know what your call to QDir::homePath() returns, to make sure it's not empty. And assuming it's not empty, can you confirm that the directory exists? It looks to me as though a Windows registry value cannot be found. Windows system call RegGetValueW() (https://learn.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew) returns If the lpValue registry value does not exist, the function returns ERROR_FILE_NOT_FOUND. and it would not surprise me if it returns same if lpSubKey cannot be found too. Don't worry too much about the use of the word "file" here, it does not really mean an actual file. Why it is happening, and whether it is intended or matters, I do not know.
  • Question about QAction

    Unsolved
    3
    0 評價
    3 貼文
    195 瀏覽
    Pl45m4P
    @mpergand The SIGNAL - SLOT syntax will never die, as long as it's being taught to new Qt users 😅🤣
  • QWebEngineView blocking debuging

    Unsolved qwebview debug html qwebengine javascript
    1
    0 評價
    1 貼文
    541 瀏覽
    尚無回覆
  • Qt6 missing typedefs for primitive types

    Solved
    9
    0 評價
    9 貼文
    845 瀏覽
    Christian EhrlicherC
    @Desperado17 correct. You have to compile Qt accordingly.
  • Memory free

    Solved
    36
    0 評價
    36 貼文
    4k 瀏覽
    jsulmJ
    @Joe-von-Habsburg You should really learn C++. See what @SimonSchroeder wrote...
  • Linking GSL library to Qt App on Windows

    Solved windows10 qt6.3.1 static linking external librar
    6
    0 評價
    6 貼文
    909 瀏覽
    A
    @YoungCaveMan , can you tell, how build and use gsl in qt, step by step?
  • Fix the position of a layout, which is present on top of another layout, at the bottom of the screen.

    Solved
    5
    0 評價
    5 貼文
    458 瀏覽
    S
    @JonB Thank you for your time ! I tried using the alternative solutions you mentioned, but none of them is giving the desired results. I guess I will stick to using a QSpacerItem.
  • Enabling DDS images in QT5.15.2

    Solved
    12
    0 評價
    12 貼文
    832 瀏覽
    E
    Adding ./imageformats with the related DLL's in the application directory was indeed the missing step for me. While having everything within the EXE would be ideal, this approach is at least manageable given an open source project with maybe a couple hundred users worldwide. Thanks to @ChrisW67 and @SGaist for your replies.
  • Troubles with simple example

    Unsolved
    7
    0 評價
    7 貼文
    388 瀏覽
    Pl45m4P
    @SGaist I think @rock37 planned to create something like an IObject Design Pattern with an "Application" Interface. I'm not sure if this will ever work in an environment like this and if this doesn't break Qt Event system. Even with app.exec() I don't think it will work. But you still have QApplication::instance() to do something more "fancy"
  • How to restore a regex rule into the json file?

    Unsolved
    3
    0 評價
    3 貼文
    246 瀏覽
    C
    You would need to escape literal double-quotes if they are also present within the regular expressions. Using a JSON package/library, like QJSonDocument, to write the file is the easiest way to ensure that escaping happens where it should (and is reversed on read). Another observation: your email address regex is not allowing for a lot of options. This, for example, is a valid email address, "someone+something@example.com". See this Stackoverflow article for more.
  • auto-scroll flickable to selected item

    Unsolved
    1
    0 評價
    1 貼文
    325 瀏覽
    尚無回覆
  • mysterious warning

    Unsolved
    2
    0 評價
    2 貼文
    209 瀏覽
    Pl45m4P
    @memyselfandqt said in mysterious warning: I know I must modify this file in design. So, I never edit this ui file. But you seem to have deleted something (maybe not intentionally) See https://forum.qt.io/post/566146
  • XPath 2.0 for Qt6

    Unsolved
    3
    0 評價
    3 貼文
    598 瀏覽
    D
    I got it going. Answer is here https://stackoverflow.com/questions/78017906/need-xpath-2-0-c-for-mingw/78028760#78028760
  • Trying to build QtPDF

    Unsolved
    5
    0 評價
    5 貼文
    367 瀏覽
    JoeCFDJ
    @apaczenko1993 Sorry. Qt 5.15.2 seems not having pdf module as default in the installer. I am using 5.15.3 on Ubuntu 22.04 and pdf module can be installed. Qt 6.6.2 has it as default.
  • set qhboxlayout to the bottom of the widget when i resize the window

    Solved qt6.6 c++
    7
    0 評價
    7 貼文
    1k 瀏覽
    JonBJ
    @a_coder As both other responders said, you need a vertical spacer above a widget if you want to push it down.